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

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

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

You Might Also Like