Kann keine PHP Files im cgi-bin Verzeichnis abrufen.
Posted: 2005-02-19 15:43
Hallo.
Wenn ich eine php Datei (installiert ist php5) in das cgi-bin Verzeichnis meines Webs ablege und diese über den Browser aufrufe, bekomme ich die Meldung Seite kann nicht angezeigt werden.
Im Logfile steht folgendes:
[Sat Feb 19 15:34:03 2005] [error] [client 217.230.83.184] Premature end of script headers: test.php
[Sat Feb 19 15:34:03 2005] [error] [client 217.230.83.184] unable to include potential exec "include/top.html" in parsed file /usr/share/apache2/error/HTTP_INTERNAL_SERVER_ERROR.html.var
meine Config about CGI und php:
global:
--------
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php5
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm
ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/"
<Directory "/srv/www/cgi-bin">
AllowOverride All
Options None
Order allow,deny
Allow from all
</Directory>
---------------
vhost:
--------
<Directory "/srv/www/htdocs/web2/html/cgi-bin">
AllowOverride All
Options +ExecCGI +Includes
SetHandler cgi-script
Order allow,deny
Allow from all
</Directory>
--------
woran kann das liegen ?
Gruss
Tom
Wenn ich eine php Datei (installiert ist php5) in das cgi-bin Verzeichnis meines Webs ablege und diese über den Browser aufrufe, bekomme ich die Meldung Seite kann nicht angezeigt werden.
Im Logfile steht folgendes:
[Sat Feb 19 15:34:03 2005] [error] [client 217.230.83.184] Premature end of script headers: test.php
[Sat Feb 19 15:34:03 2005] [error] [client 217.230.83.184] unable to include potential exec "include/top.html" in parsed file /usr/share/apache2/error/HTTP_INTERNAL_SERVER_ERROR.html.var
meine Config about CGI und php:
global:
--------
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php5
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php .html
AddType application/x-httpd-php .htm
ScriptAlias /cgi-bin/ "/srv/www/cgi-bin/"
<Directory "/srv/www/cgi-bin">
AllowOverride All
Options None
Order allow,deny
Allow from all
</Directory>
---------------
vhost:
--------
<Directory "/srv/www/htdocs/web2/html/cgi-bin">
AllowOverride All
Options +ExecCGI +Includes
SetHandler cgi-script
Order allow,deny
Allow from all
</Directory>
--------
woran kann das liegen ?
Gruss
Tom