lsphp permissions

#1
New installation, using litespeed admin UI to compile php 5.3.5. Using PHP_SuEXEC. This worked fine for the first few compiles, but now compiling causes 403 Service unavailable when trying to run php files. I can fix the problem by going to /usr/local/lsws/fcgi-bin and chmod o+rx lsphp-5.3.5.

Is there a reason I just now how to start doing this? I have been using php_suexec from the begging but had to compile php with mycrypt support, that is when it stopped working without chmod'ing lsphp-5.3.5 everytime i re-compile.
 
#3
Ahh, very good thinking. I did change the default umask. Is there a file i can edit that will change the scripts that run to add this chmod in there until you fix it.

By this I mean some sort of template file the build scripts are built off of? If there is one.
 
Last edited:

webizen

Well-Known Member
#4
you may add a line (in bold) in /path/to/lsws/admin/html/utility/build_php/build_install.template as follows:

echo "ln -sf lsphp-{PHP_VERSION} lsphp$PHP_MAIN_VERSION"
ln -sf lsphp-{PHP_VERSION} "lsphp$PHP_MAIN_VERSION"
chmod +rx lsphp$PHP_MAIN_VERSION
check_errs $? "fail to creat symbolic link"
 
Top