Operating System - Linux
1843968 Members
2183 Online
110226 Solutions
New Discussion

howto configure Apache2 to parse PHP with .html ending ?

 
'chris'
Super Advisor

howto configure Apache2 to parse PHP with .html ending ?

hi

howto configure Apache2 to parse PHP files with .html ending ?

for example:








by Apache 1.3 I added only

AddType application/x-httpd-php .html

at httpd.conf and was working.

but by Apache 2 doesn't help.

kind regards
chris
5 REPLIES 5
Steven E. Protter
Exalted Contributor

Re: howto configure Apache2 to parse PHP with .html ending ?

There may be another way to make this work.

In my .shtml pages I have code like this:



I bet you can do this.



SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
'chris'
Super Advisor

Re: howto configure Apache2 to parse PHP with .html ending ?

hi

is it any other solution to fix this problem ?

regards
chris
Roberto Polli
Trusted Contributor

Re: howto configure Apache2 to parse PHP with .html ending ?

'chris'
Super Advisor

Re: howto configure Apache2 to parse PHP with .html ending ?

I tried, but still doesn't work !

greetings
chris
'chris'
Super Advisor

Re: howto configure Apache2 to parse PHP with .html ending ?

hi

I found out:

by Apache2 and SuSE 9.1 (8.2) should add at:
/etc/apache2/conf.d/mod_php4.conf
and NOT at the httpd.conf following line:

AddType application/x-httpd-php .html

regards
chris