LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   Apache Migration/Compatibility (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=24)
-   -   Suexec on cPanel (http://www.litespeedtech.com/support/forum/showthread.php?t=532)

slimak 08-15-2006 07:02 AM

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

mistwang 08-15-2006 08:35 AM

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.

slimak 08-15-2006 08:44 AM

Answer
 
I'm using option "Using Apache Configuration File" - LSWS is reading httpd.conf directly.

mistwang 08-15-2006 09:20 AM

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. :)

slimak 08-15-2006 09:33 AM

Answer
 
1. Plain CGI is also executed as nobody.
2. Ok, I will wait for new version.

pizzaman 08-23-2006 01:07 AM

Quote:

Originally Posted by mistwang (Post 2554)
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!

xing 08-24-2006 11:15 PM

LiteSpeed Web Server 2.2 has been released with the suEXEC feature and more. :)

pizzaman 08-25-2006 12:34 AM

Quote:

Originally Posted by xing (Post 2603)
LiteSpeed Web Server 2.2 has been released with the suEXEC feature and more. :)

Awesome! Very well done, guys. THANK YOU!

slimak 08-26-2006 06:58 AM

PHP5 suExec
 
Now it works very good. PHP and CGI files are executing as they should (as user), but I have problem with PHP5. I installed second php (PHP 5.1.6) as lsapi. Files .php, .php3, .php4, .phtml are executing by php4; files .php5 are executing by php5. PHP4 scripts are running as user, but PHP5 as nobody. Could you check that? I have the same configuration in lsws for php4lsapi and php5lsapi.

mistwang 08-27-2006 02:02 PM

I knew the PHP4+PHP5 setup will cause problem. :-)
We will address that in 2.2.1 .


All times are GMT -7. The time now is 03:39 AM.