Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: index.php would not be loaded automatically |
|
Author |
|
nureinnarr
Joined: 04 Apr 2008 Posts: 2 Location: Germany
|
Posted: Fri 04 Apr '08 19:59 Post subject: index.php would not be loaded automatically |
|
|
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
|
Posted: Fri 04 Apr '08 20:02 Post subject: |
|
|
Search for DirectoryIndex in httpd.conf |
|
Back to top |
|
nureinnarr
Joined: 04 Apr 2008 Posts: 2 Location: Germany
|
Posted: Fri 04 Apr '08 20:07 Post subject: |
|
|
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
Best regards
Alex |
|
Back to top |
|
|
|
|
|
|