cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
Hello :)

This can happen when the /etc/hosts file includes a localhost entry for a public IP address. Here is an example:

Code:
[email protected] [~]# cat /etc/hosts
::1      localhost localhost.localdomain localhost6 localhost6.localdomain6
127.0.0.1      localhost.localdomain localhost localhost4.localdomain4 localhost4
# Auto-generated hostname. Please do not remove this comment.
208.74.000.99      vps.server.com vps [COLOR="#FF0000"]localhost localhost.localdomain[/COLOR]
Notice the "localhost" entry on the line with 208.74.000.99. This will cause EasyApache to fail. The solution is to remove the invalid localhost entries. The /etc/hosts file above would be edited to:

Code:
[email protected] [~]# cat /etc/hosts
::1      localhost localhost.localdomain localhost6 localhost6.localdomain6
127.0.0.1      localhost.localdomain localhost localhost4.localdomain4 localhost4
# Auto-generated hostname. Please do not remove this comment.
208.74.000.99    vps.server.com vps
Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
I am happy to see the issue is now resolved. Thank you for updating us with the outcome.