php-Datei wird zum Download angeboten

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

<IfModule mod_dir.c>
DirectoryIndex index.html index.php
</IfModule>

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?"
Thomas Barth [ Sa, 15 Januar 2005 20:28 ] [ ID #588461 ]

Re: php-Datei wird zum Download angeboten

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
>
> <IfModule mod_dir.c>
> DirectoryIndex index.html index.php
> </IfModule>
>
> 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 [at] bmservices.de
Bernd Muent [ Di, 18 Januar 2005 17:43 ] [ ID #593136 ]
PHP » de.comp.lang.php.installation » php-Datei wird zum Download angeboten

Vorheriges Thema: php.ini - pfad definieren
Nächstes Thema: Re: Gettext extension Fehler auf Windows