HendrikS: PHP als Apache Module

Beitrag lesen

hallo,

Jetzt werden allerdings .php scripts nicht mehr ausgeführt sondern eher direkt dem Browser als application/x-httpd-php übergeben.
Woran kann das liegen, was muss ich ändern?

Andersherum: was hast du denn bisher eingestellt? Eventuell hilft dir der entsprechende Abschnit im Feature-Artikel weiter.

Danke, den hatte ich auch schon gelesen, ich hab bis jetzt nix gemacht ausser die php5ts.dll in den apache root zu kopieren, und diese zeilen in httpd.conf und mimes.types zu kopieren:

Add to the end of the LoadModule section

LoadModule php5_module C:/php/php5apache.dll

Add to the end of the AddModule section

AddModule mod_php5.c

Add this line inside the <IfModule mod_mime.c> conditional brace

AddType application/x-httpd-php .php

For syntax highlighted .phps files, also add

AddType application/x-httpd-php-source .phps

----

application/x-httpd-php php php3 phtml