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

Go Back   LiteSpeed Support Forums > External Applications > Apache Migration/Compatibility > Suexec on cPanel

Reply
 
Thread Tools Display Modes
  #1  
Old 08-15-2006, 07:02 AM
slimak slimak is offline
Senior Member
 
Join Date: Aug 2006
Posts: 67
Cool Suexec on cPanel

Hello,
I have a bit problem with cPanel suexec. cPanel stores suexec settings in virtualhost in httpd.conf as:
Code:
<virtualhost ...>
...
User x
Group x
...
</virutalhost>
When lsws automatically import the config from httpd.conf, the suexec isn't working. All CGI scripts are execute as nobody. Is there possible to change that?


Regards,
Maciej Tomaszewski
Reply With Quote
  #2  
Old 08-15-2006, 08:35 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
You can fix it by changing "CGI Set UID Mode" to "document root" for the imported vhost.
Or do not import httpd.conf during installation, let LSWS read httpd.conf directly with "Using Apache Configuration File" feature under "server"->"general" tab.
Reply With Quote
  #3  
Old 08-15-2006, 08:44 AM
slimak slimak is offline
Senior Member
 
Join Date: Aug 2006
Posts: 67
Smile Answer

I'm using option "Using Apache Configuration File" - LSWS is reading httpd.conf directly.
Reply With Quote
  #4  
Old 08-15-2006, 09:20 AM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,590
I see. For PHP will be executed under user "nobody" as PHP is handled by the global phpLsapi running as "nobody".
For other plain CGI, should be executed as the UID specified.
The PHP suExec will be addressed soon in new LSWS release, please stay tuned.
Reply With Quote
  #5  
Old 08-15-2006, 09:33 AM
slimak slimak is offline
Senior Member
 
Join Date: Aug 2006
Posts: 67
Default Answer

1. Plain CGI is also executed as nobody.
2. Ok, I will wait for new version.
Reply With Quote
  #6  
Old 08-23-2006, 01:07 AM
pizzaman pizzaman is offline
Member
 
Join Date: Mar 2006
Posts: 28
Quote:
Originally Posted by mistwang View Post
I see. For PHP will be executed under user "nobody" as PHP is handled by the global phpLsapi running as "nobody".
For other plain CGI, should be executed as the UID specified.
The PHP suExec will be addressed soon in new LSWS release, please stay tuned.
This is probably the last bit of features that I may need before
deploying lsws in cpanel servers. Will be waiting too...

1. install lsws
2. build php with litespeed
3. config lsws to read httpd.conf directly
4. remove httpd from default runlevel & disable httpd from chkservd
5. enjoy lower load & memory consumtion on your cPanel box!
Reply With Quote
  #7  
Old 08-24-2006, 11:15 PM
xing xing is offline
LiteSpeed Staff
 
Join Date: Oct 2003
Location: Los Angeles, California
Posts: 380
LiteSpeed Web Server 2.2 has been released with the suEXEC feature and more.
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
Manual Php Compile with cPanel LastQuark Apache Migration/Compatibility 7 05-29-2007 08:20 AM
Lightspeed, CPanel, RoR setup entropie Ruby/Rails 8 05-23-2007 07:36 AM
cpanel vhosts status "Restart Required"? typist Install/Configuration 1 02-28-2007 09:00 AM
Installing with Cpanel Suxen Install/Configuration 31 11-27-2006 08:53 AM


All times are GMT -7. The time now is 08:00 PM.



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