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:
DrJoystick
585

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

 

Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

Apache2

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.

❤️💻 🙂

Join