How to install cPanel and WHM?

cPanel is the #1 Hosting Control Panel in the web hosting industry and you can easily install it. It gives you a user interface to manage your server and hosting account(s).


What are the requirements?
- Fresh installation of CentOS 6, 7, AlamLinux 8+, CloudLinux or some other operating system installed on your VPS/Server.


How to install cPanel/WHM?
1. Log in to your VPS/Server via the SSH Client.

2. Copy the following command and paste it in the SSH Console:

cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest

Then, press enter.



3. The cPanel/WHM installation has begun. It can take up to 45 minutes.





4. Once the installation is complete, the console will display a message like "the cPanel Installation has been completed".





5. Open WHM https://your-server-IP-here:2087
6. Enter the username "root" (without quota) in the username field.
7. Enter your root password in the password field.
8. Click the "Log in" button.







cPanel/WHM Setup Wizard:

Step 1: Read and accept the agreement.





Step 2: Setup Networking:
- Server Contact Email Address: Enter your email address. You will receive cPanel related alert on your email.
- Hostname: If the hostname is okay, leave it as it is.
- Resolvers: Enter 8.8.8.8 in primary and also enter 8.8.4.4 in secondary.


Scroll down to the end of page and click the "Save & Go to Step 3" button.





Step 3: If you have more than one IP and the IPs are not listed, add your new IP address and then click the "Go to Step 4" button. Alternatively, if you do not have any additional IPs, simply click on "Go to Step 4".






Step 4:
1. Under "Nameserver Configuration" (also known as Nameserver Selection in WHM), you can choose a Nameserver program like Bind, PowerDNS, etc., or leave it as it is.

2. Under "Choose which nameservers domains on this server will use", enter your domain nameserver such as ns1.example.com and ns2.example.com (replace example.com with your domain name).





3. Under "Configure Address Records for Nameservers & Hostname", mark the option "Configure Address Records for Nameservers", enter your IP address in IPv4 for NS1 and NS2, and should you have an IPv6, enter it into the IPv6 field as well.

Tick the option "Add "A Entries" for Hostname" and then click on "Save & Go to Step 5".





Step 5: You can leave all the options as they are or change them should you want it. Then, click on "Save & Go to Step 6".





Step 6 - (Final Step): Tick "Use file system quotas" and click the "Finish Setup Wizard" button.





Congratulations, the cPanel/WHM Installation is complete and now you will need to compile Easy Apache, change settings, install a firewall (CSF), and so on.

  • 0 gebruikers vonden dit artikel nuttig
Was dit antwoord nuttig?