1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Facebook connection error with litespeed enabled

Discussion in 'Server Configuration and Hosting' started by jgas, Mar 3, 2014.

  1. jgas

    jgas Active Member

    Hi everybody,
    my users are experiencing a generic error when they try to register/login via facebook.

    This happens only when litespeed is enabled.
    I tried it too, there is no problem with apache.

    Litespeed log error doesn't show any error... what should I do ?
    Any idea?

  2. jgas

    jgas Active Member

    Hello. Any idea for that?
  3. Sheratan

    Sheratan Well-Known Member

    What kind of "generic error" are we talking here? Any screenshot?
  4. jgas

    jgas Active Member

    This error:


    It keeps on loading and below it adds the text below (my translation)

    Musicadigitale - error
    An error verified during the connection to facebook. Try again later

    And this happens only with litespeed...
  5. jgas

    jgas Active Member

    Let me add that if I test the facebook integration from admin cp --> tools , I get the error "your server cannot connect to facebook (https://graph.facebook.com). Try again later. If the error continues, contact your hosting.

    Last edited: Mar 5, 2014
  6. p4guru

    p4guru Well-Known Member

    compare your litespeed and apache respective PHPINFO pages and see what's missing from litespeed one compared to apache i.e. SSL support/curl etc
  7. jgas

    jgas Active Member

    Thanks p4guru!

    Below the 2 different configure command.
    As you can see, there is no curl or ssl support on litespeed!
    Do you have any idea on how I should proceed?


    Configure Command './configure' '--disable-fileinfo' '--disable-posix' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-intl' '--enable-libxml' '--enable-mbstring' '--enable-pdo=shared' '--enable-soap' '--enable-sockets' '--enable-wddx' '--enable-zip' '--prefix=/usr/local' '--with-bz2' '--with-curl=/opt/curlssl/' '--with-curlwrappers' '--with-enchant=/usr' '--with-freetype-dir=/usr' '--with-gd' '--with-gettext' '--with-icu-dir=/usr' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libdir=lib64' '--with-libexpat-dir=/usr' '--with-libxml-dir=/opt/xml2' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mm=/opt/mm/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=/usr/bin/mysql_config' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pcre-regex=/opt/pcre' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-pic' '--with-png-dir=/usr' '--with-pspell' '--with-snmp' '--with-tidy=/opt/tidy/' '--with-xmlrpc' '--with-xpm-dir=/usr' '--with-xsl=/opt/xslt/' '--with-zlib' '--with-zlib-dir=/usr' '--with-litespeed'


    Configure Command './configure' '--prefix=/usr/local/lsws/lsphp5' '--with-mysqli' '--with-zlib' '--with-gd' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--enable-mbstring' '--with-iconv' '--with-litespeed'
  8. p4guru

    p4guru Well-Known Member

    recompile LiteSpeed LSAPI PHP via admin console, OpenLiteSpeed is virtually same as LiteSpeed for admin console but OLS web site has better documentation that is up to date http://open.litespeedtech.com/mediawiki/index.php/Help:Configuration

    for PHP

    looks like images are broken LOL

    But here's another 2 guides for such http://openlitespeed.com/threads/se...entos-openlitespeed-percona-with-pictures.54/ and http://vbtechsupport.com/2214/
    jgas likes this.
  9. p4guru

    p4guru Well-Known Member

    oh if you're on WHM with LiteSpeed no need to do it manually, log into your WHM -> plugins -> LiteSpeed page and you should be able to click build matching binary for LSAPI PHP and it will build one to match your Apache PHP config :)
    MattW likes this.
  10. jgas

    jgas Active Member

    Very interesting! I'm building with this great guide from slavik: http://openlitespeed.com/threads/se...entos-openlitespeed-percona-with-pictures.54/

    I'll keep you posted! =)
  11. jgas

    jgas Active Member

    Slavik guide worked like a charm.
    Now the facebook integration is working just fine ;)

Share This Page