- Points
- 178
To install cPanel on your VPS, follow these steps. cPanel is a popular web hosting control panel that simplifies the management of web servers. The installation process assumes you have a fresh installation of a compatible Linux distribution (such as CentOS, AlmaLinux, or RHEL) and that you have root or sudo access to the VPS.
1. Prepare Your VPS
- Ensure a Fresh OS Installation:
- It's best to start with a clean installation of a supported operating system. cPanel is compatible with CentOS 7/8, AlmaLinux 8, and RHEL 8.
- Update Your System:
- Before installing cPanel, make sure your system is up to date:
Code:yum update -y
- Before installing cPanel, make sure your system is up to date:
- Set the Hostname (Optional):
- Set a proper hostname for your server. For example:
Code:hostnamectl set-hostname server.example.com
- Set a proper hostname for your server. For example:
2. Install Required Dependencies
- Install Required Packages:
- Ensure you have the required packages installed. For CentOS/AlmaLinux/RHEL, you may need wget and perl:
Code:yum install -y wget perl
- Ensure you have the required packages installed. For CentOS/AlmaLinux/RHEL, you may need wget and perl:
3. Download and Install cPanel
- Download the cPanel Installation Script:
- Get the latest cPanel installation script using wget or curl:
Code:cd /home wget -N https://securedownloads.cpanel.net/latest
or
Code:cd /home curl -o latest -L https://securedownloads.cpanel.net/latest
- Get the latest cPanel installation script using wget or curl:
- Run the Installation Script:
- Start the installation process by running the script:
Code:sh latest
- This script will handle the installation of cPanel & WHM. The installation process can take a significant amount of time, often between 30 minutes to an hour, depending on your server's resources and network speed.
- Start the installation process by running the script:
4. Complete the Initial Setup
- Access the cPanel/WHM Setup Wizard:
- Once the installation is complete, you can access the cPanel/WHM interface via your web browser. Use the IP address of your server or your domain name (if DNS is configured) and the port 2087:
Code:https://your-server-ip:2087
- Once the installation is complete, you can access the cPanel/WHM interface via your web browser. Use the IP address of your server or your domain name (if DNS is configured) and the port 2087:
- Log in to WHM:
- Use root as the username and the root password for your VPS to log in to WHM (WebHost Manager).
- Follow the Setup Wizard:
- The WHM setup wizard will guide you through the initial configuration steps, including:
- License Agreement: Accept the cPanel license agreement.
- Server Setup: Configure basic server settings like contact information and nameservers.
- Networking Setup: Set up networking configurations, including IP addresses.
- Services Setup: Configure various services such as Apache, MySQL, and Exim.
- Create Initial Admin Account: Create the initial cPanel account.
- The WHM setup wizard will guide you through the initial configuration steps, including:
5. Post-Installation Steps
- Secure Your Server:
- Ensure that your server is secure by configuring firewall rules, disabling unused services, and regularly updating your software.
- Configure DNS:
- If your server is going to be hosting websites, configure DNS settings to point your domain names to the server’s IP addresses.
- Install SSL Certificates:
- You may want to install SSL certificates for your server to secure web traffic.
- Back Up Your Configuration:
- Regularly back up your cPanel configurations and data to avoid data loss.
Additional Resources
- cPanel Cheap License: LicenseDash - $4/mo VPS and $6/mo Dedicated Server
Summary
- Prepare the VPS: Update your system and set a hostname.
- Install Dependencies: Ensure required packages are installed.
- Download and Install: Use the cPanel installation script.
- Complete Setup: Access the WHM setup wizard and configure initial settings.
- Post-Installation: Secure your server and configure DNS and SSL.