I attempt to install cPanel/WHM on CentOS 7 but was greet with an invalid hostname error. I never encounter this error before although I do many times cPanel/WHM installation.
Below is the error message.
Your hostname is invalid. Update the hostname to a fully qualified domain name and rerun the installer.
My first attempt to solve this is by changing hostname in network configuration file. Seem strange but the hostname configuration already correct.
Second attempt is by issuing the following command
hostname host.domain.net
I try to reinstall cPanel/WHM & it works!. Make sure you change host.domain.net to your preferred FQDN.