You are currently viewing How to fix cPanel Install : Installation Error – Invalid Hostname

How to fix cPanel Install : Installation Error – Invalid Hostname

You can check hostname by inspecting the content of /etc/hostname file using the command:

cat /etc/hostname

In order to change or set a CentOS 7 machine hostname, use the hostnamectl command as shown in the below command excerpt.

hostnamectl set-hostname your-new-hostname

Use the following command to restart networking on your server to ensure that changes persist on restart:

/etc/init.d/network restart

Now try to install cPanel.

Jobair Alam Bipul

I'm Jobair Alam, a cPanel Certified WHM/cPanel server administrator and web hosting expert with over 10 years of experience in the industry.

Leave a Reply

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

HostArmada - Affordable Cloud SSD Web Hosting