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.

Hostname changed. cPanel/WHM still try to access original hostname

Discussion in 'General Discussion' started by Nathan D., Jan 11, 2009.

  1. Nathan D.

    Nathan D. Well-Known Member

    Joined:
    Mar 21, 2004
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Virginia
    When I first had my box set up, I of course set it up with a hostname. Once I configured the server how I like it, I decided to change my hostname. I changed it and verified the following files do contain the correct entries for the new hostname:

    hosts file
    Apache config
    wwwacct.conf
    resolv.conf
    network config

    Everything works fine except when in cPanel and WHM (mostly WHM) when clicking links, it still directs itself to the original hostname. http://originalhostname.domain.com. Where else could the original hostname be stored that cPanel/WHM uses for its links?

    Thanks in advance,
     
  2. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    Try

    /usr/local/cpanel/bin/checkallsslcerts
    /usr/local/cpanel/startup
     
  3. Nathan D.

    Nathan D. Well-Known Member

    Joined:
    Mar 21, 2004
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Virginia
    Alright. I ran both of those. checkallsslcrts confirms that the ssl certs are still for the original hostname and says warning due to those certs not matching the current hostname but it doesn't appear to resolve the issue, it just posts that there is a problem. I ran startup behind that and it restarted cpanel apparently.

    The issue remains.
     
  4. Nathan D.

    Nathan D. Well-Known Member

    Joined:
    Mar 21, 2004
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Virginia
    Any other ideas?
     
  5. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
  6. Nathan D.

    Nathan D. Well-Known Member

    Joined:
    Mar 21, 2004
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Virginia
    Thanks Nick. I've input a support ticket with my provider and will post the resolution here once fixed.
     
  7. Nathan D.

    Nathan D. Well-Known Member

    Joined:
    Mar 21, 2004
    Messages:
    78
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Virginia
    I changed the following setting in WHM to resolve my issue:

    When visiting /cpanel or /whm or /webmail with SSL, you can choose to redirect to:
    SSL Certificate Name Hostname Origin Domain Name

    I selected hostname rather than SSL Cert name and it still goes through SSL but the links/URL reflect the current hostname.

    Thanks!
     
  8. calviin

    calviin Registered

    Joined:
    Sep 23, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Go to WHM -> Service Configuration -> Manage Service SSL Certificates

    And reset all certificate.
    That should do the trick.
     
Loading...

Share This Page