Ubuntu - HTML pages won’t parse PHP scripts

I was banging my head on this for a quite a while.

* Edit the following line in your site-specific apache config file:
* (/etc/apache2/sites-enabled/<site_name>) <– This is the conf file. It has no extension.
AddType application/x-httpd-php .html
* sudo /etc/init.d/apache2 (start/stop/restart)  <— this restarts apache.

Leave a Reply