• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

How to change hostname?

B

belac

Guest
Hello,

I installed 6.5 for windows and entered a bogus hostname after install to get into the admin. I was suprised to find no way to update it. Does anyone know how I can change the hostname once it has been entered?

Thanks in advance.
 
You have to edit it in three places. There will be a reference to it in the misc table in the database, the dns records table, and then you have to edit it in the bind files located at \dns\ in your plesk directory.
 
command for changing hostname

c:\program files\swsoft\plesk\mysql\bin\mysql -u admin -p

mysql> update psa.misc set val='www.domainname.com' where param='fullhostname';


The path information and commands to login are listed in the first line and the commands for performing the action within the "misc" table are in the second line. Please note that you will still need to edit the binary file and the second table but you use the format for the second table change.
 
Back
Top