suPHP wurde nach dieser Anleitung installiert: http://www.lazyfrosch.de/linux/suphp-confixx-suse
Hier einige Details:
Code: Select all
/opt/php5.2.5-fastcgi/bin/php # php
php php5 php-cgi php-cgi5
/opt/php5.2.5-fastcgi/bin/php # php-cgi -v
PHP 5.2.5 with Suhosin-Patch 0.9.6.2 (cgi-fcgi) (built: Dec 12 2007 03:38:49)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
/opt/php5.2.5-fastcgi/bin/php # php -v
PHP 5.2.5 with Suhosin-Patch 0.9.6.2 (cli) (built: Dec 12 2007 03:47:43)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend TechnologiesCode: Select all
[global]
;Path to logfile
logfile=/var/log/suphp.log
;Loglevel
loglevel=info
;User Apache is running as
webserver_user=wwwrun
;Path all scripts have to be in
docroot=/srv
;Path to chroot() to before executing script
;chroot=/mychroot
; Security options
allow_file_group_writeable=true
allow_file_others_writeable=true
allow_directory_group_writeable=true
allow_directory_others_writeable=true
;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=true
;Send minor error messages to browser
errors_to_browser=true
;PATH environment variable
env_path=/bin:/usr/bin
;Umask to set, specify in octal notation
umask=0022
; Minimum UID
min_uid=100
; Minimum GID
min_gid=100
[handlers]
;Handler for php-scripts
x-httpd-php=php:/opt/php5.2.5-fastcgi/bin/php-cgi
;Handler for CGI-scripts
x-suphp-cgi=execute:!self
Code: Select all
==> suphp.log <==
[Fri Mar 07 20:21:15 2008] [info] Executing "/srv/www/htdocs/confixx/html/reg/index.php" as UID 641, GID 500
[Fri Mar 07 20:21:15 2008] [info] Executing "/srv/www/htdocs/confixx/html/reg/index.php" as UID 641, GID 500
[Fri Mar 07 20:21:15 2008] [info] Executing "/srv/www/htdocs/confixx/html/reg/index.php" as UID 641, GID 500
[Fri Mar 07 20:21:15 2008] [info] Executing "/srv/www/htdocs/confixx/html/reg/index.php" as UID 641, GID 500
[Fri Mar 07 20:21:16 2008] [info] Executing "/srv/www/htdocs/confixx/html/reg/index.php" as UID 641, GID 500
[Fri Mar 07 20:21:16 2008] [info] Executing "/srv/www/htdocs/confixx/html/reg/index.php" as UID 641, GID 500
