jlatour888

Member
May 9, 2012
11
0
51
cPanel Access Level
Root Administrator
Im having the same issues as the guy in this thread - http://forums.cpanel.net/f5/easyapache-fails-289021.html
im hoping someone can check my host file that was auto made by whm and let me know what may be cauing these issues with easyapache.



Code:
127.0.0.1 localhost.localdomain localhost
# Auto-generated hostname. Please do not remove this comment.
173.245.7.217 myvps.mytruedomain.com localhost  myvps localhost.localdomain
::1             localhost localhost.localdomain localhost6 localhost6.localdomain6
 
Last edited:

JaredR.

Well-Known Member
Feb 25, 2010
1,834
23
143
Houston, TX
cPanel Access Level
Root Administrator
The /etc/hosts file was not automatically generated by WHM or cPanel. It was automatically generated by the operating system, or possibly by a script that your virtualization software or hosting provider has placed on the server.

You need to remove the references to localhost and localhost.localdomain from the line for 173.245.7.217. localhost should only point to 127.0.0.1, which is "localhost" by definition. Two references to localhost will break Apache, and that is why cPanel would never put that configuration in /etc/hosts.