The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Host file issues

Discussion in 'General Discussion' started by jlatour888, Jan 21, 2013.

  1. jlatour888

    jlatour888 Member

    Joined:
    May 9, 2012
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    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
     
    #1 jlatour888, Jan 21, 2013
    Last edited: Jan 21, 2013
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    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.
     
  3. jlatour888

    jlatour888 Member

    Joined:
    May 9, 2012
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    that fixed it. thx jared
     
  4. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    You are most welcome.
     
Loading...

Share This Page