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"
I checked the Apache configuration syntax file by using command
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!