HOW TO FIX-“Your hostname is invalid” ERROR while cPanel installation [FIXED] Serverhosthub – The Hosting Platform Made For You – Go Online With Hosting serverhosthub | free hosting | Linux shared hosting | Hosting | Free domain | Life time Free ssl certificate | Chepest web hosting | Low price hosting | Domain Transfer

Most users were greeted with an invalid hostname error when trying to install cPanel/WHM on CentOS 7.

Below is the error message:

Your hostname is invalid. Update the hostname to a fully qualified domain name and rerun the installer.

So to solve this you need PuTTy . You have to set your custom hostname in your server by running this command via


[Note:Just make sure you point the correct hostname of your server]

We hope this article was clear enough to explain to you how to fix invalid hostname error during cpanel installation.

If you have any questions or queries, feel free to leave them in the comment section below.

Cheap Linux Hosting|Best Web Hosting

Thanks for reading!!!