[RESOLVED] 503 error

DanEZPZ

Well-Known Member
#1
Hi,

One of my clients is getting the following (domain blanked out)



We're running 4.0.13 but it also did it on 4.0.12. Any ideas why this would happen and what we can do to stop it? This seems to have only started within the last couple of days.

Thanks
 
Last edited by a moderator:

mistwang

LiteSpeed Staff
#2
It is likely caused by PHP crash.
You can add environment variable

LSAPI_ALLOW_CORE_DUMP

to lsphp5 external app configuration to let PHP dump a core file.
http://www.litespeedtech.com/php-litespeed-sapi.html

restart LSWS, then try the request causes 503 error, if core file produced under the same directory holding the script, then you can check the core file with GDB

gdb /usr/local/lsws/fcgi-bin/lsphp5 core_file_name
bt

It lists the stack call backs when PHP crashes, you can get some clue from it.
 

DanEZPZ

Well-Known Member
#4
Thanks, the following had to be commented out:

Code:
if (extension_loaded('zlib') && !ini_get('zlib.output_compression')) @ob_start('ob_gzhandler');
 
Top