Introduction:
cPanel is a widely used web hosting control panel that simplifies the process of managing websites, domains, emails, and other server-related tasks. Installing cPanel on a new Virtual Private Server (VPS) enables you to efficiently manage your server and host multiple websites. This step-by-step guide will walk you through the process of installing cPanel on a fresh VPS server.
Prerequisites:
Before you begin, make sure you have the following:
- A VPS server with a fresh installation of Alma Linux or Rocky Linux or Ubuntu.
- Root access to the server.
- A valid cPanel license or license activation key.
Steps to Install cPanel on a New VPS Server:
Step 1: Connect to Your VPS Server
Using SSH, connect to your VPS server with the root user credentials. You can use Terminal on macOS or Linux, or an SSH client like PuTTY on Windows.
ssh root@your_server_ip
Step 2: Run cPanel Installation Script
Once connected to your server, download the cPanel installation script using the following command:
curl -o latest -L https://securedownloads.cpanel.net/latest
Then, execute the installation script:
sh latest
This script will begin the installation process and install all necessary dependencies.
Step 3: Configure Your Server
During the installation process, you will be prompted to configure your server. Follow the on-screen instructions carefully. You will need to agree to the license agreement, provide your contact email address, and choose whether to participate in the cPanel & WHM Product Improvement Program.
Step 4: Wait for Installation Completion
The installation process may take some time depending on your server's specifications. Once the installation is complete, you will see a message indicating that cPanel has been successfully installed.
Step 5: Access cPanel Web Interface
Once the installation is finished, you can access the cPanel web interface by navigating to the following URL in your web browser:
https://your_server_ip:2087
Replace "your_server_ip" with your actual server's IP address. You will be prompted to log in using your root user credentials.
Step 6: Complete Initial Setup
Upon logging in to the cPanel interface for the first time, you will be guided through the initial setup wizard. Follow the prompts to configure your server, set up your primary domain, and create your cPanel user account.
More information and details for custom configurations can be found on the cPanel website: Installation | cPanel & WHM Documentation