[help]web server config

Newbie Spellweaver
Joined
Apr 19, 2007
Messages
11
Reaction score
0
Hi, I'm trying to set up the website end of the audition server, and i have apache 2.2.4 and php 5.2.2, seems to work ok except for one thing; when i go to my it shows a directory index for that location rather than showing index.php. however if i put in a index.html it displays fine.

Obviously i have to set an option somewhere for it to detect ".php" extension as being an acceptable default page, but where would i do this?

thanks.

p.s: do not tell me to get xamp, its the same thing but with lots of extra fancy stuff and more security issues.

p.s.s: in case i'm not using the proper terminology, what i mean by "directory index" is that it shows a list of files in the folder "audition" (or any other folder unless it has a file named "index" with the ".html" extension). If you still do not know what i'm talking about then you're probably not suited to help with this particular issue :P


EDIT:
Nevermind, i did a little digging in the apache files and did it myself.

for anyone with the same issue here is the solution: open "apache\conf\httpd.conf"

find:
Code:
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>

replace (or modify similarly as needed) with:
Code:
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.html
DirectoryIndex index.php
DirectoryIndex index.htm
DirectoryIndex index.shtml
</IfModule>
 
I know your proplem, remeber that, install PHP on apache is harder than on ISS, and its hard to config too.
Seem that you configured httpd.conf, but i think PHP still not work
You should change your server into ISS, its will very easy to manage
 
lol why go the easy way? learn nothing that way :P
I like to do hard things, it takes me longer to figure out but in the end i gain more wisdom than someone who tries to get the easiest method of things.
 
Code:
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
<IfModule dir_module>
DirectoryIndex index.html
DirectoryIndex index.php
DirectoryIndex index.htm
DirectoryIndex index.shtml
</IfModule>

You could've just asked me on MSN. A general standard of configuring something is that you should not add more options unless told otherwise in the comments. So instead of what you did, try the following:

DirectoryIndex index.php index.html index.htm index.shtml

The file that will be read is the first that is found from the list subsequently.
 
Back