Languages
[Edit]
EN

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

2 points
Created by:
Marcin
15680

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
50 000 ad impressions - 449$
🚀
Get your tech brand or product in front of software developers.
For more information contact us:
Red dot
Dirask - friendly IT community for everyone.

❤️💻 🙂

Join