Error Message

cPanel Installation Error – Invalid Hostname

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.


Fix cPanel cpmove “Cannot restore. That user already exists on this system”

I’m trying to restore user cpmove backup file in cPanel/WHM system but the following error message come out

Cannot restore. That user already exists on this system

The first step is to check whether the similar username already exist. If it is, you have to terminate the similar account.

If you have the same problem as me where the similar username does not exist or already terminated, but the same error came out, you need to force restore.

To do this, you need to log-in to SSH as root & issue the following command

/scripts/restorepkg --force [username]

Make sure the cpmove file already in /home directory.