While installing Apache 2 on my Linux server, which runs Ubuntu 10.10, I came across this error:

chris@chrism-laptop:~$ sudo /etc/init.d/apache2 restart
* Restarting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name,
using 127.0.1.1 for ServerName

To solve this problem simply issue this command:

sudo gedit /etc/apache2/httpd.conf

The file will be blank by default so don’t worry! Type this into the blank document and save:

ServerName localhost

Now, issue the restart command for apache.

sudo /etc/init.d/apache2 restart

Hope this helps!

1 comment

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 )

Connecting to %s

%d bloggers like this: