How to change the VPS or dedicated server hostname

If you like to change the hostname of your Linux VPS server or dedicated server you need a root access and SSH and command:

hostname host.domain.com

In case you are using some control panel like Plesk or cPanel you can change the server hostname easily inside the hosting control panel admin area.

There are problems sometimes if you are using cPanel as hosting control panel, and it will stop working if you change the linux server hostname. In this case you will need to resync the cPanel license with cPanel.net license server.

The following command should be run inside SSH as root:

/usr/local/cpanel/cpkeyclt

  • 50 Users Found This Useful
Was this answer helpful?

Related Articles

Buy web hosting with BTCe

Today, with all the advancements in technology, different types of web hosting have emerged in...

VNC with Gnome on Debian VPS

Inside VPS with root right first do:apt-get update apt-get upgrade Then install GNOME with...

Buy web hosting with Ukash

Webhosting With Ukash   What is webhosting?   A term utilized in the IT industry,...

cPanel update upcp is already running problem

cPanel uses a script called upcp to automatically update cPanel software. cPanel update script is...

Buy web hosting with ClickAndBuy

Web hosting with ClickandBuy Individuals and organizations can host their own websites as long...