A quick guide to installing cPanel onto your server.
Firstly, check that you have a fresh install of your chosen operating system (CentOS is recommended) and that SELinux is disabled (How do you disable SELinux? find out below).
Connect to your server through the root SSH login.
Edit the file at directory “/etc/selinux/config“, if you are using nano on your server, you can use the following command to open the file for editing through SSH:
- nano /etc/selinux/config
Save the file and continue by entering the following commands:
- cd /home
- wget http://layer1.cpanel.net/latest
- sh latest
Problems during installation?
A common problem which occurs near the beginning of the cPanel installation, is an incorrect hostname.
cPanel requires that your system is setup with a full hostname (e.g. server1.mydomain.com NOT JUST server1).
To fix this hostname problem, simply run the following command:
- hostname yourhostnamehere
(Replace “yourhostnamehere” with your full required hostname as shown in the example above)
Once setup has successfully completed you can access your WHM at http://yourip