Litespeed Stopped Working

MattW

Well-Known Member
#1
At just before 5PM BST, Litespeed started to report errors, and won't serve any sites on my server

These are the errors in the error log

Code:
2015-08-22 18:57:31.810 [INFO] [lsphp5] PID: 27346, add child process pid: 27352, procinfo: 0x3026f40
2015-08-22 18:57:31.810 [NOTICE] litespeed (27346) is ready
2015-08-22 18:57:31.810 [NOTICE] [AutoRestarter] new child process with pid=27353 is forked!
2015-08-22 18:57:31.810 [NOTICE] [Child: 27353] Setup swapping space...
2015-08-22 18:57:31.811 [NOTICE] [child: 27353] Successfully change current user to nobody
2015-08-22 18:57:31.811 [NOTICE] [Child: 27353] Core dump is enabled.
2015-08-22 18:57:31.811 [NOTICE] [Child: 27353] LiteSpeed/5.0.5 Enterprise starts successfully!
2015-08-22 18:57:31.821 [INFO] [lsphp5] PID: 27346, add child process pid: 27356, procinfo: 0x3026f40
2015-08-22 18:57:31.821 [INFO] [lshttpd:27346] ExtApp deamon process 27352 exit, exitcode: 254, restarted
2015-08-22 18:57:31.831 [INFO] [lsphp5] PID: 27346, add child process pid: 27357, procinfo: 0x3026f40
2015-08-22 18:57:31.831 [INFO] [lshttpd:27346] ExtApp deamon process 27356 exit, exitcode: 254, restarted
2015-08-22 18:57:31.841 [INFO] [lsphp5] PID: 27346, add child process pid: 27358, procinfo: 0x3026f40
2015-08-22 18:57:31.841 [INFO] [lshttpd:27346] ExtApp deamon process 27357 exit, exitcode: 254, restarted
2015-08-22 18:57:31.851 [INFO] [lsphp5] PID: 27346, add child process pid: 27359, procinfo: 0x3026f40
2015-08-22 18:57:31.851 [INFO] [lshttpd:27346] ExtApp deamon process 27358 exit, exitcode: 254, restarted
2015-08-22 18:57:31.860 [INFO] [lsphp5] PID: 27346, add child process pid: 27360, procinfo: 0x3026f40
2015-08-22 18:57:31.860 [INFO] [lshttpd:27346] ExtApp deamon process 27359 exit, exitcode: 254, restarted
2015-08-22 18:57:31.869 [INFO] [lsphp5] PID: 27346, add child process pid: 27361, procinfo: 0x3026f40
2015-08-22 18:57:31.869 [INFO] [lshttpd:27346] ExtApp deamon process 27360 exit, exitcode: 254, restarted
2015-08-22 18:57:31.879 [INFO] [lsphp5] PID: 27346, add child process pid: 27362, procinfo: 0x3026f40
2015-08-22 18:57:31.879 [INFO] [lshttpd:27346] ExtApp deamon process 27361 exit, exitcode: 254, restarted
2015-08-22 18:57:31.888 [INFO] [lsphp5] PID: 27346, add child process pid: 27363, procinfo: 0x3026f40
2015-08-22 18:57:31.888 [INFO] [lshttpd:27346] ExtApp deamon process 27362 exit, exitcode: 254, restarted
2015-08-22 18:57:31.898 [INFO] [lsphp5] PID: 27346, add child process pid: 27364, procinfo: 0x3026f40
2015-08-22 18:57:31.898 [INFO] [lshttpd:27346] ExtApp deamon process 27363 exit, exitcode: 254, restarted
2015-08-22 18:57:31.907 [INFO] [lsphp5] PID: 27346, add child process pid: 27365, procinfo: 0x3026f40
2015-08-22 18:57:31.907 [INFO] [lshttpd:27346] ExtApp deamon process 27364 exit, exitcode: 254, restarted
2015-08-22 18:57:31.916 [INFO] [lsphp5] PID: 27346, add child process pid: 27366, procinfo: 0x3026f40
It's been fine for the last 50 days since the server was provisioned, and only started today.
 

MattW

