logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: index.php would not be loaded automatically
Author
nureinnarr



Joined: 04 Apr 2008
Posts: 2
Location: Germany

PostPosted: Fri 04 Apr '08 19:59    Post subject: index.php would not be loaded automatically Reply with quote

Hello,

i have just set up my Apache 2.2.8 along with php5.2.5. I followed the instructions given here http://www.apachelounge.com/viewtopic.php?t=570 exactly.

After this i placed a file named index.php in my htdocs folder. What i expected is that i would be loaded and parsed automatically when i enter "http://localhost" in my browser. But all i get is a page showing "Index of /". I then have to click manually on the listed index.php file to get it processed.

What's wrong with my configuration?

Best regards
Alex
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Fri 04 Apr '08 20:02    Post subject: Reply with quote

Search for DirectoryIndex in httpd.conf
Back to top
nureinnarr



Joined: 04 Apr 2008
Posts: 2
Location: Germany

PostPosted: Fri 04 Apr '08 20:07    Post subject: Reply with quote

In the section DirectoryIndex of my httpd.conf i replaced the given index.html with index.php and everything works just fine now.

Thank you very much Smile

Best regards
Alex
Back to top


Reply to topic   Topic: index.php would not be loaded automatically View previous topic :: View next topic
Post new topic   Forum Index -> Apache