How To Fix “apache2: Could not reliably determine the server’s fully qualified domain name”

1

This is  is just a friendly warning but it need to be fixed to avoid the warning message each time you start the apache. The Fully Qualified Domain Name or also known as FQDN is basically simply another name for the complete domain name for a specific computer, or host, on the Internet. WikiPedia explains it as a domain name that specifies its exact location in the tree hierarchy of the Domain Name System a.k.a DNS. 

Error Symptom

When a user tries to restart Apache2 service using either one of these commands:

/etc/init.d/apache2 restart

Or

service apache2 restart 

You will then get error message:-

apache2-error-fqdn

How To Fix FQDN Issue On Apache

Step 1 – Login to your server via SSH. You can use either Putty on Windows or Terminal if you are on Mac or Linux. If you can, you better login as root or as a user with root privilege.

Step 2 – Now issue following command syntax:

nano /etc/apache2/httpd.conf

Step 3 – You’ll now in Nano text editor. If you see a blank screen, just don’t worry it is normal. Now type following line in there..

ServerName localhost

Like this one:

apache2-error-fqdn-fix

Once done, save it and exit. In Nano editor the command to save should be Control+O while Control+X used to exit.

Step 4 – Next, simply restart Apache2 service. There are two most common commands used to accomplish that task. You can use either..

/etc.init.d/apache2 restart

or,..

service apache2 restart

That’s it. Now you should see the error has gone.

apache2-error-fqdn-fixed

Via:- ServerMom

plz Join techinfoBiT on facebooktwitterGoogle+ or subscribe blog-feed

1 COMMENT

  1. I’m really impressed with your writing skills and also with thee layout on your
    blog. Is this a paid ttheme or did youu customize itt yourself?

    Eiher way kewp upp the excellent quality writing, it’s rare to
    see a great blog like this one today.

LEAVE A REPLY

Please enter your comment!
Please enter your name here