I have installed apache and PHP from Yum on CentOS 6.3
I'm trying to get PHP to be parsed in .html files-- but I can't seem to figure it out.
I have set AllowOverride All in httpd.conf
and then in .htaccess in the root directory I tried adding the line
AddType application/x-httpd-php .html
But that doesn't work. I've spent a while on Google trying different things, but I can't seem to get it. Everytime I view the source of my .html page in the browser, it displays my PHP code instead of parsing it.
Any help would be greatly appreciated.