Forum Moderators: phranque
I just installed Apache webserver v 1.3 on my Windows XP Pro machine. Install was successful.
I next installed PHP v 4.3.10. PHP install was successful. Now I want to make my Apache webserver recognize index.php before any other index or default file - or at all, for that matter.
I have a httpd conf file and I have read a number of posts here about DirectoryIndex and mod_dir.
Currently it reads:
<IfModule mod_dir.c>
DirectoryIndex index.php index.html index.shtml
</IfModule>
However no matter how many times & ways I have edited it, it does not recognize any other file besides index.html as the default page. If I delete index.html from my htdocs (web root) directory but leave in index.php and index.shtml, it directs instead to Apache.org's default page that says "If you can see this, it means that the installation of the Apache web server software on this system was successful...."
I have also read about the .htaccess file but I do not appear to have one of those. (Scratching head.) I have an "access" file that is a configuration type file, and it is located in my conf directory. Even though the access file comments recommend leaving this file blank, I have tried editing it to add the DirectoryIndex lines listed above but that does not work, either.
Any ideas and suggestions?
Thanks!
Morcar