Set hostname before or after installation?

zalocus

Active Member
Apr 30, 2017
31
0
6
Austria
cPanel Access Level
Reseller Owner
Hello,

I see manny video tutorials where the administrator set the hostname before Cpanel/WHM installation, is this the correct way? Or is this ok when i set it up durring the installation?

Thank you.
 

zalocus

Active Member
Apr 30, 2017
31
0
6
Austria
cPanel Access Level
Reseller Owner
when i set the Hostname with hostname ctl set-hostname"newhostname" it sets the hostname everywhere correct expect in cat /etc/hosts when i look there here shows me the old hostname under ip4 and ip6, is this normal? Or can i install it without havin trouble?

Thank you.
 

Terry Bogard

Registered
May 8, 2017
2
0
1
Cincinnati, OH
cPanel Access Level
Website Owner
cPanel is very particular about making sure that the server you are using has a (Fully Qualified Domain Name). On this basis, one should provide a valid hostname. However, skipping this step will certainly give you the following error.

· (ERROR): Your hostname () is not set properly. Please

· (ERROR): change your hostname to a fully qualified domain name,

· 463 (ERROR): and re-run this installer.

Although, you can fix this error with a very simple solution. If you already have a FQDN (Fully Qualified Domain Name ), you can type it in with the command:

· hostname your FQDN

Or else, if you want to continue with the cPanel installation but do still lack a hostname, what you can do is to insert a temporary one. Once cPanel is installed and configured, you will be able to change it to the right one at one of the very first setup pages.

· hostname host.example.com

Hope that helps you solve this issue.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,903
2,237
463
I used a temporary hostname, but when I tried to enter to IP/2082 i see a 404 Not Found error. Some one can help me?
Hello,

You must use a colon when accessing the port directly. For WHM, the URL format is:

https://IP:2087

For cPanel, the URL format is:

https://IP:2083

You can use the non-SSL URL with ports 2086 and 2082.

Thank you.
 

Marmasco

Registered
Jul 9, 2017
1
0
1
Zimbabwe
cPanel Access Level
Root Administrator
Should this hostname resolve to this IP before I start or it requires just the format of thisis.host.name even if it is either unregistered or pointing somewhere. I am also having a challenge installing cPanel here.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,903
2,237
463
Should this hostname resolve to this IP before I start or it requires just the format of thisis.host.name even if it is either unregistered or pointing somewhere. I am also having a challenge installing cPanel here.
It doesn't have to resolve to the IP address for the installation to proceed, but it's generally a good idea to point to the hostname to the IP address of the cPanel server as soon as possible to allow for the automatic installation of the free hostname SSL certificate, and to allow access to WHM over the server's hostname.

Thank you.