# Installing cPanel/WHM on CentOS 7

Source: <https://beta.dedicated.com.tr/en/kb/installing-cpanel-whm-on-centos-7>  
Last updated: 2026-11-28

Follow these steps to install cPanel/WHM on CentOS 7.

1. Install updates:

   ```bash
   yum update -y
   ```

2. Restart the system after updating:

   ```bash
   reboot
   ```

3. Install the required tools:

   ```bash
   yum install wget -y
   yum install nano -y
   ```

4. Set the hostname (example):

   ```bash
   hostname linux.dedicated.com.tr
   ```

5. Set up DNS:

   ```bash
   nano /etc/resolv.conf
   ```

   File contents (example):

   ```text
   # Generated by NetworkManager
   search dedicated.com.tr
   nameserver 8.8.8.8
   nameserver 8.8.4.4
   ```

6. Download and run the cPanel installer:

   ```bash
   wget http://layer1.cpanel.net/latest
   sh latest
   ```
