apache2: Could not reliably determine the server’s fully qualified domain name, using for ServerName

After the initial install of Apache server, I got the following error while restarting the Apache service on Ubuntu 12.04:

The solution is really simple, just  add ServerName directive to /etc/apache2/httpd.conf :

 sudo nano /etc/apache2/httpd.conf


ServerName localhost

Finally restart the Apache server:

sudo /etc/init.d/apache2 restart

Hope this will help you!

Please Remember me in your prayers!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: