phpbar.de logo

Mailinglisten-Archive

[php] PHP Installation

[php] PHP Installation

Christian Neuburg php_(at)_phpcenter.de
Tue, 10 Apr 2001 18:54:37 +0200


Hallo All,

ich habe hier ein Problem mit der Installation von PHP.

PHP ist installiert. Als Interpreter funktioniert es. D.h. wenn man lokal
eine PHP-Datei aufruft, wird diese
auch ausgeführt.

Ruft man jetzt allerdings eine PHP-Datei
per Browser auf, erhält man einen Internal
Server Error. Im error.log vom Apache steht dazu:

[error] (8)Exec format error: exec of
/usr/local/httpd/cgi-bin/phpinfo.php3 failed
[error] Premature end of script headers:
/usr/local/httpd/cgi-bin/phpinfo.php3

Es scheint also als hätte Apache ein Problem beim Ausführen von PHP-Dateien.

Im httpd.conf stehte folgendes:

# AddType allows you to tweak mime.types without actually editing it, or to
# make certain files to be certain types.
#
# For example, the PHP3 module (not part of the Apache distribution - see
# http://www.php.net) will typically use:
#
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3-source .phps
AddType application/x-httpd-php3 .phtml

Sollte also soweit alles richtig sein.

Das phpinfo.php3 sieht wie folgt aus:

<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<?php echo phpinfo(); ?>
</BODY>
</HTML>

Warum kann Apache keine PHP-Dateien ausführen?

Schon mal besten Dank für alle sachdienlichen Hinweise!

MfG. C.N.



php::bar PHP Wiki   -   Listenarchive