I am using Ubuntu machine. I am running lampp server for php files.
I have all my PHP files in my_folder
where I have all my codes in /opt/lampp/htdocs/my_folder
including index file in /opt/lampp/htdocs/my_folder/index.php
.
I wanted to check my codes by running http://localhost/index.php
in Chrome browser, but for some reason it keeps directing me to /var/www/html/html.index
file. Can someone please help me resolve this problem?
Thanks in advance.
add this to you apache config.