[Resolved] execve() failed with errno=2, when try to start Fast CGI application: /fcgi-bin/lsphp5!

Status
Not open for further replies.
#1
hi every one
i have a debian wheezy server and i want that to install litespeed trial on it,
i download the last version from web site :
http://www.litespeedtech.com/packages/4.0/lsws-4.2.19-ent-x86_64-linux.tar.gz

and i'm get a new trial key, and uploaded it to server , and install the litespeed

but it does not work fine, because when i try to go to
Code:
http://server_ip_address/phpinfo.php
i get this error :

503
Service Unavailable
The server is temporarily busy, try again later!


and when i try to check :
Code:
http://server_ip_address/cgi-bin/helloworld
i get this error :
Code:
lscgid: execve():/DEFAULT/cgi-bin/helloworld: No such file or directory

my log on : tailf /usr/local/lsws/logs/error.log , when i try to load :
Code:
http://server_ip_address/phpinfo.php
is :
Code:
2014-12-09 10:00:41.808 [ERROR] [/bin/httpd] setuid bit is off.
2014-12-09 10:00:41.809 [INFO] [lsphp5] PID: 4567, add child process pid: 4678, procinfo: 0x1311ed0
2014-12-09 10:00:41.809 [ERROR] execve() failed with errno=2, when try to start Fast CGI application: /fcgi-bin/lsphp5!
2014-12-09 10:00:41.810 [INFO] Remove pid: 4678, exitcode: 255
2014-12-09 10:00:41.810 [INFO] [server_ip_address:53505-0#Example] connection to [/tmp/lshttpd/lsphp5.sock] on request #0, confirmed, 0, associated process: -1, running: 0, error: Connection reset by peer!
2014-12-09 10:00:41.810 [ERROR] [/bin/httpd] setuid bit is off.
2014-12-09 10:00:41.811 [INFO] [lsphp5] PID: 4567, add child process pid: 4679, procinfo: 0x1311ed0
2014-12-09 10:00:41.811 [ERROR] execve() failed with errno=2, when try to start Fast CGI application: /fcgi-bin/lsphp5!
2014-12-09 10:00:41.812 [INFO] Remove pid: 4679, exitcode: 255
2014-12-09 10:00:41.812 [INFO] [server_ip_address:53505-0#Example] connection to [/tmp/lshttpd/lsphp5.sock] on request #0, confirmed, 0, associated process: -1, running: 0, error: Connection reset by peer!
2014-12-09 10:00:41.812 [ERROR] [/bin/httpd] setuid bit is off.
2014-12-09 10:00:41.812 [INFO] [lsphp5] PID: 4567, add child process pid: 4680, procinfo: 0x1311ed0
2014-12-09 10:00:41.813 [ERROR] execve() failed with errno=2, when try to start Fast CGI application: /fcgi-bin/lsphp5!
2014-12-09 10:00:41.813 [INFO] Remove pid: 4680, exitcode: 255
2014-12-09 10:00:41.814 [INFO] [server_ip_address:53505-0#Example] connection to [/tmp/lshttpd/lsphp5.sock] on request #0, confirmed, 0, associated process: -1, running: 0, error: Connection reset by peer!
2014-12-09 10:00:41.814 [NOTICE] [server_ip_address:53505-0#Example] Max retries has been reached, 503!
2014-12-09 10:00:41.814 [NOTICE] [server_ip_address:53505-0#Example] oops! 503 Service Unavailable
2014-12-09 10:00:41.814 [NOTICE] [server_ip_address:53505-0#Example] Content len: 0, Request line: 'GET /phpinfo.php HTTP/1.1'
2014-12-09 10:00:41.814 [INFO] [server_ip_address:53505-0#Example] abort request..., code: 4
please help me
 
Last edited by a moderator:

NiteWave

Administrator
#2
looks weird ...
have you stopped apache ?
do you read apache's httpd.conf ?
have you built lsphp5 ?
(#ls -l /usr/local/lsws/fcgi-bin/)
...
please provide more info about your setup.
 
#3
looks weird ...
have you stopped apache ?
do you read apache's httpd.conf ?
have you built lsphp5 ?
(#ls -l /usr/local/lsws/fcgi-bin/)
...
please provide more info about your setup.

hi dude, i don't have apache at all

and i have these :

Code:
root@LSWS:/usr/local/lsws/fcgi-bin# ls -la /usr/local/lsws/fcgi-bin/
total 2256
drwxr-sr-x  2 root   root       4096 Dec  9 09:44 .
drwxr-sr-x 18 root   root       4096 Dec  9 09:44 ..
-r-xr-xr-x  1 root   root       3342 Dec  9 09:44 lsperld.fpl
-rwxrwxrwx  1 nobody nogroup 2280672 Dec  9 09:44 lsphp
lrwxrwxrwx  1 nobody nogroup       7 Dec  9 09:44 lsphp4 -> ./lsphp
lrwxrwxrwx  1 nobody nogroup       7 Dec  9 09:44 lsphp5 -> ./lsphp
-r-xr-xr-x  1 root   root       3773 Dec  9 10:30 RackRunner.rb
-r-xr-xr-x  1 root   root       4714 Dec  9 10:30 RailsRunner.rb
-r-xr-xr-x  1 root   root       1095 Dec  9 10:30 RailsRunner.rb.2.3
 

NiteWave

Administrator
#4
does lsws web admin( :7080) and command line lsphp5 ok ?
Code:
/usr/local/lsws/fcgi-bin/lsphp5 -i |head
have you changed any default settings via web admin ?
 
Last edited by a moderator:
#5
does lsws web admin( :7080) and command line lsphp5 ok ?
/usr/local/lsws/fcgi-bin/lsphp5 -i |head

have you changed any default settings via web admin ?

i do not change any default setting, please help me
this is the out put :

Code:
root@LSWS:/usr/local/lsws/fcgi-bin# /usr/local/lsws/fcgi-bin/lsphp5 -i |head
phpinfo()
PHP Version => 4.4.9

System => Linux LSWS 3.2.0-4-amd64 #1 SMP Debian 3.2.63-2+deb7u2 x86_64
Build Date => Apr 12 2011 12:39:45
Configure Command =>  './configure' '--with-litespeed' '--with-config-file-path=../php' '--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' '--enable-bcmath'
Server API => LiteSpeed V5.5
Virtual Directory Support => disabled
Configuration File (php.ini) Path => ../php
PHP API => 20020918
root@LSWS:/usr/local/lsws/fcgi-bin#
this is admin page error :


500
Internal Server Error
An internal server error has occured.
 
#7
any message in /usr/local/lsws/logs/stderr.log ?

this is the out put : tailf /usr/local/lsws/logs/stderr.log

Code:
root@LSWS:/usr/local/lsws/fcgi-bin# tailf /usr/local/lsws/logs/stderr.log
2014-12-09 10:22:11.837 [STDERR] lscgid: chdir():/admin/fcgi-bin/: No such file or directory
2014-12-09 10:31:05.754 [STDERR] lscgid: chdir():/admin/fcgi-bin/: No such file or directory
2014-12-09 10:31:05.756 [STDERR] lscgid: chdir():/admin/fcgi-bin/: No such file or directory
2014-12-09 10:31:05.757 [STDERR] lscgid: chdir():/admin/fcgi-bin/: No such file or directory
2014-12-09 10:31:05.758 [STDERR] lscgid: chdir():/admin/fcgi-bin/: No such file or directory
2014-12-09 10:31:28.060 [STDERR] lscgid: execve():/DEFAULT/cgi-bin/helloworld: No such file or directory
2014-12-09 14:41:41.874 [STDERR] lscgid: chdir():/admin/fcgi-bin/: No such file or directory
2014-12-09 14:41:41.875 [STDERR] lscgid: chdir():/admin/fcgi-bin/: No such file or directory
2014-12-09 14:41:41.876 [STDERR] lscgid: chdir():/admin/fcgi-bin/: No such file or directory
2014-12-09 14:41:41.877 [STDERR] lscgid: chdir():/admin/fcgi-bin/: No such file or directory
 

NiteWave

Administrator
#8
it looks you enabled chroot when install lsws ?
to confirm, take a check:
Code:
#grep chrootPath /usr/local/lsws/conf/httpd_config.xml
 
Last edited by a moderator:

NiteWave

Administrator
#10
please give the output of the above command on your server:
Code:
#grep chrootPath /usr/local/lsws/conf/httpd_config.xml
 
Last edited by a moderator:
#11
here is the out put :

Code:
root@LSWS:/usr/local/lsws/fcgi-bin# grep chrootPath /usr/local/lsws/conf/httpd_config.xml
    <chrootPath>/usr/local/lsws</chrootPath>
root@LSWS:/usr/local/lsws/fcgi-bin#
 

NiteWave

Administrator
#12
please edit /usr/local/lsws/conf/httpd_config.xml
change
Code:
<enableChroot>1</enableChroot>
to
Code:
<enableChroot>0</enableChroot>
then restart lsws
Code:
/usr/local/lsws/bin/lswsctrl restart
your issue should be resolved.
 
Last edited by a moderator:
Status
Not open for further replies.
Top