Apache listing directory – I swear I have index file!
OK, the ultimate wisdom is you will put your index file on the webserver accessible directory and your website would be visible – right? Well, not all the time.
Apache might decide to list your files even though you put your index.php in the directory you are expecting..
The thing lies on the default configuration of your server. If the default http.conf file has the directory setting to list then it will list even in the virtual hosts.
The fix Add your DirectoryIndex
So typical .htaccess or your setting in http.conf file would look like
...you other configs DirectoryIndex index.php //or whatever you want it to start from ....your other configs
Apache not executing PHP code – just renders the as it is
How to access phpmyadmin on ubuntu
Apache Access log is empty – how to change access log in apache php