suPHP - PHP Quellcode wird angezeigt
Posted: 2008-03-07 20:18
Ich habe einen Server von 0 an komplett aufgesetzt und dort Suse 10.3 installiert. Darauf soll nun ein Confixx kommen (aktuelle 3er) - die Installation hat per Shell soweit geklappt. Wenn ich jetzt die Seite aufrufe wird diese anstandslos angezeigt. Das Problem ist nun das Interpretieren von PHP, da lediglich der PHP Quellcode angezeigt wird und nichts geparsed wird. Es gibt dazu in den Logs keine Fehlermeldung. Ich bin relativ ratlos und hoffe auf Tipps und Hinweise das Problem zu lösen.
suPHP wurde nach dieser Anleitung installiert: http://www.lazyfrosch.de/linux/suphp-confixx-suse
Hier einige Details:
cat /etc/suphp/suphp.conf
Wenn ich eine Datei bzw. den Ordner reg aufrufe erscheint folgendes (bei /var/log # tail -f *):
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