2010-05-11 15:01:36 +02:00
|
|
|
suPHP is a tool for executing PHP scripts with the permissions of their
|
|
|
|
owners. It consists of an Apache module (mod_suphp) and a setuid root
|
|
|
|
binary (suphp) that is called by the Apache module to change the uid of
|
|
|
|
the process executing the PHP interpreter.
|
|
|
|
|
2010-05-11 19:46:03 +02:00
|
|
|
This version was compiled to look for its config-file in /etc/httpd
|
2010-05-11 15:01:36 +02:00
|
|
|
rather then just /etc as 'httpd' looks there aswell.
|
|
|
|
|
2010-05-11 19:46:03 +02:00
|
|
|
Some of the 'standard' /etc/httpd/httpd.conf directives include:
|
2010-05-11 15:01:36 +02:00
|
|
|
|
2010-05-11 19:46:03 +02:00
|
|
|
LoadModule suphp_module /usr/lib/httpd/modules/mod_suphp.so
|
2010-05-11 15:01:36 +02:00
|
|
|
suPHP_Engine on
|
|
|
|
AddHandler x-httpd-php .php
|
2010-05-11 19:46:03 +02:00
|
|
|
suPHP_AddHandler x-httpd-php
|
2010-05-11 15:01:36 +02:00
|
|
|
suPHP_UserGroup someuser users
|
|
|
|
|
|
|
|
To use different php versions 'per vhost' see:
|
|
|
|
http://www.howtoforge.com/apache2_suphp_php4_php5
|
|
|
|
|
2010-05-11 22:25:46 +02:00
|
|
|
mod_php can be reduced (greatly) by rebuilding PHP for FastCGI and
|
|
|
|
using mod_fcgid; however, that requires additional configuration.
|
|
|
|
See http://fastcgi.coremail.cn/configuration.htm for details.
|