php-Datei wird zum Download angeboten
am 15.01.2005 20:28:54 von Thomas Barth
Hallo,
nachdem der Webserver Apache auf meinem Entwicklungsrechner mit den
folgenden Einstellungen für PHP gestartet wurde, wird eine PHP-Datei
immer nur zum Download angeboten und nicht ausgeführt.
AddType application/x-httpd-php .php
LoadModule php5_module "c:/php/php5apache.dll"
AddHandler php-script .php
DirectoryIndex index.html index.php
System ist WindowsXP, Umgebungsvariable PHPRC und PATH ist auf c:/php
gesetzt.
Was fehlt denn noch? Die Installationbeschreibung von PHP
(c:\php\install.txt) bin ich eigentlich Schritt für Schritt durchgegangen.
Gruß,
Thomas B.
--
"Alvy, don't! You're using sex to express hostility."
"Why do you always reduce my animal urges to psychoanalytic categories?"
Re: php-Datei wird zum Download angeboten
am 18.01.2005 17:43:06 von Bernd Muent
Thomas Barth schrieb:
> nachdem der Webserver Apache auf meinem Entwicklungsrechner mit den
> folgenden Einstellungen für PHP gestartet wurde, wird eine PHP-Datei
> immer nur zum Download angeboten und nicht ausgeführt.
>
> AddType application/x-httpd-php .php
> LoadModule php5_module "c:/php/php5apache.dll"
> AddHandler php-script .php
>
>
> DirectoryIndex index.html index.php
>
>
> System ist WindowsXP, Umgebungsvariable PHPRC und PATH ist auf c:/php
> gesetzt.
>
> Was fehlt denn noch? Die Installationbeschreibung von PHP
> (c:\php\install.txt) bin ich eigentlich Schritt für Schritt durchgegangen.
Was steht im ErrorLog deines Apache? Kann er das Modul überhaupt laden?
Unter Windows hilft es oft, alle dll's aus dem PHP-Verzeichnis (incl.
Unterverzeichnissen) nach c:\windows\system32 zu kopieren.
B.
--
BM Computer-Services, Bergmannstr. 66, 10961 Berlin
Webdesign, Internet, Layout und Grafik
Tel.: 030/20649400, mobil 0175/7419517, Fax: 030/20649401
Web: http://www.bmservices.de, eMail: kontakt@bmservices.de