[Closed] 503 Service Unavailable in WHMCS

Status
Not open for further replies.
#21
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:


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:

My error (email) messages are:


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
*
Whether the following error message in the WHM panel under the CageFS plugin there:

Code:
"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 by a moderator:

mistwang

LiteSpeed Staff
#22
check output of
ldd /usr/sbin/named-checkconf
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.
 
#23
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:
Code:
/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 ?

Code:
[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 by a moderator:
#24
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:

https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:php:503-errors
 
Last edited by a moderator:
#25
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.
 
Last edited by a moderator:

Michael

Well-Known Member
Staff member
#26
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
 
#27
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:

https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:php:503-errors

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:
#31
The error log contains:
Code:
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]
 
Last edited by a moderator:

NiteWave

Administrator
#32
not sure if this will help:

configure tmpwatch (/etc/cron.daily/tmpwatch), exclude /tmp/lshttp from tmpwatch
 
Last edited by a moderator:
Status
Not open for further replies.
Top