Re: New virtual host local site wont recognize php
Posted by:
RiggsFolly
(---.as13285.net)
Date: June 23, 2013 04:07PM
Its not actually a good idea doing that but whatever:-
Did you add a line like this to your httpd.conf file?
AddType application/x-httpd-php .html
You will find these 2 lines already exists in the httpd.conf, add the line above afre these
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
In order to get html files parsed by PHP you need this line to tell apache to pass the .html files through the PHP interperter.
Alternatively
You can add this command
AddHandler application/x-httpd-php .html
to a .htaccess file provided you have AllowOverride ALL set for the site