litespeed stopped

vivek

Well-Known Member
#1
Hello
LiteSpeed suddently stopped and all sites went down.
I checked the log and the last line was

"server stopped " , someting like that

I read that litespeed will restart itself when some error occured.
But why it is failed? I sshed and restarted lsws manually


My httpd.conf size is 3.7MB , around 89232 lines. . Is it because of some httpd.conf error ?
 

vivek

Well-Known Member
#2
Log:


2008-02-28 07:53:21.057 [INFO] [HTAccess] Updating configuration from [/home/mobileso/public_html/expertdogtrainingvideos/.htaccess]
2008-02-28 07:53:21.715 [INFO] [HTAccess] Updating configuration from [/home/heybaby/public_html/.htaccess]
2008-02-28 07:53:21.715 [INFO] [HTAccess] Updating configuration from [/home/heybaby/public_html/forums/.htaccess]
2008-02-28 07:53:22.002 [NOTICE] [66.249.73.138:41207-0#APVH_expertdogtrainingvideos.mobilesonlineinfo.com] [STDERR] Cache unable to open file for writing: $
2008-02-28 07:53:22.090 [NOTICE] [Child: 12400] Shut down successfully!
2008-02-28 07:53:22.090 [NOTICE] [lsphp4] stop worker processes
2008-02-28 07:53:22.090 [INFO] [lsphp4] kill pid: 12401
2008-02-28 07:53:22.090 [NOTICE] [AdminPHP] stop worker processes
2008-02-28 07:53:22.862 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 12400 !
2008-02-28 07:53:22.862 [INFO] [AutoRestater] Clean up child process with pid: 12401
2008-02-28 07:53:22.964 [NOTICE] [AutoRestarter] child process with pid=12400 exited with status=0!
2008-02-28 07:53:22.964 [NOTICE] [PID:12394] Server Stopped!
2008-0
 

vivek

Well-Known Member
#5
Just now noticed that, today 3 times lsws stopped and httpd automatically started!
Seems odd

How come httpd is starting automatically ?
 

vivek

Well-Known Member
#6
Just now, lsws stoped again. Here is the log
2008-02-29 11:42:40.266 [NOTICE] Your License key will expire in 15 days
2008-02-29 11:42:40.267 [NOTICE] Loading LiteSpeed/3.3.6 Enterprise ...
2008-02-29 11:42:40.369 [NOTICE] [ADMIN] server socket: uds://home/lsws/admin/tmp/admin.sock.7509
2008-02-29 11:42:40.369 [NOTICE] Loading configuration from /home/lsws/conf/httpd_config.xml ...
2008-02-29 11:42:40.369 [NOTICE] Recovering server socket: [127.0.0.1:443]
2008-02-29 11:42:40.369 [NOTICE] Recovering server socket: [127.0.0.1:80]
2008-02-29 11:42:40.369 [NOTICE] Recovering server socket: [69.59.25.27:443]
2008-02-29 11:42:40.369 [NOTICE] Recovering server socket: [69.59.25.27:80]
2008-02-29 11:42:40.369 [NOTICE] Recovering server socket: [69.59.25.28:443]
2008-02-29 11:42:40.369 [NOTICE] Recovering server socket: [69.59.25.28:80]
2008-02-29 11:42:40.369 [NOTICE] Recovering server socket: [76.76.11.52:443]
2008-02-29 11:42:40.369 [NOTICE] Recovering server socket: [76.76.11.52:80]
2008-02-29 11:42:40.369 [NOTICE] Recovering server socket: [76.76.11.53:443]
2008-02-29 11:42:40.369 [NOTICE] Recovering server socket: [76.76.11.53:80]
2008-02-29 11:42:40.369 [NOTICE] Recovering server socket: [76.76.11.54:443]
2008-02-29 11:42:40.369 [NOTICE] Recovering server socket: [76.76.11.54:80]
2008-02-29 11:42:40.369 [NOTICE] Recovering server socket: [76.76.11.55:443]
2008-02-29 11:42:40.370 [NOTICE] Recovering server socket: [76.76.11.55:80]
2008-02-29 11:42:40.370 [NOTICE] Recovering server socket: [76.76.11.56:443]
2008-02-29 11:42:40.370 [NOTICE] Recovering server socket: [76.76.11.56:80]
2008-02-29 11:42:40.370 [NOTICE] Recovering server socket: [76.76.11.57:443]
2008-02-29 11:42:40.370 [NOTICE] Recovering server socket: [76.76.11.57:80]
2008-02-29 11:42:40.370 [NOTICE] Recovering server socket: [76.76.11.58:443]
2008-02-29 11:42:40.370 [NOTICE] Recovering server socket: [76.76.11.58:80]
2008-02-29 11:42:40.370 [NOTICE] Recovering server socket: [76.76.11.59:443]
2008-02-29 11:42:40.370 [NOTICE] Recovering server socket: [76.76.11.59:80]
2008-02-29 11:42:40.370 [NOTICE] Recovering server socket: [76.76.11.60:443]
2008-02-29 11:42:40.370 [NOTICE] Recovering server socket: [76.76.11.60:80]
2008-02-29 11:42:40.370 [NOTICE] Recovering server socket: [76.76.11.61:443]
2008-02-29 11:42:40.370 [NOTICE] Recovering server socket: [76.76.11.61:80]
2008-02-29 11:42:40.370 [NOTICE] Recovering server socket: [*:7080]
2008-02-29 11:42:40.370 [NOTICE] [config] chroot is disabled.
2008-02-29 11:42:40.370 [INFO] old priority: 0, new priority: 0
2008-02-29 11:42:40.370 [INFO] [config:server:basic] For better obscurity, server version number is hidden in the response header.
2008-02-29 11:42:40.371 [WARN] [config:server:listener] No listener is available for normal virtual host!
2008-02-29 11:42:40.371 [NOTICE] The maximum number of file descriptor limit is set to 6000.
2008-02-29 11:42:40.372 [ERROR] [config:server:epsr:lsphp5] invalid path - /home/lsws/fcgi-bin/lsphp5, it cannot be started by Web server!
2008-02-29 11:42:40.372 [WARN] [config:server:epsr:lsphp4] Improper configuration: the value of PHP_LSAPI_CHILDREN should not be less than 'Max connections',
'Max connections' is reduced to 35.
2008-02-29 11:42:40.372 [ERROR] [config:scripthandler] Can not find handler with type: 8, name: lsphp5.
2008-02-29 11:42:40.372 [ERROR] [config:scripthandler] Can not find External Application: lsphp5, type: lsapi
2008-02-29 11:42:40.372 [ERROR] [config:scripthandler] use static file handler for suffix [php5]
2008-02-29 11:42:40.373 [INFO] Processing config file: /usr/local/apache/conf/includes/pre_main_global.conf
2008-02-29 11:42:40.373 [INFO] Processing config file: /usr/local/apache/conf/includes/pre_main_1.conf
2008-02-29 11:42:40.373 [INFO] Processing config file: /usr/local/apache/conf/php.conf
2008-02-29 11:42:40.373 [INFO] Processing config file: /usr/local/apache/conf/modsec.conf
2008-02-29 11:42:40.376 [INFO] Processing config file: /usr/local/apache/conf/includes/pre_virtualhost_global.conf
2008-02-29 11:42:40.376 [INFO] Processing config file: /usr/local/apache/conf/includes/pre_virtualhost_1.conf
2008-02-29 11:42:40.486 [INFO] Processing config file: /usr/local/apache/conf/includes/post_virtualhost_global.conf
2008-02-29 11:42:40.486 [INFO] Processing config file: /usr/local/apache/conf/includes/post_virtualhost_1.conf
2008-02-29 11:42:44.296 [ERROR] [/usr/local/apache/conf/httpd.conf:101286] Listener for 72.232.108.150:80 is not available!
2008-02-29 11:42:44.298 [ERROR] [/usr/local/apache/conf/httpd.conf:101322] Listener for 72.232.108.150:80 is not available!
2008-02-29 11:42:44.299 [ERROR] [/usr/local/apache/conf/httpd.conf:101358] Listener for 72.232.108.150:80 is not available!
2008-02-29 11:42:44.301 [ERROR] [/usr/local/apache/conf/httpd.conf:101394] Listener for 72.232.108.150:80 is not available!
2008-02-29 11:42:44.656 [NOTICE] [AutoRestarter] new child process with pid=19068 is forked!
2008-02-29 11:42:44.714 [NOTICE] [child: 19068] Successfully change current user to nobody
2008-02-29 11:42:44.714 [NOTICE] [Child: 19068] Core dump is enabled.
2008-02-29 11:42:44.714 [NOTICE] [Child: 19068] Setup swapping space...
2008-02-29 11:42:44.715 [NOTICE] [Child: 19068] LiteSpeed/3.3.6 Enterprise starts successfully!
2008-02-29 11:42:44.717 [INFO] [HTAccess] Updating configuration from [/home/rasol/public_html/.htaccess]
2008-02-29 11:42:44.718 [INFO] [HTAccess] Updating configuration from [/home/rasol/public_html/vb/.htaccess]
2008-02-29 11:42:44.733 [INFO] [HTAccess] Updating configuration from [/home/chat/public_html/.htaccess]
2008-02-29 11:42:44.750 [INFO] [lsphp4] add child process pid: 19069
2008-02-29 11:42:44.750 [INFO] [lsphp4] pid list size: 1
2008-02-29 11:42:44.750 [INFO] [HTAccess] Updating configuration from [/home/el3rab/public_html/.htaccess]




then


2008-02-29 11:51:02.485 [INFO] [HTAccess] Updating configuration from [/home/mix93/public_html/.htaccess]
2008-02-29 11:51:03.899 [INFO] [HTAccess] Updating configuration from [/home/lusadigi/public_html/.htaccess]
2008-02-29 11:51:18.178 [INFO] [HTAccess] Updating configuration from [/home/adrianh/public_html/.htaccess]
2008-02-29 11:51:22.739 [INFO] [HTAccess] Updating configuration from [/home/echatnow/public_html/.htaccess]
2008-02-29 11:51:28.590 [INFO] [HTAccess] Updating configuration from [/home/admin104/public_html/.htaccess]
2008-02-29 11:51:33.216 [INFO] [HTAccess] Configuration file [/home/heybaby/public_html/forums/.htaccess]
2008-02-29 11:51:48.909 [INFO] [HTAccess] Updating configuration from [/home/images12/public_html/.htaccess]
2008-02-29 11:51:49.698 [INFO] [HTAccess] Configuration file [/home/teamhack/public_html/unionforos.com/.htaccess] changed.
2008-02-29 11:51:49.698 [INFO] [HTAccess] Updating configuration from [/home/teamhack/public_html/unionforos.com/.htaccess]
2008-02-29 11:51:56.193 [INFO] [HTAccess] Updating configuration from [/home/mvdcm/public_html/.htaccess]
2008-02-29 11:51:59.479 [INFO] [HTAccess] Updating configuration from [/home/w2knowle/public_html/.htaccess]
2008-02-29 11:52:00.174 [INFO] [HTAccess] Updating configuration from [/home/marmayog/public_html/.htaccess]
2008-02-29 11:52:00.334 [INFO] [HTAccess] Configuration file [/home/teamhack/public_html/unionforos.com/.htaccess] changed.
2008-02-29 11:52:00.334 [INFO] [HTAccess] Updating configuration from [/home/teamhack/public_html/unionforos.com/.htaccess]
2008-02-29 11:52:01.546 [NOTICE] [86.62.5.38:1308-0#APVH_n-iraq.com] [STDERR] PHP Parse error: syntax error, unexpected '>' in /home/iraqn/public_html/vb/in
cludes/cron/remindermail.php on line 43
2008-02-29 11:52:04.935 [NOTICE] SIGTERM received, stop server...
2008-02-29 11:52:04.935 [NOTICE] [Child: 21901] Start shutting down gracefully ...
2008-02-29 11:52:04.935 [INFO] Stop listener 127.0.0.1:443.
2008-02-29 11:52:04.935 [INFO] Stop listener 127.0.0.1:443.
2008-02-29 11:52:04.935 [INFO] Stop listener 127.0.0.1:80.
2008-02-29 11:52:04.935 [INFO] Stop listener 69.59.25.27:443.
2008-02-29 11:52:04.935 [INFO] Stop listener 127.0.0.1:80.
2008-02-29 11:52:04.935 [INFO] Stop listener 69.59.25.27:80.
2008-02-29 11:52:04.935 [INFO] Stop listener 69.59.25.28:443.
2008-02-29 11:52:04.935 [INFO] Stop listener 69.59.25.27:443.
2008-02-29 11:52:04.935 [INFO] Stop listener 69.59.25.28:80.
2008-02-29 11:52:04.935 [INFO] Stop listener 76.76.11.52:443.
2008-02-29 11:52:04.935 [INFO] Stop listener 69.59.25.27:80.
2008-02-29 11:52:04.935 [INFO] Stop listener 76.76.11.52:80.
2008-02-29 11:52:04.935 [INFO] Stop listener 76.76.11.53:443.
2008-02-29 11:52:04.935 [INFO] Stop listener 69.59.25.28:443.
2008-02-29 11:52:04.935 [INFO] Stop listener 76.76.11.53:80.
2008-02-29 11:52:04.935 [INFO] Stop listener 69.59.25.28:80.
2008-02-29 11:52:04.935 [INFO] Stop listener 76.76.11.54:443.
2008-02-29 11:52:04.935 [INFO] Stop listener 76.76.11.52:443.
2008-02-29 11:52:04.935 [INFO] Stop listener 76.76.11.54:80.
2008-02-29 11:52:04.935 [INFO] Stop listener 76.76.11.55:443.
2008-02-29 11:52:04.935 [INFO] Stop listener 76.76.11.52:80.
2008-02-29 11:52:04.935 [INFO] Stop listener 76.76.11.55:80.
2008-02-29 11:52:04.935 [INFO] Stop listener 76.76.11.53:443.
2008-02-29 11:52:04.935 [INFO] Stop listener 76.76.11.56:443.
2008-02-29 11:52:04.935 [INFO] Stop listener 76.76.11.56:80.


etc
and stopped

I am not sure , what will do ?

Vivek
 

vivek

Well-Known Member
#8
[root@monster ~]# crontab -e

45 3 * * * /scripts/upcp
0 1 * * * /scripts/cpbackup
*/15 * * * * /usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1
2,58 * * * * /usr/local/bandmin/bandmin
0 0 * * * /usr/local/bandmin/ipaddrmap
50 1 * * * /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify
6 3 * * * perl /root/rvadmin/auto_rvskin.pl
*/5 * * * * perl /root/rvadmin/rvmultiupdate.pl >/dev/null 2>&1
20 3 * * * cd /usr/local/cpanel/whostmgr/docroot/cgi/fantastico/scripts/ ; /usr/local/cpanel/3rdparty/bin/php cron.php > /dev/null 2>&1
30 1 * * * /usr/local/cpanel/whostmgr/docroot/cgi/whmreseller/versionupdate3 >/dev/null 2>&1
30 2 * * * /usr/local/cpanel/whostmgr/docroot/cgi/whmreseller/scripts/backupcron >/dev/null 2>&1
0 6 * * * /scripts/exim_tidydb > /dev/null 2>&1
*/5 * * * * /usr/local/cpanel/whostmgr/docroot/cgi/whmreseller/wdmonitor >/dev/null 2>&1
*/5 * * * * /usr/local/cpanel/bin/dcpumon >/dev/null 2>&1




As far as I know, there is nothing like that.



Note: I just contacted cPanel.net and here is their mail regarding the php problem


"

Hello:

lightspeed is not supported by cPanel, and I notice that you have Apache RPMs installed:


[root@monster ~]# rpm -qa|grep -i httpd
httpd-2.0.52-38.ent.centos4.2
httpd-suexec-2.0.52-38.ent.centos4.2
httpd-manual-2.0.52-38.ent.centos4.2
system-config-httpd-1.3.1-1


cPanel's implementation of Apache does not use RPMs. The RPMs will need to be removed, and Apache rebuilt using EasyApache.


Jared Ryan
Technical Support
cPanel
 

vivek

Well-Known Member
#9
Hi

I think this is not related to litespeed that the php is showing error something like our of memory. It is showing ony when apache started.

But I dont know why litesped is exiting and apache is starting suddently

How do I cofirm that their is something which is killing lsws ?
 

vivek

Well-Known Member
#10
again stopped and apache started

[root@monster logs]# tail -f error.log
2008-02-29 21:45:16.889 [INFO] Stop listener 76.76.11.61:80.
2008-02-29 21:45:16.889 [INFO] Stop listener *:7080.
2008-02-29 21:45:17.809 [NOTICE] [Child: 6297] Shut down successfully!
2008-02-29 21:45:17.809 [NOTICE] [lsphp4] stop worker processes
2008-02-29 21:45:17.809 [INFO] [lsphp4] kill pid: 6298
2008-02-29 21:45:17.809 [NOTICE] [AdminPHP] stop worker processes
2008-02-29 21:45:18.705 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 6297 !
2008-02-29 21:45:18.705 [INFO] [AutoRestater] Clean up child process with pid: 6298
2008-02-29 21:45:18.807 [NOTICE] [AutoRestarter] child process with pid=6297 exited with status=0!
2008-02-29 21:45:18.807 [NOTICE] [PID:6274] Server Stopped!
 

mistwang

LiteSpeed Staff
#11
I have no clue, it is definitely not our program or script.
Have you done any thing in WHM recently? Is the "httpd" service in WHM unchecked.
 

vivek

Well-Known Member
#12
As far as I know, I did not do anything in WHM. But the cPanel tech did some work , but that was with exim I think. Mails were not going and I requested them to fix it.
They updated exim and etc , thus the problem sorted but, I think lsws problem started from now.

What is the problem is ,

Litespeed is quitting , by giving this line is error.log
"2008-03-01 06:09:47.989 [NOTICE] SIGTERM received, stop server..."

And apache is starting automatically!!



I am not good in bash scripting, but can you help me for creating a bash script?
I want to run this every hour,

If httpd is running
{
if lshttpd is not running
{
service httpd stop
service lsws restart
}
}
 
Top