Posted By: Anonymous
I have just installed CentOS, Apache and PHP. When I visit my site http://example.com/myapp/, it says “forbidden”. By default it’s not loading the index.php file.
When I visit http://example.com/myapp/index.php, it works fine.
Any idea how to fix that issue?
Apache needs to be configured to recognize index.php as an index file.
The simplest way to accomplish this..
Create a .htaccess file in your web root.
Add the line…
Here is a resource regarding the matter…
Edit: I’m assuming apache is configured to allow .htaccess files. If it isn’t, you’ll have to modify the setting in apache’s configuration file (httpd.conf)