[solved] 503 Service Unavailable in WHMCS

Discussion in 'General' started by 3245, Jun 7, 2013.

  1. webking_amsterdam

    webking_amsterdam New Member

    Attempting to resolve the 503 error pages using Litespeed webserver and accessing WHMCS pages on my site I now have a big problem.

    I am using CloudLinux plus cageFS and phpSelector on my VPS server.

    My nameserver is continuously restarting now and generating a continuous stream of error messages and email notifications !

    Going back to Apache webserver has not solved the problem!

    This was caused by executing the following commands and instructions on this forum: quote:

    """""quote-
    This problem was solved with the help CPanel staff and litespeed staff,
    soloution:

    [root@# mv /usr/lib64/libxml2.so.2 /usr/lib64/libxml2.so.2-bak
    [root@# ln -s /usr/lib/libxml2.so.2 /usr/lib64/libxml2.so.2
    then see it work fine:

    """"""quote-end

    My error (email) messages are:

    """quote-
    nameserver failed @ date + time etc. A restart was attempted automagically

    named is not running

    Starting named:
    Error in named configuration:
    /usr/sbin/named-checkconf: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory
    [FAILED]

    Jun 12 10:02:03 serverx1 named: /usr/sbin/named-checkconf: error while loading shared libraries: libxml2.so.2: cannot open shared object file: No such file or directory
    *"""end-of-quote-

    Whether the following error message in the WHM panel under the CageFS plugin there:

    "Internal Server Error - 500"
    "No response from subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/addon_cagefs.cgi): The subprocess exited with status 2 (ENOENT)."
    "cpsrvd/11.44.0.7 Server at 149.210.176.112"

    It is all quite complex: CloudLinux - CageFS - Litespeed - WHM/cPanel - WHMCS - Installatron to fully understand all the interdependencies.

    Litespeed is a very nice fast webserver that I would very much like continue using on this newly set up shared webhosting server and later on other VPS offerings.

    Hope to hear soon and get this mess sorted out ...
    Last edited: Jun 23, 2014
  2. mistwang

    mistwang LiteSpeed Staff

    check output of
    locate the libxml2.so.2 , make it available at desired location by creating symbolic link or just copying it.
    ldd command should be successful without any missing dependency.
  3. webking_amsterdam

    webking_amsterdam New Member

    executing the above command indeed gives message: libxml2.so.2 => not found

    For locating the file we type from commandline:

    # find / -name libxml2.so.2 and see:

    /opt/alt/libxml2/usr/lib64/libxml2.so.2
    /opt/xml2/lib/libxml2.so.2
    /usr/share/cagefs-skeleton/opt/alt/libxml2/usr/lib64/libxml12.so.2
    /usr/share/cagefs-skeleton/opt/xml2/lib/libxml2.so.2
    /usr/share/cagefs-skeleton/usr/local/cpanel/3rdparty/lib64/libxml2.so.2
    /usr/share/cagefs-skeleton/usr/lib64/libxml2.so.2
    /usr/local/cpanel/lib/libxml2.so.2
    /usr/local/cpanel/3rdparty/lib64/libxml2.so.2
    /usr/local/cpanel/lib64/libxml2.so.2
    /usr/lib64/libxml2.so.2

    There seem to quite a few 'libxml2.so.2' files .. ?

    What is the desired location for 'libxml2.so.2' ?

    And how to create the symbolic link or just copy it ?

    Is there no other easy way of reverting the original commands (below) we used ?

    [root@# mv /usr/lib64/libxml2.so.2 /usr/lib64/libxml2.so.2-bak
    [root@# ln -s /usr/lib/libxml2.so.2 /usr/lib64/libxml2.so.2

    Can you please help us out ?
    Last edited: Jun 23, 2014
  4. webking_amsterdam

    webking_amsterdam New Member

    Well thanks to the good and very professional people at CloudLinux.com this problem. was almost instantly dealt with and solved . They re-installed the CloudLinux kernel on the server and the necessary packages as the "yum reinstall" command could not be run !

    I will start investigating my Litespeed issue of the 503 Pages in WHMCS ...... ?

    A lot of important information on troubleshooting Litespeed 503 page errors can be found at:

    http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:php_503_error
    Last edited: Jun 24, 2014
  5. jacob

    jacob New Member

    I too see a lot of 503 errors. I use PHP Selector with CloudLinux and it appears disabling the PHP Modules: zend_guard_loader and ioncube_loader fixes these problems. Of course that can be hard when using WHMCS.
  6. Michael

    Michael Administrator Staff Member

    Howdy Jacob,

    Yes, Zend Guard Loader has been known to have problems with LSWS. This is functionality we would like to add, though it is not on the immediate to-do list.

    Cheers,

    Michael
  7. webking_amsterdam

    webking_amsterdam New Member

    I would like to thank Litespeed's Marketing Director Michael Amstrong as well as mr. Gary Duan for pointing me to the above 503 page error information and generally assuring me of their commitment to bring this issue to clarity.

    After my trial license was generously extended we planned to troubleshoot and I first did the following:

    - first a 'forced' reinstall of Litespeed through Litespeed interface in WHM/cPanel
    - removed the old trial license key wand replaced it with a new one
    - rebooted my VPS server
    - then rebuilt LSWS php
    - restarted Litespeed webserver
    - cleared the cache of my browser ( Chrome )

    Going to my website with the WHMCS portal theme page I did not get any 503 Litespeed warning pages.
    Also in the Admin section of WHMCS no problems I am happy to report !

    Previously I had the 503 page warning appear when as web visitor changing my language from the default language set to another language which was very strange ...

    Maybe there was some earlier misconfiguration of php ....

    Again I would like to repeat the important information on 503 error pages located at:

    http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:php_503_error

    Litespeed is very quick and responsive I can report !

    WHMCS + CloudLinux + CageFS + phpSelector + Litespeed webserver seem to be working well together !!!!!!!!!!!!!!!!

    In fact after doing the above it was not even necessary for Litespeed tech support to do any troubleshooting nor did I have to study the above instructions !


    -
    Last edited: Jun 24, 2014
  8. Michael

    Michael Administrator Staff Member

    Glad we could work this out.

    Cheers,

    Michael
  9. webking_amsterdam

    webking_amsterdam New Member

    Looks like I have been 'over-optimistic' as the WHMCS - Litespeed 503 warning page problem resurfaced the next day when changing the language with the language selector !
  10. Michael

    Michael Administrator Staff Member

    Sorry to hear that. Can you paste the errors you're seeing from your error logs here?

    Michael
  11. webking_amsterdam

    webking_amsterdam New Member

    The error log contains:

    2014-06-30 15:50:31.607INFO[87.210.212.131:64033-0#APVH_247secureit.net] File not found [/home/admin57/public_html/503.shtml]
    2014-06-30 15:50:36.411INFO[APVH_admin57_Suphp:] PID: 571714, add child process pid: 573729, procinfo: 0x1908340
    2014-06-30 15:50:41.256INFO[87.210.212.131:64044-0#APVH_247secureit.net] connection to [/tmp/lshttpd/APVH_247secureit.net_Suphp.sock] on request #1, confirmed, 1, associated process: 573729, running: 0, error: Connection reset by peer!
    2014-06-30 15:50:41.256NOTICE[87.210.212.131:64044-0#APVH_247secureit.net] POST request in process stage, fail with 503
    2014-06-30 15:50:41.256INFOProcess: 573729, killed by signal: 11, core dump: 128
    2014-06-30 15:50:41.256NOTICE[87.210.212.131:64044-0#APVH_247secureit.net] oops! 503 Service Unavailable
    2014-06-30 15:50:41.256NOTICE[87.210.212.131:64044-0#APVH_247secureit.net] Content len: 61, Request line: 'POST /index.php HTTP/1.1'
    2014-06-30 15:50:41.256INFO[87.210.212.131:64044-0#APVH_247secureit.net] Cookie len: 44, WHMCSVUyKE8khYwr8=ir0aeti1u4i6ipmqj5tkfesat3
    2014-06-30 15:50:41.256INFO[87.210.212.131:64044-0#APVH_247secureit.net] abort request..., code: 4
    2014-06-30 15:50:41.256INFO[87.210.212.131:64044-0#APVH_247secureit.net] File not found [/home/admin57/public_html/503.shtml]
    2014-06-30 15:50:46.066INFO[APVH_admin57_Suphp:] PID: 571714, add child process pid: 573744, procinfo: 0x1908340
    2014-06-30 15:51:10.743INFO[AdminPHP] PID: 571713, add child process pid: 573778, procinfo: 0x1868c90
    2014-06-30 15:51:30.345INFO[APVH_adminrecht57_Suphp:] PID: 571714, add child process pid: 573814, procinfo: 0x1866590
    2014-06-30 15:52:23.277INFO[APVH_adminrecht57_Suphp:] PID: 571714, add child process pid: 573899, procinfo: 0x1866590
    2014-06-30 15:53:21.225INFO[APVH_admin57_Suphp:] PID: 571714, add child process pid: 573991, procinfo: 0x1908340
    2014-06-30 15:53:27.792INFO[87.210.212.131:64112-0#APVH_247secureit.net] connection to [/tmp/lshttpd/APVH_247secureit.net_Suphp.sock] on request #1, confirmed, 1, associated process: 573991, running: 1, error: Connection reset by peer!
    2014-06-30 15:53:27.792NOTICE[87.210.212.131:64112-0#APVH_247secureit.net] POST request in process stage, fail with 503
    2014-06-30 15:53:27.792NOTICE[87.210.212.131:64112-0#APVH_247secureit.net] oops! 503 Service Unavailable
    2014-06-30 15:53:27.792NOTICE[87.210.212.131:64112-0#APVH_247secureit.net] Content len: 62, Request line: 'POST /index.php HTTP/1.1'
    2014-06-30 15:53:27.792INFO[87.210.212.131:64112-0#APVH_247secureit.net] Cookie len: 44, WHMCSVUyKE8khYwr8=ir0aeti1u4i6ipmqj5tkfesat3
    2014-06-30 15:53:27.792INFO[87.210.212.131:64112-0#APVH_247secureit.net] abort request..., code: 4
    2014-06-30 15:53:27.792INFO[87.210.212.131:64112-0#APVH_247secureit.net] File not found [/home/admin57/public_html/503.shtml]
    2014-06-30 15:53:27.793INFOProcess: 573991, killed by signal: 11, core dump: 128
    2014-06-30 15:54:11.211INFO[APVH_admin57_Suphp:] PID: 571714, add child process pid: 574101, procinfo: 0x1908340
    2014-06-30 15:54:17.052INFO[87.210.212.131:64134-0#APVH_247secureit.net] connection to [/tmp/lshttpd/APVH_247secureit.net_Suphp.sock] on request #1, confirmed, 1, associated process: 574101, running: 0, error: Connection reset by peer!
    2014-06-30 15:54:17.052NOTICE[87.210.212.131:64134-0#APVH_247secureit.net] POST request in process stage, fail with 503

    2014-06-30 16:00:01.243INFO[127.0.0.1:46523-0#APVH_149.210.176.112:80 127.0.0.1:80_serverx1.247secureit.net] File not found [/usr/local/apache/htdocs/whm-server-status]
    2014-06-30 16:00:01.912INFO[127.0.0.1:46525-0#APVH_149.210.176.112:80 127.0.0.1:80_serverx1.247secureit.net] File not found [/usr/local/apache/htdocs/whm-server-status]
    2014-06-30 16:00:02.427INFO[127.0.0.1:46526-0#APVH_149.210.176.112:80 127.0.0.1:80_serverx1.247secureit.net] File not found [/usr/local/apache/htdocs/whm-server-status]
  12. NiteWave

    NiteWave Administrator

    not sure if this will help:

    configure tmpwatch (/etc/cron.daily/tmpwatch), exclude /tmp/lshttp from tmpwatch

Share This Page