0

Problem

I'm running Ubuntu server 13.04. I installed drupal in the path below, running localhost/drupal/install.php

/var/www/drupal

Drupal installed correctly but the address localhost/drupal redirects me to the apache test page rather than the drupal site as it normally does.

What have I done wrong?

Relevant Log

I've tried to guess the relevant log as there is a lot of other stuff in there.

[Thu Oct 10 11:52:14 2013] [error] [client 192.168.1.73] File does not exist: /var/www/drupal/drupal
[Thu Oct 10 11:52:16 2013] [error] [client 192.168.1.73] File does not exist: /var/www/drupal/drupal
3
  • What do the logs say? (in /var/log/apache, especially the error.log)
    – Calimo
    Oct 10, 2013 at 12:18
  • @Calimo. So I managed to fix it// A. by just pasting it in the root and then by deleting the apache index and putting it back into a folder. I got a weird error in the log which I thought might've been it. Oct 10, 2013 at 12:26
  • Then you can answer your own question!
    – Calimo
    Oct 10, 2013 at 12:28

1 Answer 1

0

Delete the index.html from /var/www with

sudo rm /var/www/index.html

Usually, by default, installing the LAMP stack will also install a default index.html at /var/www which may confuse the script/site being installed on that folder. Deleting that default HTML file will ensure that apache will load the file index.php instead.

4
  • 1
    Why he should remove this file?
    – Braiam
    Oct 10, 2013 at 14:15
  • That does work. Any idea why? Oct 10, 2013 at 14:18
  • @Braiam Usually, by default, when the LAMP stack is installed, it comes with the default index.html on /var/www which confuses any script/site that you install on /var/www so deleting the default index.html probably will do the trick. if this works for you then you may accept the answer.
    – Chester
    Oct 10, 2013 at 17:21
  • Can you add that explanation to the answer itself?
    – Braiam
    Oct 10, 2013 at 17:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .