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

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > suphp ?

Reply
 
Thread Tools Display Modes
  #11  
Old 05-23-2010, 08:23 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
Quote:
where does it compare LiteSpeed with phpSuExec vs Apache2.2 suPHP?
I managed to test lsphp5 with suExec enabled and disabled under a cPanel server in our lab.

Code:
~>ab -k -n 20000 -c 100 192.168.0.81/test.php
suExec enabled:
Requests per second:    2723.91 [#/sec] (mean)

suExec diabled:(run as nobody)
Requests per second:    2659.31 [#/sec] (mean)
so no difference in benchmark -- above test without opcode cache.

for other questions -- may need other staff's reply.
Reply With Quote
  #12  
Old 05-23-2010, 10:32 PM
UWH-David UWH-David is offline
Member
 
Join Date: May 2010
Posts: 42
It is faster when phpsuexec is enabled? That does not sound right at all.

Quote:
Originally Posted by NiteWave View Post
I managed to test lsphp5 with suExec enabled and disabled under a cPanel server in our lab.

Code:
~>ab -k -n 20000 -c 100 192.168.0.81/test.php
suExec enabled:
Requests per second:    2723.91 [#/sec] (mean)

suExec diabled:(run as nobody)
Requests per second:    2659.31 [#/sec] (mean)
so no difference in benchmark -- above test without opcode cache.

for other questions -- may need other staff's reply.
Reply With Quote
  #13  
Old 05-24-2010, 02:54 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,218
From my simple testing, it is. Technically, running as nobody or as other user should have no much difference. in our blog, already address it:"There is little performance impact for LiteSpeed to run in suEXEC mode; therefore it can achieve security benefit of suPHP without losing performance while CGI-based suPHP is the biggest loser in this test."

Quote:
So you are saying custom php.ini files in an accounts folder now work? I have read in other threads this no longer works and users must convert their custom php.ini files into .htaccess
please refer:http://www.litespeedtech.com/support...ead.php?t=2915

I just tested it on our cPanel test machine --- it's working. I put a phpinfo.php in a user's home directory. it shows "Loaded Configuration File" is "/home/ausername/php/php.ini".

so if you've read posts before this one(04-25-2009), custom php.ini should not work. it's a feature since lsws 4.0.2. also in 4.0.2's change log:http://www.litespeedtech.com/litespe...lease-log.html
Quote:
(For suEXEC only) Added support for PHPIniDir directive at virtual host level to allow customized php.ini.
(For suEXEC only) Added support for PHPRC environment variable to customize php.ini.

Last edited by NiteWave; 05-24-2010 at 03:01 AM..
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 09:01 AM.



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