how to associate index.php with the default web page?

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
davidklonski
Forum Contributor
Posts: 128
Joined: Mon Mar 22, 2004 4:55 pm

how to associate index.php with the default web page?

Post by davidklonski »

Hello

I am using PHP with Apache.
I would like to associate apache to load the index.php page by default whenever someone goes to the home directory of my site.
This is the default behaviour in all sites.
I guess this is not the default behaviour for php with apache.
Can anyone tell me how to configure apache to do it?

thanks
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

Edit httpd.conf and edit/add a line like,
DirectoryIndex index.php

..then restart apache.
Post Reply