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?
Windows Apache + php not finding index.php
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.
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...