Kann keine PHP Files im cgi-bin Verzeichnis abrufen.

Apache, Lighttpd, nginx, Cherokee
Post Reply
druschl
Posts: 15
Joined: 2005-02-03 12:25
 

Kann keine PHP Files im cgi-bin Verzeichnis abrufen.

Post by druschl »

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
floezen
Posts: 10
Joined: 2004-05-11 18:23
 

Re: Kann keine PHP Files im cgi-bin Verzeichnis abrufen.

Post by floezen »

Das sieht ja ganz nach einer Confixx Installation aus?!
In der confixx_mhost.conf gibt es etwas das sich php_admin_value include_path und php_admin_value open_basedir nennt.
Liegt das cgi-bin Verzeichniss ausserhalb der dort aufgeführten Pfade?

Vielleicht hilft dass, wenn Du den Pfad zum cgi-bin Verzeichniss da mit includest.

Grüsse
Flözen
druschl
Posts: 15
Joined: 2005-02-03 12:25
 

Re: Kann keine PHP Files im cgi-bin Verzeichnis abrufen.

Post by druschl »

Ja, es ist eine Confixx installation.
In den beiden Zeilen, welche Du nennst steht nichts von CGI-bin.
Wie kann ich das von der Syntax her ergänzen ?

Gruss
Tom
Post Reply