SuexecUserGroup and Script Handler

#1
Hi there!

Currently we are using LiteSpeed with the apache httpd.conf.
We use SuexecUserGroup and we have defined various
"external apps" (php5-small, php5-medium, php5-large) with different memory and process limitations.

here some example Script Handlers:

php5-small
php5-medium
php5-large

Then i tried to add this to the httpd.conf

<VirtualHost *:80>
ServerAdmin hostmaster@example.com
DocumentRoot /home/domains/e/example.com
ServerName example.com
ServerAlias www.example.com
SuexecUserGroup wu2000 wg2000
AddType application/x-httpd-php5-small php
ErrorLog /var/log/example.com-error.log
CustomLog /var/log/example.com-access.log combined
</VirtualHost>

The "AddType application/x-httpd-php5-small php" directive worked and
it even sets the right environment-vars for the specified script-handler,
but SuexecUserGroup only works if i define the following script handlers:

php
php3
php4
php5

Is there a way to achieve my goal, because i would like use SuexecUserGroup and assign different process and memory restrictions?

Thank you for your help

Alex
 

mistwang

LiteSpeed Staff
#2
LSWS only apply suEXEC for a few commonly used script handler definitions for PHP.

We will change the code to look for script handler start with "php" instead.
 
Top