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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

index.php config-- how to?

Status
Not open for further replies.

Pelli

Programmer
Jan 9, 2004
1
US
hi-

i'm setting up a local apache/php server on my machine. The server is working fine- it finds localhost and runs php files just fine.

My question is where do i configure the server to start at the index.php instead of index.html? is that a setting in httpd.conf or php.ini or other (or none..lol)..

thanks
-p
 
Pelli,

The file you're looking for is [tt]httpd.conf[/tt] located in the [tt]apache\conf[/tt] directory.

Search for DirectoryIndex and add/change the directory search order.

Mine looks like this:

[tt]DirectoryIndex index.html index.html.var index.htm index.php index.php3[/tt]

Remember to restart Apache ...

Good Luck §;O)


Jakob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top