Windows Apache + php not finding index.php

Problems? Post here...
Post Reply
User avatar
visser
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 472
Joined: 03 Apr 2007, 16:00
16
Location: online
Contact:

Windows Apache + php not finding index.php

Post by visser »

So i am sad to say that i found it very necasary to install windows and use that as my computer with my webserver. poor me. lol so i was configuring apache to use php. i got everything configured and it can recognize the scripts and can parse them, etc etc etc.

however whenever i have in the root folder index.php, it will just show me the contents of the folder when i browse to it with mozilla. it doesnt automatically show index.php as it would with index.html.

what do i do to fix this?

User avatar
Gogeta70
^_^
^_^
Posts: 3275
Joined: 25 Jun 2005, 16:00
18

Post by Gogeta70 »

Go into your apache configuration file httpd.conf. Press control+f and search for 'index.html'. change 'index.html' into into 'index.html, index.php'.

Then restart your webserver and everything should be peachy :).

By the way, all those searches and changes are done without the quotation marks. Good luck.
¯\_(ツ)_/¯ It works on my machine...

User avatar
uid0
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 106
Joined: 08 Jun 2008, 16:00
15
Contact:

Post by uid0 »

Just as additional security note, set the option "-Indexes" (without the quotes) in the <Directory /path/to/your/htdocs></Directory> section of the httpd.conf or vhost configuration file (in case you use it) or in an .htaccess on your document root to avoid directory listings.



Regards

Post Reply