PHP Support For Apache2

Make sure you have all the following lines need to uncomment somewhere in your apache2.conf (or in your conf.d/php.ini) file:

LoadModule php5_module modules/
# Cause the PHP interpreter to handle files with a .php extension.
AddType application/x-httpd-php .php

If you want to allow the different index files types check for the following line in /etc/apache2/apache2.conf file

DirectoryIndex index.html index.cgi index.php index.xhtml index.shtml

Restart the apache server

#service apache2 restart


Content last revised 14/08/2010 0100 UTC