• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Upgrade to Plesk 12 said: hostname: Unknown host

Azurel

Silver Pleskian
I use "CentOS 6.6 (Final)" with panel version 11.5.30 Update #48 and get this error for upgrade to 12.0:
Parallels Panel pre-upgrade check...
hostname: Unknown host
FATAL_ERROR: Command: hostname -f returns:
Hostname is not defined and configured. Unable to get hostname. Server should have properly configured hostname and it should be resolved locally.

I have in /etc/sysconfig/network:

HOSTNAME="mail"
NETWORKING=yes
NETWORKING_IPV6="yes"
IPV6_DEFAULTDEV="eth0"

I'm a customer from Hosteurope and in HE control panel of server I find:
HOSTNAME = "mail.mydomain.tld"
The same for "Reverse-DNS" in IPv4 and IPv6.

Can anybody tell me what is wrong?
 
Hello Azurel,
You can set the hostname of your server with:
Code:
echo host123.your-domain.com > /etc/hostname
/etc/init.d/hostname.sh start
 
Thanks, but the file /etc/init.d/hostname.sh not exists on my centOS.
/etc/hostname not exists too. I don't think it should create a new empty file?
 
It's OK for /etc/init.d/hostname.sh not to exist on CentOS, however /etc/hostname should exist.
Never the less, you can create it and in it add your host name ..
Code:
vim /etc/hostname

And add the content such as
Code:
host123.your-domain.com

Remember your hostname should resolve to the IP address of that very server.
 
Back
Top