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

Go Back   LiteSpeed Support Forums > External Applications > PHP > suexec and existing cPanel server

Reply
 
Thread Tools Display Modes
  #1  
Old 07-02-2007, 09:06 AM
pitabread55 pitabread55 is offline
Member
 
Join Date: Jul 2007
Posts: 12
Default suexec and existing cPanel server

Hello All,

We're looking at using LSWS on some existing cPanel web servers. We're running into a problem with suexec however (we kind of expected that). With mod_apache file uploads (gallery, joomla, mambo) are owned by "nobody". When we try to swtich to LSWS we get permission denied on files (such as gallery counter files) because of the ownership. I'm also afraid that we have some directories with 777 permissions that suexec won't like.

I'm just wondering how other people with with cPanel or existing servers handled this? I know we could chown/chmod all of the files/directories but it's not easy to run in parallel because of this an backing it out would be a pain also.

TIA,

Sam
Reply With Quote
  #2  
Old 07-02-2007, 10:07 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Were you using php suexec when Apache is used?
Are you using PHP suEXEC with LiteSpeed? You can configure LiteSpeed to exactly match what you used with Apache. if mod_php was used, then turn off php suexec, if phpsuexec was used, then turn it on in LiteSpeed.

With phpsuexec, you need to change the file/directory ownership to "<user>:nobody" with permission mask 0750 or 0640.

without phpsuexec, you just change the permission mask to 0770 or 0660 with the ownership stay with "<user>:nobody". You should be able to switch between this two security models easily with command
"chmod -R g+w *" and "chmod -R g-w *"

That's just standard Unix file permission issue.
Reply With Quote
  #3  
Old 07-02-2007, 05:13 PM
pitabread55 pitabread55 is offline
Member
 
Join Date: Jul 2007
Posts: 12
We understand very well it's "just a *nix ownership/permissions issue", but when you have 1000's of domains it's a big issue.

I did not realize non-suexec is an option (we currently run mod_php). How do you configure LiteSpeed without suexec?

Sam
Reply With Quote
  #4  
Old 07-02-2007, 05:33 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Just set "PHP suEXEC" to "No" when you configure LiteSpeed to use Apache httpd.conf .
Reply With Quote
  #5  
Old 07-02-2007, 06:00 PM
pitabread55 pitabread55 is offline
Member
 
Join Date: Jul 2007
Posts: 12
Dooh!

Sorry for missing the obvious.

Sam
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 08:26 PM.



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