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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Feedback/Feature Requests > ``advanced'' suexec?

Reply
 
Thread Tools Display Modes
  #1  
Old 12-29-2005, 11:55 AM
gahan gahan is offline
New Member
 
Join Date: Dec 2005
Location: ireland
Posts: 4
Default ``advanced'' suexec?

Hi,
I wasn't sure in which forum should I post my question as follows: does LSWS's suexec feature self-guesses script ownership?

I wish it could execute php scripts through fcgi without additional per-vhost configurations, basing on file ownership only. With a little hack I've managed to do that in apache and lighttpd both, but unfortunately for php-cgi only, without that fcgi boost. It's still possible with fcgi however it requires one wrapper for one user running constantly, which isn't real solution for thousands of users.

Does LSWS suexec feature also chroots to userdir?

best regards
Reply With Quote
  #2  
Old 12-29-2005, 12:17 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Thank you for your inquiry.

It is hard to do what you described in fcgi, as the fcgi process is persistent, and it cannot switch to a different user id when a script belong to another user dispatched to this fcgi process. That's why you need to configure a dedicate fcgi PHP handler for each user.

It is possible with our lsapi php implementation, but haven't been implemented.

If you want to setup suexec at per user level, you still have to setup a dedicated fcgi/lsapi PHP application and script handler for each user with LSWS, however, LSWS has vhost template feature which will make configurations for mass hosting less painful. :-)

LSWS can do per user chroot as well, but you have to setup the chroot jail environment for each user manually, it is a pain and no way to automate that.
Reply With Quote
  #3  
Old 12-29-2005, 01:06 PM
gahan gahan is offline
New Member
 
Join Date: Dec 2005
Location: ireland
Posts: 4
how about using php as cgi, not fcgi with LSWS suexec? will suexec set uid/gid basing on stat() or do i still have to configure user/group inside every virtual host?
Reply With Quote
  #4  
Old 12-29-2005, 03:16 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
Please take a look at http://www.litespeedtech.com/docs/Vi...hCGISetUidMode

Using "Doc Root UID" is the best choice for mass hosting environment I think.

This configuration is acctually effective for CGI, FCGI as well as LSAPI application.

Running PHP as CGI is not recommended, and you probably need to use some rewrit rules to make it work properly.
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
suexec and existing cPanel server pitabread55 PHP 4 07-02-2007 06:00 PM
suexec conflicts with web server user fantasydreaming Install/Configuration 1 11-19-2006 07:12 PM
suexec issues with rails? maybe to do with permissions of ls user? inspirix Bug Reports 5 10-31-2006 10:14 PM
Suexec on cPanel slimak Apache Migration/Compatibility 15 09-28-2006 01:21 PM
Feature request: Suexec for rails thijs Ruby/Rails 3 09-06-2006 02:44 PM


All times are GMT -7. The time now is 02:19 PM.



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