Parsing PHP in .html Files with Apache2/suPHP PHP5? The old method does not work Adding AddHandler in .htaccess file is not working. Have tried each one of these without any success: None of these work. HTML files with PHP are being prompt to download from the server instead of being parsed in firefox.
Has there been a resolution with this thread? I have the same problem and I am still looking for a solution. Thanks
I'm having the same problem on my servers. I cannot use the following in a .htaccess file to get php to work with .html extensions. AddHandler application/x-httpd-php .html I'm running apache v1.x with phpsuexec. PHP version 5.2.5 It started when I used the new easyapache to compile PHP. I also noticed httpd.conf no longer has all of the php stuff like... AddHandler application/x-httpd-php .php .php4 .php3 AddType application/x-httpd-php .php AddType application/x-httpd-php .php4 AddType application/x-httpd-php .php3 AddType application/x-httpd-php-source .phps AddType application/x-httpd-php .phtml I added it and it then php wouldn't work at all so I took it back out.
Using these will now cause a download prompt when accessing a php script. If you have any of these in httpd.conf take it out. AddHandler application/x-httpd-php .php .php4 .php3 AddType application/x-httpd-php .php AddType application/x-httpd-php .php4 AddType application/x-httpd-php .php3 AddType application/x-httpd-php-source .phps AddType application/x-httpd-php .phtml /usr/local/apache/conf/php.conf is used now. I used what /usr/local/apache/conf/php.conf uses in a .htaccess file and it worked. AddHandler application/x-httpd-php5 .html .htm .php