Test Server Apache Problems

driveflexfuel

New Member
Messages
159
Reaction score
0
Points
0
First I am sorry if this is not the best place to post this message. I was not sure where to ask.

I installed apache and php on my win XP Pro platform and everything seems to be working ok. I am able to type in Localhost/ and it displays the directory. My problem is it will not load index.php. It will only load the directory contents. I have been racking my brain for hours if someone knows how to fix this please help out.

I have tried changing all htaccess files to htaccess.txt which did nothing

Information from httpd.conf
Code:
<IfModule mod_dir.c>
    DirectoryIndex index.php index.html index.htm
</IfModule>


AccessFileName .htaccess
I also placed a .htaccess file in the directory with this line within it.

Code:
    DirectoryIndex index.php index.html index.htm
If anyone has any ideas I will gladly try them
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
If you have index.html in the directory, does it display that?
 

driveflexfuel

New Member
Messages
159
Reaction score
0
Points
0
no it just opens the directory and shows the index.html file listed. you have to click on index.html in order to view the site.
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
Is mod_dir installed and activated? If mod_info is installed and active, it will list all active modules. Try going to "http://localhost/server-info". You can also check in httpd.conf for mod_dir.

Code:
LoadModule dir_module        path/to/mod_dir.so
...
AddModule mod_dir.c
 

driveflexfuel

New Member
Messages
159
Reaction score
0
Points
0
I did as lhyman suggested. The package he suggested was newer and more up-to-date.

Thanks for the help.
 
Top