Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

share|improve this question
    
@jorge castro Done. –  Iznogood Oct 12 '10 at 21:22
add comment

2 Answers

up vote 2 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
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
add comment

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
add comment

Your Answer

 
discard

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.