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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Install/Configuration > PHP SuEXEC

Reply
 
Thread Tools Display Modes
  #1  
Old 04-03-2008, 02:38 PM
zoom zoom is offline
Senior Member
 
Join Date: Nov 2005
Posts: 92
Default PHP SuEXEC

I seem to be having a strange problem with running PHP in SuEXEC mode. I have created a new virtual host which is using the "ExtApp Set UID Mode" of "DocRoot UID". I created a new user and group (zoom:zoom) for the virtual host and then added the lsws user to it's group. I also did a chmod 770 on the entire virtual host's directory.. I wrote a tiny script to exec whoami to see if I was running as the virtualhost user I defined. The problem is the script echoes that I'm lsws user and the virtualhost user. Did I forgot to activate something????

I looked at the shared hosting security item on the wiki and it's exactly what I'm doing. However, it's still showing me as the lsws user and not my virtualhost user????

Enable Scripts/ExtApps Yes
Restrained Yes
ExtApp Set UID Mode DocRoot UID
ExtApp Chroot Mode Same As Server
Reply With Quote
  #2  
Old 04-03-2008, 07:19 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,583
You need to define a vhost level php external app and script handler.
Reply With Quote
  #3  
Old 04-04-2008, 06:10 AM
zoom zoom is offline
Senior Member
 
Join Date: Nov 2005
Posts: 92
That was it.. Thanks mistwang
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:02 AM.



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