LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > lsphp permissions

Reply
 
Thread Tools Display Modes
  #1  
Old 07-26-2011, 08:40 AM
dirtymafia dirtymafia is offline
New Member
 
Join Date: Jul 2011
Posts: 2
Default lsphp permissions

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.
Reply With Quote
  #2  
Old 07-26-2011, 08:45 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
I think it is your "umask" setting for root user changed from 0022 to 0027
We will update our script to set the permission right.
Reply With Quote
  #3  
Old 07-26-2011, 08:56 AM
dirtymafia dirtymafia is offline
New Member
 
Join Date: Jul 2011
Posts: 2
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 by dirtymafia; 07-26-2011 at 09:10 AM..
Reply With Quote
  #4  
Old 07-26-2011, 02:23 PM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,390
you may add a line (in bold) in /path/to/lsws/admin/html/utility/build_php/build_install.template as follows:

Quote:
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"
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 07:51 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.