Question

error instal cpanel

Posted September 28, 2018 2k views
CentOSDigitalOcean

how f ix this error

2018-09-28 02:26:59 547 (ERROR): ********************* ERROR *********************
2018-09-28 02:26:59 548 (ERROR):
2018-09-28 02:26:59 549 (ERROR): Your hostname (centos-s-1vcpu-2gb-lon1-01) is invalid, and must be
2018-09-28 02:26:59 550 (ERROR): set to a fully qualified domain name before installing cPanel.
2018-09-28 02:26:59 551 (ERROR):
2018-09-28 02:26:59 552 (ERROR): A fully qualified domain name must contain two dots, and consists of two parts: the hostname and the domain name.
2018-09-28 02:26:59 553 (ERROR): You can update your hostname by running hostname your-hostname.example.com, then re-running the installer.
2018-09-28 02:26:59 555 (ERROR): ********************* ERROR *********************
2018-09-28 02:26:59 556 (FATAL): Exiting…
Removing /root/installer.lock.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
2 answers

You need to:

  1. Open the file /etc/sysconfig/network and set the HOSTNAME variable to a valid hostname (ex: server.yourdomain.tld)

  2. Run this command as well: hostname server.yourdomain.tld

Rerun the installer

Hello, bodyguardtanjungmas

You need a fully qualified domain name as your server hostname. Run this command in order to set the hostname

hostname host.domain.net

Also please make sure to check our existing tutorial on how to install cPanel:

https://www.digitalocean.com/community/tutorials/how-to-install-cpanel-on-a-virtual-server-running-centos-6

Regards,
Alex

by Etel Sverdlov
cPanel is a convenient application that allows users to administer servers through a GUI interface instead of the traditional command line. Although the installation for cPanel is relatively simple, the script does take several hours to run. Here's how to install cPanel on a virtual server running Centos 6