Well-Known Member
#2
When I switch back to Litespeed, it's as though it can't connect via the unix socket to the PHP process
Code:
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     10547096 P10547097
unix  3      [ ]         STREAM     CONNECTED     6586   P6587
unix  3      [ ]         STREAM     CONNECTED     10360  P10359
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     10547017 P10547018
unix  3      [ ]         STREAM     CONNECTED     10477404 P10477403
unix  3      [ ]         STREAM     CONNECTED     10687824 P0
unix  3      [ ]         STREAM     CONNECTED     10301  P10173
unix  3      [ ]         STREAM     CONNECTED     10786735 P0
unix  3      [ ]         STREAM     CONNECTED     6961644 P6961643
unix  3      [ ]         DGRAM                    5746   P5745
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     10825716 P0
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     6557   P6558
unix  3      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     6590   P6589
unix  2      [ ]         DGRAM                    8660   P9228
unix  3      [ ]         STREAM     CONNECTED     10477316 P10477315
unix  3      [ ]         STREAM     CONNECTED     10688154 P0
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     10688425 P0
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     624    /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     6571   P6572
unix  3      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     10578443 P0
unix  3      [ ]         STREAM     CONNECTED     10688221 P0
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     10851382 P0
unix  3      [ ]         STREAM     CONNECTED     10786453 P0
unix  2      [ ]         STREAM     CONNECTED     10547105 P0
unix  3      [ ]         STREAM     CONNECTED     6565   P6566
unix  3      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     6559   /var/run/dbus/system_bus_socket
unix  3      [ ]         STREAM     CONNECTED     10786460 P0
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     10601952 P0
unix  3      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     6581   P6580
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     10623390 P0
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  2      [ ]         DGRAM                    3664   P9228
unix  3      [ ]         STREAM     CONNECTED     6572   P6571
unix  2      [ ]         DGRAM                    9874   P9228
unix  3      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     6587   P6586
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  2      [ ]         STREAM     CONNECTED     10683476 P0
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     10351176 P10351919
unix  3      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  2      [ ]         STREAM     CONNECTED     11288  P0
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     10359  P10360
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     10547097 P10547096
unix  3      [ ]         STREAM     CONNECTED     8754   P10172
unix  3      [ ]         STREAM     CONNECTED     10173  /var/run/dovecot/config
unix  3      [ ]         STREAM     CONNECTED     10547102 P10547103
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     10655396 P0
unix  3      [ ]         STREAM     CONNECTED     6558   P6557
unix  3      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  2      [ ]         STREAM     CONNECTED     8770   P0
unix  3      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     621    /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     6566   P6565
unix  3      [ ]         STREAM     CONNECTED     622    /var/run/dovecot/anvil
unix  3      [ ]         STREAM     CONNECTED     10601953 P0
unix  3      [ ]         STREAM     CONNECTED     10786556 P0
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     10547103 P10547102
unix  3      [ ]         STREAM     CONNECTED     7827   P10171
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     10760123 P0
unix  3      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     10362  P10361
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     6574   P6575
unix  3      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     6961643 P6961644
unix  3      [ ]         STREAM     CONNECTED     10687953 P0
unix  3      [ ]         STREAM     CONNECTED     3666   P10170
unix  3      [ ]         STREAM     CONNECTED     10760122 P0
unix  3      [ ]         STREAM     CONNECTED     10601954 P0
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     10760191 P0
unix  3      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     6589   P6590
unix  3      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     10477403 P10477404
unix  3      [ ]         STREAM     CONNECTED     8755   P622
unix  3      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     10171  /var/run/dovecot/config
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
unix  3      [ ]         STREAM     CONNECTED     6568   P6569
unix  3      [ ]         STREAM     CONNECTED     10688084 P0
unix  2      [ ]         STREAM     CONNECTING    0      /tmp/lshttpd/lsphp5.sock.26843
 

MattW

Well-Known Member
#3
I've disabled ZendOpcache, and I can get Litespeed to start now.

Code:
# php -v
PHP 5.6.12 (cli) (built: Aug 22 2015 19:39:48)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
 

MattW

Well-Known Member
#4
OK, so you can't allocate more than 1024mb to Opcache
opcache.memory_consumption=1024

Although, I actually changed the setting about 4 days ago to increase to more than 1GB of memory
 
Last edited:
Top