Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

ipaddress changed after fresh installation

Discussion in 'General Discussion' started by RisenAngel, May 18, 2014.

  1. RisenAngel

    RisenAngel Well-Known Member

    Joined:
    Mar 9, 2011
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Killeen, Texas
    I recently just completed a fresh install of cpanel/whm. The next day my ip address changed so I had to make those changes to centos6.5. Today I went to the ip address and I got the default website page.

    Is there a way to fix this or should I just reinstall cpanel?
     
  2. vanessa

    vanessa Well-Known Member
    PartnerNOC

    Joined:
    Sep 26, 2006
    Messages:
    829
    Likes Received:
    26
    Trophy Points:
    178
    Location:
    Virginia Beach, VA
    cPanel Access Level:
    DataCenter Provider
    Can you clarify what is happening? When you say "the ip address changed", are you talking about the IP address of the server?


    I'm reading this as "I want to be able to access my website from its IP in my browser". If that is the case: If you go to the main IP address of a server, you are typically always going to get the default website page. The shared IP is, by default, loading from /usr/local/apache/htdocs. If you go to a website configured on that IP, by its domain name, it will show up. If you want the main IP to load from a different location so you can access the site by IP address, you can do so as follows:

    Code:
    cd /var/cpanel/templates/apache2
    cp main.default main.local
    
    Then change the default docroot to the docroot of your website and rebuild the config.

    Code:
    /scripts/rebuildhttpdconf
    service httpd restart
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, as Vanessa mentioned, it's normal to see the default website page when opening the IP address directly in your browser. You can make the changes specified in the previous post if you want to see a specific website load instead.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. RisenAngel

    RisenAngel Well-Known Member

    Joined:
    Mar 9, 2011
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    66
    Location:
    Killeen, Texas
    Thank you for the responses. Since I'm behind a NAT I had to remap a public ipaddress and then assign the internal ip to eth0. Now to try moving an account from enkompass to cpanel to see how it works.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    I am happy to see you were able to resolve the issue. Thank you for updating us with the outcome.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice