Apache is ignoring index.php
I am using the distributed version of Apache in Lion and apparently have it working! However, though it serves index.html files it does not recognise index.php files. It just displays the content of the file. If I try to open a directory containing index.php it displays the contents of the directory. In httpd.conf I have the following:
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.php index.htm index.html
</IfModule>
I thought that this should be sufficient for the server to be forced (persuaded!) to serve the index.php file.
What am I doing wrong? I never had this trouble with SnowLeopard!
😢