PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : html-Seiten als php pasren unter Apache 2



Stefan H
26.09.03, 00:03
Hallo,

unter Apache 1.3x war es ja kein Problem zu konfigurieren, dass auch .html-Seiten durch den PHP-Parser geschickt werden:
AddType application/x-httpd-php .php
AddType application/x-httpd-php .html

Doch wie wird das nun bei Apache 2.0 gemacht?

Ich setzte SuSE Linux 8.2 ein, in der /etc/apache2/httpd.conf gibt es aber kein einziges Wort mit php? Danke schon mal für die Antwort(en)!

Jorge
26.09.03, 14:22
Ist PHP überhaupt installiert?

Stefan H
26.09.03, 22:23
ja, PHP Version 4.3.1

<?php phpinfo(); ?> funktioniert als test.php, jedoch nicht als test.htm

paladin
26.09.03, 23:27
AddType application/x-httpd-php .html

Du hast es nur für .html deklariert.. nicht für ".htm"


<?php phpinfo(); ?> funktioniert als test.php, jedoch nicht als test.htm

downtown
27.09.03, 00:24
http-server neustarten ;)

Svenny
27.09.03, 06:57
AddType application/x-httpd-php .php .php3 .phtml .phtm .htm .html


Und dann sollte des Klappen

Stefan H
07.10.03, 23:04
ich habe die Lösung gefunden:

bei SuSE 8.2 in der Datei
/etc/apache2/conf.2/mod_php4.conf

den Zusatz machen:
AddType application/x-httpd-php .htm
AddType application/x-httpd-php .html