[Fixed] Name or service not known: mod_unique_id: unable to find IPv4 address of

apache logo

I completed a new cPanel server setup and found that Apache service is not running.
On trying to restart, it failed and the Apache error logs showed following error

"[alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "server.example.com"
Configuration Failed"

I checked the Apache configuration  syntax file by using command

/etc/init.d/httpd configtest

which was ok.

On scratching head finally I checked the file "/etc/hosts"
and corrected the entries of the localhost and the server hostname which resolved the issue.

 If any feedback, queries are always welcome!

Share on Facebook2Share on Google+0Tweet about this on TwitterShare on StumbleUpon0Share on LinkedIn0Share on Tumblr0Pin on Pinterest0Email this to someonePrint this page

About Abhijit Sandhan

Abhijit Sandhan

Loves Linux, Blogging, Traveling, Hiking and sharing Knowledge!

Leave a Reply

Your email address will not be published. Required fields are marked *