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.
Thanks for reading!!!