apache2 - PHP 7.2 is enabled but does not execute index.php on my page after server installation

2 points
Created by:

In this article we want to explain what can be reasone why index.php is not executed proper way after apache2 server is installed on Linux and we open http://localhost url in web browser.

Probem solution: remove index.htm from script directory.

By default index.html is located inside /var/www/html/ directory. index.html has bigger priority than index.php.

So you can run following command:

sudo rm /var/www/html/index.html


Native Advertising
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

ÔŁĄ´ŞĆ­čĺ╗ ­čÖé