When you point your browser to a folder it should display the index.html or index.php file of that folder.
For example if you point your browser to http://mayuonline.com/test it should display the index.html file under the directory test.
I configured Apache to run on my local machine and I found that when I point my browser to a folder it lists the files in that folder, instead of pointing to index.php.
searched and found the solution for the problem.
- Open your http.conf file in Notepad (which can be found in the folder where apache is installed)
- Search for DirectoryIndex
- You will find something like "DirectoryIndex index.html index.html.var"
- Replace it with "DirectoryIndex index.html index.php index.html.var"