how to recognise index.php

jweijers

Registered
Hi,

How do I get my apache (OS 10.2.3) to recognise index.php as an index? If I go to http://192.168.1.5/ (my IP address) it will show a directory listing including index.php but it will not open the file.

If I then click index.php everything works fine.

Jan
 
You have to mondify /etc/httpd/httpd.conf at the key called DirectoryIndex so it looks like this
Code:
<IfModule mod_dir.c>
    DirectoryIndex index.html index.php
</IfModule>

In mine it appears at line 441, it will probably be close in yours.

I like to use the pico editor, so just enter sudo pico /etc/httpd/httpd.conf to access it.
 
Back
Top