Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 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).

share|improve this question
@jorge castro Done. – Iznogood Oct 12 '10 at 21:22
up vote 3 down vote accepted

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

share|improve this answer
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

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.

share|improve this answer
Thanks Ill look into that too! – Iznogood Oct 12 '10 at 20:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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