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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > suPHP Problem

Reply
 
Thread Tools Display Modes
  #1  
Old 07-25-2009, 07:43 AM
DanEZPZ DanEZPZ is offline
Senior Member
 
Join Date: Jul 2009
Posts: 55
Default suPHP Problem

Hi,

I've just switched one of our servers from Apache to Litespeed and have encountered a problem with suPHP.

Previously if a client were to chmod a file or directory to 777, Apache would deny access and return a 500 error. Apache was also denied access if the file or directory was chowned to another user.

Litespeed seems to have access to anything, either chmod 777 or chowned to another user.

Is there any way of fixing this problem?

Thanks,

Dan
Reply With Quote
  #2  
Old 07-25-2009, 11:32 AM
MikeDVB MikeDVB is offline
Senior Member
 
Join Date: Jul 2009
Posts: 218
I as well am curious about this - mostly the permissions part. Is there a way to enable checking of permissions on files/folders and then not display/execute them if they are set higher than 755 as there was with suPHP with Apache?

If there is... I'm not seeing it.
Reply With Quote
  #3  
Old 07-25-2009, 11:43 AM
MikeDVB MikeDVB is offline
Senior Member
 
Join Date: Jul 2009
Posts: 218
I've found this:

But I'm not sure where to find information on how to set the settings and from what I understand it does not apply to PHP but just static files?
Reply With Quote
  #4  
Old 07-25-2009, 11:52 AM
MikeDVB MikeDVB is offline
Senior Member
 
Join Date: Jul 2009
Posts: 218
I know that the requirement of no higher than 755 was a setting in suphp.conf when running Apache with suPHP - and wasn't something imposed by Apache itself.

I know you could turn off those settings, and I would think with php_open_basedir on you would be safe but I've personally never allowed 777 so I hadn't looked into it much.
Reply With Quote
  #5  
Old 07-25-2009, 01:46 PM
MikeDVB MikeDVB is offline
Senior Member
 
Join Date: Jul 2009
Posts: 218
I'd really just like an explanation of the settings in my previously posted image
Reply With Quote
  #6  
Old 07-25-2009, 03:40 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Right now, LSWS just follow linux file system permission, not act like suphp which block script with permission mask 777. LSWS uses open_basedir instead. However, it is nice to have feature, so we will add it to our to-do list.

Yes, those permission settings posted in the image is for static files, found it cause more trouble than what it helps, so we turn it off by default. It probably is a good idea to have similar check for scripts running in suEXEC mode.
Reply With Quote
  #7  
Old 07-25-2009, 05:29 PM
MikeDVB MikeDVB is offline
Senior Member
 
Join Date: Jul 2009
Posts: 218
The thing is that even on a server running suPHP if you run a find for files with 777 permissions you will find a lot (images, .html pages, etc...) it would just be nice to not allow executable files to be modified by the public/group just in case

Anyways, it is nice to know that you do take what your users would like to see into mind.
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 04:53 PM.



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