1

I setup a LAMP in Ubuntu 10.10 and it seems to be working fine but a couple of things are weird. The weirdess thing is that whenever I use:

/etc/init.d/apache2 restart

I get: could not reliably determine the server`s fully qualified domain name, using 127.0.0.1 for ServerName.

Funny thing is that if I

/etc/init.d/apache2 status

Apache is running

So I assume everything is ok but I have to reboot the server everytime I change something since /etc/init.d/apache2 restart

Does not seem to do anything.

I am pretty lost in Ubuntu (not complete newbie but close).

  • @jorge castro Done. – Iznogood Oct 12 '10 at 21:22
4

This is just a warning, the webserver usually works fine if you ignore this warning. IIRC you can resolve the warning by entering a hostname in the configuration file in /etc/apache2/apache2.conf

  • 1
    Great! Turns out I was NOT using sudo when restarting my apache server and this is why I always had to reboot. Silly me. Thanks for the prompt answer! – Iznogood Oct 12 '10 at 20:45
2

This is what worked for me when I had the same warnings

Open your Apache config:

sudo vi /etc/apache2/apache2.conf

And add the line:

ServerName localhost
1

If you have already set a ServerName in the configuration, make sure that the host name resolves to an IP via DNS or is in your /etc/hosts file.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.