How to fix Apache – “Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName” Error on Ubuntu

Posted: February 22, 2011 in Assesment 1 - Week 2, Assessment 1, Problems encountered along the way...

Here we are in week two of the assignment, and I have spent an awful lot of time getting what should be some simple stuff up and running.

To be specific, I have spent an age trying to get the networking configuration right. Now, this in hindsight is very straightforward, but at the time caused me much headaches.

Part of my problem was that I had VM set to NAT instead of bridged, and also that my home network is set up on a different subnet to the one I use at work. e.g. home is 192.168.0/24 and work is 192.168.1/24. Also, my home network has the DNS server running on  dedicated server 192.168.0.105.

I know this is simple stuff, but at the time caused much confusion, compounded by the fact that I was trying to edit the /etc/network/interfaces file with nano directly on the server and the cursor was not working etc. (before I started using SSH fro Mac directly).

So, it was painful at the time – but I learned a lot and now it is a simple task!.

One of the other issues I had this week was getting an error message saying ‘Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for Server Name.

I am still not sure if this was due to something I missed in the /etc/resolv.conf file or hosts file, but I read up on it at the following link, took action as suggested here and the issue resolved.

How to fix Apache – “Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName” Error on Ubuntu

Advertisements

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 )

Google photo

You are commenting using your Google 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 )

Connecting to %s