cPanel is a widely used control panel for server management. Keeping cPanel up-to-date is crucial for the security and performance of your server. In this guide, I'll walk you through the process of updating cPanel to the latest version using SSH.
First, you need to connect to your server via SSH where cPanel is installed. You can use a terminal (Linux/macOS) or an SSH client like PuTTY (Windows) to establish the connection.
Use the following command in the terminal or PuTTY to connect to your server:
ssh root@your_server_ip
Replace root@your_server_ip with your server's IP address. After entering the command, provide the root user's password to log in.
root@your_server_ip
To update cPanel to the latest version, you can use the upcp command. This command checks for the latest cPanel version and installs it.
upcp
Execute the following command in your SSH terminal:
/usr/local/cpanel/scripts/upcp
This command will begin the update process, which may take several minutes depending on your server's speed and the size of the updates.
Once the update process is complete, you should see a confirmation message in the terminal indicating that the update was successful. To verify the installed version of cPanel, you can use the following command:
cat /usr/local/cpanel/version
This command will display the current version number of cPanel installed on your server.
After the update is complete, it's important to ensure that your server and cPanel services are functioning correctly. Log into the WHM (Web Host Manager) panel and check the overall system status and the status of cPanel services.
Once logged into WHM, go to the Server Status section to check the status of services and ensure there are no issues.
Server Status
To ensure that cPanel stays up-to-date, you can configure automatic updates. This is particularly important for security patches and critical updates.
In the WHM panel:
Server Configuration
Update Preferences
RELEASE
CURRENT
In this guide, we covered how to update cPanel via SSH. Keeping cPanel up-to-date is essential for both security and performance. By following these steps, you can ensure that your server is running the latest version of cPanel.
If you encounter any issues, you can refer to the cPanel documentation or contact their support team for assistance.