Pages - Menu

Showing posts with label apache. Show all posts
Showing posts with label apache. Show all posts

Friday, November 2, 2012

Another way to fix Apache – "Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName"

Hi fellas!

Don't know why but even with the httdp.conf file configured I was still receiving the error: "Could not realiably...", checked the /etc/hosts and everything was OK.

The solution is pretty simple, just rename the http.conf to fqdn and move it to the conf.d folder

Problem solved.

Adios!

Friday, October 26, 2012

How to fix Apache – "Could not reliably determine the server’s fully qualified domain name, using 127.0.1.1 for ServerName"

Hi fellas!

Just made a fresh install of Apache2 on my Ubuntu, made some changes and trying to restart it

$ sudo servie apache2 restart


Returned this:

* Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
... waiting apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName


To fix it you need to edit the httpd.conf file.

$ sudo gedit /etc/apache2/httpd.conf


The file will be blank, no problem, this is default. Add this:

ServerName localhost


And now restart Apache

$ sudo service apache2 restart


Problem solved.

Adios!