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.

When trying to restart apache2,

I type:

sudo /etc/init.d/apache2 restart

Response I get:

Could not reliably determine the server's fully qualified domain name

Can anyone tell me what I'm doing wrong?

share|improve this question
add comment

1 Answer

In the main configuration file, make sure the ServerName has a proper value.

/etc/apache2/apache2.conf

Find or add the following

ServerName localhost

You can use any FQDN instead of localhost.

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