Friday 18 July 2014

PHP Script not executing in HTML pages - Dreamhost

I recently spun up my Dreamhost account from a few years ago to do play around PHP and couldnt get php running! After installing PHP 5.4 using the Dreamhost provided script I still had the problem until I added the following to .htaccess
<FilesMatch "\.(htm|html)$">
SetHandler application/x-httpd-php5
</FilesMatch>