lscgid: execve():/home/account/public_html/index.php: Permission denied

DoM

Well-Known Member
#1
Hi,
if i tried to use CGI handler( in order to consume less memory) instead of LSAPI for PHP extension i receive this error:

lscgid: execve():/home/account/public_html/index.php: Permission denied

On error_log i cannot find any other message related to this error.

If i exec from PHP CLI page is executed correctly.


Waiting for your reply

Regards
 

webizen

Well-Known Member
#2
Did you run PHP CLI as root or as the user running lsws (usually nobody)? You may set error log level to DEBUG and see if you get anything further.
 

DoM

Well-Known Member
#3
Hi,
as user nobody:

sudo -u nobody php index.php

and it works without issue

I enabled debug level but i cannot see anything. Just if i try to reach any php script i obtain that error.


Waiting for your reply

Regards
 

mistwang

LiteSpeed Staff
#4
Never run PHP as CGI with LiteSpeed. It wont work. If you want to avoid persistent PHP processes, change configuration of lsphp5 external app, exit after process one request. but I do not think anyone should do that, it only hurts performance.
 

DoM

Well-Known Member
#5
Why it wont work ? Should litespeed support CGI as i read on your documentation.

Anyway i want use PHP as CGI as cause on Apache load will decrease drastically.
 
Top