SOLVED FQDN problem when install cpanel / whm trial

guarez

Active Member
Jul 27, 2020
26
4
3
Chile
cPanel Access Level
Root Administrator
Hello, I am trying to install the trial version of cpanel, but when trying to do it I get the following error, which I try to fix according to the indication that appears by typing

hostname www.web123.com


But then I get another error where it states that it cannot have www. How do i solve this?

2020-12-20 09:31:39 718 [979] ( INFO): Validating that the system hostname ('web123.com') is a FQDN...
2020-12-20 09:31:39 724 [979] (ERROR):
2020-12-20 09:31:39 725 [979] (ERROR): ********************* ERROR *********************
2020-12-20 09:31:39 726 [979] (ERROR):
2020-12-20 09:31:39 727 [979] (ERROR): Your hostname (web123.com) is invalid, and must be
2020-12-20 09:31:39 728 [979] (ERROR): set to a fully qualified domain name before installing cPanel.
2020-12-20 09:31:39 729 [979] (ERROR):
2020-12-20 09:31:39 730 [979] (ERROR): A fully qualified domain name must contain two dots, and consists of two parts: the hostname and the domain name.
2020-12-20 09:31:39 731 [979] (ERROR): You can update your hostname by running `hostname your-hostname.example.com`, then re-running the installer.
2020-12-20 09:31:39 733 [979] (ERROR): ********************* ERROR *********************
2020-12-20 09:31:39 734 [979] (FATAL): Exiting...


2020-12-20 09:32:39 719 [1110] (FATAL): The installation process detected the following hostname: www.web123.com
Hostnames cannot start with www! Use a valid hostname.
 
Last edited by a moderator:

kodeslogic

Well-Known Member
Apr 26, 2020
179
54
103
IN
cPanel Access Level
Root Administrator
Recommended hostnames are example01.yourdomain.com, server01.yourdomain.com, host01.yourdomain.com, anything.yourdomain.com.

So in your case, you can set hostname as server.web123.com OR host.web123.com as a fully qualified domain name.

For CentOS 7 use the below command to set the hostname.
#hostnamectl set-hostname server.web123.com

Once you set a valid hostname installation should be good.
 
  • Like
Reactions: cPRex

ffeingol

Well-Known Member
PartnerNOC
Nov 9, 2001
532
160
343
cPanel Access Level
DataCenter Provider
Just to add in, you can't use the 'www' host name as it does not want the host name to be a site that you might host. Hopefully that makes sense.
 
  • Like
Reactions: cPRex