suphp will nicht (Fehler 500)

Christian Knorr ubuntu-mailingliste at online.de
Sam Jul 25 14:20:40 BST 2009


Hallo zusammen,
ich versuche mich an suphp und bekomme immer den Fehler 500 beim
Betrachten der Webseite.
Da finden sich dann diese Logs:

tail /var/log/apache2/praif_error.log -n2
[error] [client xxxx] SoftException in Application.cpp:508: Directory
"/" is writeable by group
[error] [client xxxx] Premature end of script headers: index.php

tail /var/log/suphp/suphp.log -n1
[warn] Directory "/" is writeable by group

die suphp.conf poste ich ans Ende [1]

Das Script befindet sich in /var/www/secret/praif/index.php

Schalte ich suphp testweise aus (a2dismod suphp) kann ich die Seite
sehen.

Die zugehörige Apache-Konfiguration unter [2]

Sieht jemand einen Fehler?

Danke schonmal, Chris......



[1]cat /etc/suphp/suphp.conf 
[global]
;Path to logfile
logfile=/var/log/suphp/suphp.log

;Loglevel
loglevel=info

;User Apache is running as
webserver_user=www-data

;Path all scripts have to be in
docroot=/var/www/secret

;Path to chroot() to before executing script
;chroot=/mychroot

; Security options
allow_file_group_writeable=false
allow_file_others_writeable=false
allow_directory_group_writeable=false
allow_directory_others_writeable=false

;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=true

;Send minor error messages to browser
errors_to_browser=false

;PATH environment variable
env_path=/bin:/usr/bin

;Umask to set, specify in octal notation
umask=0077

; Minimum UID
min_uid=100

; Minimum GID
min_gid=10


[handlers]
;Handler for php-scripts
;application/x-httpd-php=php:/usr/bin/php-cgi
application/x-httpd-php=php:/usr/bin/php5-cgi

;Handler for CGI-scripts
x-suphp-cgi=execute:!self


[2]cat /etc/apache2/sites-enabled/praif 
NameVirtualHost *:2200
<VirtualHost *:2200>
	ServerAdmin webmaster at localhost

	DocumentRoot /var/www/secret/praif/

	<Directory /var/www/secret/praif/>
#	<Directory />
		Options Indexes FollowSymLinks MultiViews
		AllowOverride None
		Order allow,deny
		allow from all
		<IfModule mod_suphp.c>
			RemoveHandler x-httpd-php
 			php_admin_flag engine Off
 			AddHandler x-httpd-php .php .php3 .php4 .php5
 			suPHP_Engine on
 			suPHP_AddHandler x-httpd-php
 			AddHandler x-httpd-php .php
 			suPHP_ConfigPath "/etc/suphp/suphp.conf"
# 			suPHP_UserGroup chris chris
		</IfModule>
	</Directory>

	ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
	<Directory "/usr/lib/cgi-bin">
		AllowOverride None
		Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
		Order allow,deny
		Allow from all
	</Directory>

	ErrorLog /var/log/apache2/praif_error.log

	# Possible values include: debug, info, notice, warn, error, crit,
	# alert, emerg.
	LogLevel warn

	CustomLog /var/log/apache2/praif_access.log combined
	ServerSignature On

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>