Skip to main content

Change Database Server Name

Comments

8 comments

  • cPRex Jurassic Moderator
    Hey there! That page wouldn't be pulling data from MySQL, but from somewhere else on the system. Can you check /etc/hosts and /etc/hostname to see if that name is present in either of those files?
    0
  • Naila
    Not present in both @cPRex Post thread updated with more detail And cPanel => Server Information (Server Name) read data from?
    0
  • cPRex Jurassic Moderator
    It looks like we read this from the "uname" value on the server. Can you try running "uname -n" to see what that reports on your machine?
    0
  • cPRex Jurassic Moderator
    While investigating this issue I noticed that the cPanel >> Server Information area only shows the first portion of the hostname. For example, if your hostname is host.domain.com, that interface only shows "host" I've created case CPANEL-41660 for our team to adjust that to show the entire hostname, so you can watch for that in our changelogs here:
    0
  • Naila
    It looks like we read this from the "uname" value on the server. Can you try running "uname -n" to see what that reports on your machine?

    uname -n showing result origin hostname @cPRex
    0
  • cPRex Jurassic Moderator
    At this point it would be best to create a ticket so we can determine where that value is coming from. Can you do that, and then paste the ticket number here so I can follow along?
    0
  • Naila
    Since I'm in the stage of becoming a system admin, I want to learn how to solve it, relying on support tickets only for instant will not increase my knowledge. I'm relying on clues from here. I did a search with grep and find found huffingtonpost.co.za on the following mysql file. Even though I'm migrating to a new server huffingtonpost.co.za always shows up after some accounts I've migrated. [QUOTE]/var/lib/mysql/mysql/db.MAD /var/lib/mysql/mysql/db.MAI /var/lib/mysql/mysql/global_priv.MAD
    [QUOTE]/usr/share/cagefs-skeleton/var/lib/mysql/mysql/db.MAD /usr/share/cagefs-skeleton/var/lib/mysql/mysql/db.MAI /usr/share/cagefs-skeleton/var/lib/mysql/mysql/global_priv.MAD
    I don't know where I can edit the above files, because I changed via database root but their text domains still show up in the files. And it always appears in /usr/local/cpanel/Cpanel/iContact.pm [QUOTE]Note: The Server Name "huffingtonpost" only apper when using jupiter themes, swicth to themes paper_lantern Server Name showing correct hostname.
    0
  • cPRex Jurassic Moderator
    The issue isn't with the database. While there may be entries for that hostname in the database as well, cPanel doesn't use any MySQL data to pull information for the interface. That's why I mentioned creating a ticket, as something seems to be actually wrong with cPanel itself. It's not that we don't want to help through the Forum, but when you stumble across something new we just may not have enough detail to guide you without examining it ourselves. For the entries you found, I have two thoughts. The first, is that you can never directly edit data inside /usr/share/cagefs. More details on the function of CageFS can be found here:
    0

Please sign in to leave a comment.