Problem with 503 Service Unavaiable

#1
This problem comes from php 4 (build with litespeed) and newest 5.
The server is Debian Squeeze 6
Same configuration run on others server with Ubuntu 12.04, but don't run on my personal computer

PHP 5.4.13 (litespeed)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
Configure Command => './configure' '--prefix=/usr/local/php5' '--with-litespeed' '--with-config-file-path=/home/xavier/configs' '--with-zlib' '--with-zlib-dir=..' '--with-gd' '--with-jpeg-dir=..' '--with-png-dir=..' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--with-mysql' '--with-mysqli' '--enable-exif' '--enable-ftp' '--enable-mbstring' '--with-freetype' '--with-freetype-dir=/usr/include/freetype2' '--with-ttf' '--with-curl' '--enable-bcmath' '--enable-calendar' '--enable-dba=shared' '--with-gettext=shared' '--enable-zip'
Server API => LiteSpeed V5.5
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /home/xavier/configs
Loaded Configuration File => /home/xavier/configs/php.ini

This is php.ini
allow_url_fopen = On
date.timezone = Europe/London
magic_quotes_gpc = Off
output_buffering = On
error_reporting = E_ALL & ~E_NOTICE
display_errors = On
log_errors = On

Max Connections 10
Environment PHP_LSAPI_MAX_REQUESTS=500
PHP_LSAPI_CHILDREN=30
Memory Soft Limit (bytes) 500M
Memory Hard Limit (bytes) 550M
Process Soft Limit 100
Process Hard Limit 200



Max Connections 2000
Max SSL Connections 200
Connection Timeout (secs) 300
Max Keep-Alive Requests 1000
Smart Keep-Alive Yes
Keep-Alive Timeout (secs) 5
I/O Event Dispatcher best (All platforms)
Max Cached Small File Size (bytes) 4096
Total Small File Cache Size (bytes) 20M

3GB RAM, Intel Core Duo @2.00 GHz


Error.log in attachment
 

Attachments

Last edited:
#3
xavier@xavier-notelinux:~$ /usr/local/lsws/fcgi-bin/lsphp5 -i |head
phpinfo()
PHP Version => 5.4.13

System => Linux xavier-notelinux 2.6.32-5-686 #1 SMP Mon Feb 25 01:04:36 UTC 2013 i686
Build Date => Apr 10 2013 14:11:21
Configure Command => './configure' '--prefix=/usr/local/php5' '--with-litespeed' '--with-config-file-path=/home/xavier/configs' '--with-zlib' '--with-zlib-dir=..' '--with-gd' '--with-jpeg-dir=..' '--with-png-dir=..' '--enable-shmop' '--enable-track-vars' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-magic-quotes' '--with-mysql' '--with-mysqli' '--enable-exif' '--enable-ftp' '--enable-mbstring' '--with-freetype' '--with-freetype-dir=/usr/include/freetype2' '--with-ttf' '--with-curl' '--enable-bcmath' '--enable-calendar' '--enable-dba=shared' '--with-gettext=shared' '--enable-zip'
Server API => LiteSpeed V5.5
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /home/xavier/configs
Loaded Configuration File => /home/xavier/configs/php.ini


Nothing. The error is the same with the build version of PHP, and the latest. The webfiles is the same that I'm using in others servers.
 
#5
503 Service Unavailable

The server is temporarily busy, try again later!
Powered By LiteSpeed Web Server
LiteSpeed Technologies is not responsible for administration and contents of this web site!
 
#9
Is already to yes, in Server - External Apps, and in vHost - Php.
xavier@xavier-notelinux:~/Documenti$ ps -ef|grep lsphp5
xavier 1526 1525 0 12:18 ? 00:00:00 /usr/local/lsws/fcgi-bin/lsphp5
xavier 5664 3333 0 16:32 pts/0 00:00:00 grep lsphp5


Exactly the same configuration in all the tab of administration, between my VPS with Ubuntu 12.04, 1 CPU cores, 2.000 MHz CPU-power, 1.024 MB RAM guaranteed - and my notebook, with Debian 6.0 Squeeze, Intel Duo Core @2.00 GHz, 4 GB Ram (3 GB free), with same PHP version and ./configure; the first run, the second doing this 503 error.

Exactly same happened to my personal computer, also with Debian 6.0.

Problem is not related with this version of PHP. Also with pre-bundled version of PHP, PHP 4.4.9 (litespeed) (built: Apr 12 2011 09:59:27)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
problem is the same.
 
Last edited:
#10
2013-04-11 17:54:09.673 [DEBUG] [127.0.0.1:47260-4#haujournal.org] Find handler [haujournal.org_lsphp] for [.php]
2013-04-11 17:54:09.673 [DEBUG] [127.0.0.1:47260-4#haujournal.org] processContextPath() return 0
2013-04-11 17:54:09.673 [DEBUG] [127.0.0.1:47260-4#haujournal.org] run lsapi processor.
2013-04-11 17:54:09.673 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] [ExtConn] reconnect()
2013-04-11 17:54:09.673 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] [ExtConn] connecting to [uds://tmp/lshttpd/haujournal.org_lsphp.sock]...
2013-04-11 17:54:09.673 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] ExtConn::eek:nWrite()
2013-04-11 17:54:09.673 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] request header is done
2013-04-11 17:54:09.673 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] ExtConn::continueRead()
2013-04-11 17:54:09.673 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] Request body done!
2013-04-11 17:54:09.674 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] ExtConn::suspendWrite()
2013-04-11 17:54:09.674 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] processNewReq() return 0.
2013-04-11 17:54:09.675 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] ExtConn::eek:nRead(), state: 2
2013-04-11 17:54:09.675 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] LsapiConn::doRead()
2013-04-11 17:54:09.675 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] process packet header -1 bytes
2013-04-11 17:54:09.675 [INFO] [127.0.0.1:47260-4#haujournal.org:lsapi] connection to [/tmp/lshttpd/haujournal.org_lsphp.sock] on request #0, confirmed, 0, associated process: -1, running: 0, error: Connection reset by peer!
2013-04-11 17:54:09.675 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] [ExtConn] close()
2013-04-11 17:54:09.675 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] [ExtConn] reconnect()
2013-04-11 17:54:09.676 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] [ExtConn] connecting to [uds://tmp/lshttpd/haujournal.org_lsphp.sock]...
2013-04-11 17:54:09.676 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] ExtConn::eek:nWrite()
2013-04-11 17:54:09.676 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] request header is done
2013-04-11 17:54:09.676 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] ExtConn::continueRead()
2013-04-11 17:54:09.676 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] Request body done!
2013-04-11 17:54:09.676 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] ExtConn::suspendWrite()
2013-04-11 17:54:09.676 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] ExtConn::eek:nHangup(), state: 2, treat as onRead()
2013-04-11 17:54:09.676 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] ExtConn::eek:nRead(), state: 2
2013-04-11 17:54:09.676 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] LsapiConn::doRead()
2013-04-11 17:54:09.676 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] process packet header 0 bytes
2013-04-11 17:54:09.676 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] ExtConn::eek:nHangup(), state: 2, treat as onRead()
2013-04-11 17:54:09.676 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] ExtConn::eek:nRead(), state: 2
2013-04-11 17:54:09.676 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] LsapiConn::doRead()
2013-04-11 17:54:09.676 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] process packet header 0 bytes
2013-04-11 17:54:09.676 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] ExtConn::eek:nError()
2013-04-11 17:54:09.676 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] ExtConn::eek:nRead(), state: 2
2013-04-11 17:54:09.676 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] LsapiConn::doRead()
2013-04-11 17:54:09.676 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] process packet header 0 bytes
2013-04-11 17:54:09.678 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] ExtConn::eek:nRead(), state: 2
2013-04-11 17:54:09.678 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] LsapiConn::doRead()
2013-04-11 17:54:09.678 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] process packet header -1 bytes
2013-04-11 17:54:09.678 [INFO] [127.0.0.1:47260-4#haujournal.org:lsapi] connection to [/tmp/lshttpd/haujournal.org_lsphp.sock] on request #0, confirmed, 0, associated process: -1, running: 0, error: Connection reset by peer!
2013-04-11 17:54:09.678 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] [ExtConn] close()
2013-04-11 17:54:09.678 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] [ExtConn] reconnect()
2013-04-11 17:54:09.678 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] [ExtConn] connecting to [uds://tmp/lshttpd/haujournal.org_lsphp.sock]...
2013-04-11 17:54:09.678 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] ExtConn::eek:nWrite()
2013-04-11 17:54:09.678 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] request header is done
2013-04-11 17:54:09.678 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] ExtConn::continueRead()
2013-04-11 17:54:09.678 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] Request body done!
2013-04-11 17:54:09.678 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] ExtConn::suspendWrite()
2013-04-11 17:54:09.678 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] ExtConn::eek:nHangup(), state: 2, treat as onRead()
2013-04-11 17:54:09.678 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] ExtConn::eek:nRead(), state: 2
2013-04-11 17:54:09.678 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] LsapiConn::doRead()
2013-04-11 17:54:09.678 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] process packet header 0 bytes
2013-04-11 17:54:09.678 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] ExtConn::eek:nHangup(), state: 2, treat as onRead()
2013-04-11 17:54:09.678 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] ExtConn::eek:nRead(), state: 2
2013-04-11 17:54:09.678 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] LsapiConn::doRead()
2013-04-11 17:54:09.678 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] process packet header 0 bytes
2013-04-11 17:54:09.678 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] ExtConn::eek:nError()
2013-04-11 17:54:09.678 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] ExtConn::eek:nRead(), state: 2
2013-04-11 17:54:09.678 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] LsapiConn::doRead()
2013-04-11 17:54:09.678 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] process packet header 0 bytes
2013-04-11 17:54:09.679 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] ExtConn::eek:nRead(), state: 2
2013-04-11 17:54:09.679 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] LsapiConn::doRead()
2013-04-11 17:54:09.679 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] process packet header -1 bytes
2013-04-11 17:54:09.679 [INFO] [127.0.0.1:47260-4#haujournal.org:lsapi] connection to [/tmp/lshttpd/haujournal.org_lsphp.sock] on request #0, confirmed, 0, associated process: -1, running: 0, error: Connection reset by peer!
2013-04-11 17:54:09.679 [DEBUG] [127.0.0.1:47260-4#haujournal.org:lsapi] [ExtConn] close()
2013-04-11 17:54:09.680 [NOTICE] [127.0.0.1:47260-4#haujournal.org:lsapi] Max retries has been reached, 503!
 
#11
Something change when I go to Virtual Host Templates -> General
under Script Handler Definition
php LiteSpeed API
and I put not - VHost level
but
Server Level lsphp5 .
Now the info page is ok.

Can be a permissions problem?
 
Last edited:

webizen

Well-Known Member
#12
Something change when I go to Virtual Host Templates -> General
under Script Handler Definition
php LiteSpeed API
and I put not - VHost level
but
Server Level lsphp5 .
Now the info page is ok.

Can be a permissions problem?
There is no Script Handler under Virtual Host Templates => General. Please paste a screenshot for better illustration.
 

webizen

Well-Known Member
#14
check Virtual Host Templates => PHP_SuEXEC => External App => LiteSpeed API App Definition: Command. It should be set to "$SERVER_ROOT/fcgi-bin/lsphp5".
 
#18
With a Debian 6.0?
Same with another (new) VHOST.




2013-04-12 23:52:18.402 INFO Start listen socket [/tmp/lshttpd/test_lsphp.sock].
2013-04-12 23:52:18.402 INFO [test_lsphp] pid list size: 1
2013-04-12 23:52:18.402 INFO [test_lsphp] PID: 3549, add child process pid: 3632, procinfo: 0xa2ce8b8
2013-04-12 23:52:18.402 DEBUG [127.0.0.1:42247-0#test:lsapi] [ExtConn] connecting to [uds://tmp/lshttpd/test_lsphp.sock]...
2013-04-12 23:52:18.403 DEBUG [127.0.0.1:42247-0#test:lsapi] ExtConn::eek:nWrite()
2013-04-12 23:52:18.403 DEBUG [127.0.0.1:42247-0#test:lsapi] request header is done
2013-04-12 23:52:18.403 DEBUG [127.0.0.1:42247-0#test:lsapi] ExtConn::continueRead()
2013-04-12 23:52:18.403 DEBUG [127.0.0.1:42247-0#test:lsapi] Request body done!
2013-04-12 23:52:18.403 DEBUG [127.0.0.1:42247-0#test:lsapi] ExtConn::suspendWrite()
2013-04-12 23:52:18.403 DEBUG [127.0.0.1:42247-0#test:lsapi] ExtConn::eek:nHangup(), state: 2, treat as onRead()
2013-04-12 23:52:18.403 DEBUG [127.0.0.1:42247-0#test:lsapi] ExtConn::eek:nRead(), state: 2
2013-04-12 23:52:18.403 DEBUG [127.0.0.1:42247-0#test:lsapi] LsapiConn::doRead()
2013-04-12 23:52:18.403 DEBUG [127.0.0.1:42247-0#test:lsapi] process packet header 0 bytes
2013-04-12 23:52:18.403 DEBUG [127.0.0.1:42247-0#test:lsapi] ExtConn::eek:nHangup(), state: 2, treat as onRead()
2013-04-12 23:52:18.403 DEBUG [127.0.0.1:42247-0#test:lsapi] ExtConn::eek:nRead(), state: 2
2013-04-12 23:52:18.403 DEBUG [127.0.0.1:42247-0#test:lsapi] LsapiConn::doRead()
2013-04-12 23:52:18.403 DEBUG [127.0.0.1:42247-0#test:lsapi] process packet header 0 bytes
2013-04-12 23:52:18.403 DEBUG [127.0.0.1:42247-0#test:lsapi] ExtConn::eek:nError()
2013-04-12 23:52:18.403 DEBUG [127.0.0.1:42247-0#test:lsapi] ExtConn::eek:nRead(), state: 2
2013-04-12 23:52:18.403 DEBUG [127.0.0.1:42247-0#test:lsapi] LsapiConn::doRead()
2013-04-12 23:52:18.403 DEBUG [127.0.0.1:42247-0#test:lsapi] process packet header 0 bytes
2013-04-12 23:52:18.405 INFO Remove pid: 3632, exitcode: 123
2013-04-12 23:52:18.405 INFO Pid: 3632 associated with [test_lsphp]
2013-04-12 23:52:18.405 INFO ProcInfo Pid: 3632, socket: /tmp/lshttpd/test_lsphp.sock
2013-04-12 23:52:18.405 INFO [test_lsphp] pid list size: 0, pid stop list size: 0
2013-04-12 23:52:18.405 DEBUG EdStream::handleEvent(), fd: 13, event: 25
2013-04-12 23:52:18.405 DEBUG [127.0.0.1:42247-0#test:lsapi] ExtConn::eek:nRead(), state: 2
2013-04-12 23:52:18.405 DEBUG [127.0.0.1:42247-0#test:lsapi] LsapiConn::doRead()
2013-04-12 23:52:18.405 DEBUG [127.0.0.1:42247-0#test:lsapi] process packet header -1 bytes
2013-04-12 23:52:18.405 INFO [127.0.0.1:42247-0#test:lsapi] connection to [/tmp/lshttpd/test_lsphp.sock] on request #0, confirmed, 0, associated process: -1, running: 0, error: Connection reset by peer!
2013-04-12 23:52:18.405 DEBUG [127.0.0.1:42247-0#test:lsapi] [ExtConn] close()
2013-04-12 23:52:18.405 DEBUG [uds://tmp/lshttpd/test_lsphp.sock] No Request has been processed successfully through this connection, the maximum connections allowed will be reduced!
2013-04-12 23:52:18.405 DEBUG [127.0.0.1:42247-0#test:lsapi] HttpExtConnector::tryRecover()...
2013-04-12 23:52:18.405 NOTICE [127.0.0.1:42247-0#test:lsapi] Max retries has been reached, 503!
 
Top