0

I have Apache and PHP installed on my computer. I have an index.php file in my htdocs folder. When I call localhost I get the contents of my htdocs folder in an Index of / page. However if I type localhost/index.php the page loads OK. In my httpd.conf file DirectoryIndex is set to index php and index.html.
Can anyone see why this is happening?

Thanks,

2
Contributors
5
Replies
7
Views
7 Years
Discussion Span
Last Post by rajarajan07
0
<IfModule dir_module>
    DirectoryIndex index.php index.pl index.cgi index.asp index.shtml index.html index.htm \
                   default.php default.pl default.cgi default.asp default.shtml default.html default.htm \
                   home.php home.pl home.cgi home.asp home.shtml home.html home.htm
</IfModule>

This is what I have in my httpd.config. Just have a cross reference.

0

I actually uninstalled XAMP and installed Apache and PHP seperately. PHP files display fine after you click on them from the list of 'Index of/' files

0

XAMPP will install you everything you need and not much of space, then why did you removed? I think it will work again you installed XAMPP.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.