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
2477

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

 

Hey 👋
Would you like to know what we do?
  • Dirask is a friendly IT community for learners, professionals and hobbyists to share their knowledge and help each other in extraordinary easy way.
  • We welcome everyone,
    no matter what the experience,
    no matter how basic the question is,
    this community will help you.