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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Feedback/Feature Requests > PHP Set UID Mode

Reply
 
Thread Tools Display Modes
  #1  
Old 12-31-2005, 09:35 PM
gahan gahan is offline
New Member
 
Join Date: Dec 2005
Location: ireland
Posts: 4
Default PHP Set UID Mode

Hi
I wish I could see such feature at http://www.litespeedtech.com/docs/Vi...osts_Help.html after 'CGI Set UID Mode' some day
PHP Set UID Mode: PHP file UID/Doc root UID

Is there any chance that lsws will support that? I know it's impossible with fcgi (well running seperate wrapper for each uid 'solves' issue) but how about lsphp?

All the best in the 2006
Reply With Quote
  #2  
Old 01-02-2006, 06:07 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Thanks!

It is possible to run PHP in suexec CGI mode, there is no dedicated configuration for this but it can be done with some simple rewrite rules to simulate Apache's "Hanlder" directive. I will post the rewrite rule later.

Anyway, running PHP as CGI does not give the best performance.
It is not possible to do that with lsphp yet, it is on our to do list. :-)

Happy new year!
Reply With Quote
  #3  
Old 01-04-2006, 08:10 AM
gahan gahan is offline
New Member
 
Join Date: Dec 2005
Location: ireland
Posts: 4
That would be great.

Thanks for reply
Reply With Quote
  #4  
Old 03-22-2006, 03:22 AM
pizzaman pizzaman is offline
Member
 
Join Date: Mar 2006
Posts: 28
mistwang,

I've read through a couple posts regarding running PHP suExec through fastcgi interface, and what I understand is that it's currently not possible in a straightforward way. However, you suggested that it's possible to do so if we provide dedicated php-fcgi process for each UID. How exactly do we do that?

I've running such a setup with lighttpd with great success bar some sites canot be run there since due to some complications in its rewrite enginge--so I decide to give litespeed a try. So far so good, except I need to run php in suExec way.

Thanks in advance.
Reply With Quote
  #5  
Old 03-22-2006, 08:41 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,603
Quote:
However, you suggested that it's possible to do so if we provide dedicated php-fcgi process for each UID. How exactly do we do that?
Just define a dedicate PHP FCGI or LSAPI application, php script handler, and set "CGI Chroot Mode" to "Doc Root UID".

http://www.litespeedtech.com/docs/Vi...hCGISetUidMode

For multiple similar vhost, you can use our vhost template feature.
Reply With Quote
  #6  
Old 03-23-2006, 06:58 AM
pizzaman pizzaman is offline
Member
 
Join Date: Mar 2006
Posts: 28
Oh wow, at first I set "CGI Set UID Mode" to "CGI File UID" and the script ran as "nobody". After I changed it to "DocRoot UID", then it magically runs as that user.

Thanks for your answer. I'll spend some time testing litespeed and if it turns out ok, will move some production sites to using it (behind apache proxy).
Reply With Quote
  #7  
Old 07-12-2006, 08:07 AM
Arkadius Arkadius is offline
Member
 
Join Date: May 2006
Posts: 18
pizzaman, could you please post how you created the FastCGI app ?

I am able to run the same if i start a php -b under the user I plan to but a start wrapper would be supreme for what I am trying to do.

Thank you.

Regards
Arkadius
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
replacing system php felosi PHP 3 07-16-2007 11:23 PM
Usability issue with LSAPI PHP jrmarino PHP 5 05-08-2007 01:54 PM
setup php in rails template cswilliams Install/Configuration 2 01-25-2007 08:21 AM
Best configuration for PHP LiteSpeed SAPI jeff Install/Configuration 6 10-19-2005 09:54 AM
Custom PHP integration RikitZap Install/Configuration 2 04-25-2005 06:52 PM


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



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