Localhost Index. Php Missing

Localhost Index. Php Missing

When I updated php5, I see the It works! page appears when I go to instead of getting the localhost's homepage.

I see /var/www/index.php is missing.

How should I correct it ?

I have reinstalled Php & Apache but the problem remains.

1 Answer

Apache doesn't create a index.php.
So you have two options:

  • Create your index.php
  • Modify your configuration (probabily /etc/apache2/sites-available/default) to point to another folder, where there is your index. If you want to modify your configuration you have to change DocumentRoot and the first < Directory >
5

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Maya Lin-Takahashi
Author

Maya Lin-Takahashi

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.