Hi,
Before installing Enhance CP, I always do some basic setup on my servers, like adding a SUDO user, setup hostname, etc…
The /etc/hosts
file default content on my server, came as:
127.0.0.1 localhost
127.0.1.1 hostname.mydomain.com
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
And I change it to:
127.0.0.1 localhost.localdomain localhost
111.111.11.11 cp.mydomain.com cp
# ::1 localhost ip6-localhost ip6-loopback
# ff02::1 ip6-allnodes
# ff02::2 ip6-allrouters
As you can see, I made some changes. Added my own server static IP (111.111.11.11
) instead of 127.0.1.1
, commented the IPv6 values, because this server does not has IPv6, etc... I think this is the correct way. Tell me if I'm wrong.
The issue is when I start the Enhance CP installation, it shows a warning saying that the CP subdomain (cp.mydomain.com
) is already present in /etc/hosts
and that I should let Enhance comment the lines, to prevent connection issues.
The thing is that my server hostname and CP url are the same (cp.mydomain.com
).
Should I do that, I mean, let Enhance comment the lines? Should I not edit the default /etc/hosts
?
I have setup the /etc/hosts
as I do in all my other servers and as it is advise for example on the Linode official docs: https://techdocs.akamai.com/cloud-computing/docs/set-up-and-secure-a-compute-instance#configure-a-custom-hostname
Anyone, any ideas? Please advice. Thanks