View Single Post
  #9  
Old 03-11-2011, 07:34 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
let's go ahead step by step.

php suExec must be enabled for PHPRC to take effect.

admin console->Configuration->Server->
Using Apache Configuration File->PHP suEXEC:Yes

since this warning
Quote:
2011-03-06 04:19:17.554 [WARN] /usr/local/apache/conf/userdata/std/2/user1/user1.conf:11: Directive 'suPHP_ConfigPath' is not allowed in current context.
you can comment lines which start with suPHP_ConfigPath in suphp.conf

litespeed's "PHPRC=$VH_ROOT/myphp.ini" should do the same job of
suPHP_ConfigPath /home/ini/user2/

as for "suPHP_ConfigPath /home/ini/user2/shop/" ... ok, finally I got what you want.

above settings: enable PHP suExec+PHPRC settings should meet your per-user php(each user run php with different php.ini) requirement. further, you need per directory php override/settings?

it's still possible for lsphp. lsphp support
php_value name value
php_flag name on|off
in .htaccess for per-directory php settings.

for example,
php_value memory_limit 16M

however, this need some conversion work at your side.

If not wrong, suPHP you mentioned is running in cgi mode. It may be most flexible but worst performance. while lsphp is running in fcgi mode, much better performance yet support directory level php parameter adjustment. We did benchmark before to compare suPHP(in CGI mode) with mod_php, lsphp, please refer http://blog.litespeedtech.com/2010/0...ache-vs-nginx/
Reply With Quote