0

I'm trying to deploy a set of html and php scripts which I've developed on another server, onto my laptop. I think I am pretty much at a default configuration setup, having never dealt with the /var/www on this machine.

I've run the LAMP install as described here and restarted everything, but this didn't help

If I try to go to localhost, this is what I get: localhost

Ownerships and groups are all set to www-data and readable. I am sure that this is something simple that I'm forgetting...

Thanks

EDIT: I'm also getting this error if I try to restart apache2. Shouldn't be an issue though:

$ sudo /usr/sbin/apache2ctl restart
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive globally to suppress this message
Daniel
  • 142

1 Answers1

1

I've fixed it! I have no idea why or how, but in sites-enabled/000-default.conf, DocumentRoot was set to /var/www/html. I removed the /html and now everything is fine.

For reference, this is how it's set to work:

ServerAdmin webmaster@localhost
DocumentRoot /var/www
Daniel
  • 142
  • 2
    What version of Ubuntu are you using? The instructions linked in your first post were for 10.04, which used a different DocumentRoot compared to the latest release. – steeldriver Oct 19 '14 at 12:25
  • Hmmm, interesting. I'm running 14.04 but maybe it's not been updated somehow. – Daniel Oct 20 '14 at 15:26