Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP error...

Status
Not open for further replies.

Magma111

MIS
Mar 12, 2005
5
US
Ok. When you go to my IP, it shows an index of files in my document root. When you click on index.php, it loads correctly. I just wanna make it so index.php comes up automatically. Any help?
 
find the DirectoryIndex settings in apache. Make sure index.php is in there. Mine looks like:

DirectoryIndex index.php index.html



 
sorry forgot to say the DirectoryIndex setting is in your httpd.conf file.
 
Magma111,

Adding index.php to the DirectoryIndex is the way to go. I just wanted to point out that this directive can also be placed in a <VirtualHost> container, or in an .htaccess file if editing the main httpd.conf is not possible.


Wishdiak
A+, Network+, Security+, MCSA: Security 2003
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top