Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Mar 2004
    Location
    Virginia
    Posts
    76

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

    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. #2
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,597

    Default

    Quote Originally Posted by Nathan D. View Post
    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,
    Try

    /usr/local/cpanel/bin/checkallsslcerts
    /usr/local/cpanel/startup
    -Nick
    cPanel Inc.

    Need support? Submit a request here. Complimentary support is available to all license holders regardless of where you purchased your license.
    Need a complimentary support account? Create one here.

  3. #3
    Member
    Join Date
    Mar 2004
    Location
    Virginia
    Posts
    76

    Default

    Quote Originally Posted by cpanelnick View Post
    Try

    /usr/local/cpanel/bin/checkallsslcerts
    /usr/local/cpanel/startup
    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. #4
    Member
    Join Date
    Mar 2004
    Location
    Virginia
    Posts
    76

    Default

    Any other ideas?

  5. #5
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,597

    Default

    Please open a ticket @ https://tickets.cpanel.net/submit/
    -Nick
    cPanel Inc.

    Need support? Submit a request here. Complimentary support is available to all license holders regardless of where you purchased your license.
    Need a complimentary support account? Create one here.

  6. #6
    Member
    Join Date
    Mar 2004
    Location
    Virginia
    Posts
    76

    Default

    Thanks Nick. I've input a support ticket with my provider and will post the resolution here once fixed.

  7. #7
    Member
    Join Date
    Mar 2004
    Location
    Virginia
    Posts
    76

    Default

    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. #8
    Registered User
    Join Date
    Sep 2009
    Posts
    1

    Default

    Go to WHM -> Service Configuration -> Manage Service SSL Certificates

    And reset all certificate.
    That should do the trick.

Similar Threads & Tags
Similar threads

  1. I changed the hostname - should I have?
    By gwgraham in forum New User Questions
    Replies: 3
    Last Post: 07-25-2008, 09:59 AM
  2. SSL cert works for hostname/cpanel but not hostname:2082
    By foxphiles in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-30-2008, 09:12 AM
  3. Hostname changed after today's update
    By Kelmas in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-05-2007, 08:31 AM
  4. Server hostname changed.
    By Hyper - Frag in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-30-2005, 06:34 AM
  5. Changed Hostname but...
    By bonnmac in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-08-2003, 12:49 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube