Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: Apache won’t start – Name or service not known: mod_unique_id  (Read 1081 times)

0 Members and 1 Guest are viewing this topic.

joseletk

  • Guest
Minor cause of frustration when you are installing Apache on a server that some one else has configured, is that if they have not setup the hosts file correctly apache will refuse to start.

The error is in /var/log/apache2/error_log and looks like below:

Code: [Select]
Name or service not known: mod_unique_id: unable to find IPv4 address of WebServer
This can be easily fixed by formatting your /etc/hosts file correctly as below (This example uses the hostname “WebServer” replace that with the hostname of your machine)

Code: [Select]
# /etc/hosts: Local Host Database

# IPv4 and IPv6 localhost aliases
127.0.0.1 WebServer.core.lan WebServer localhost
::1 WebServer.core.lan WebServer localhost

Thats it, apache will start as normal now
========================================================================