It is important to keep your CyberPanel server up to date with the latest features, security patches and performance improvements. In this article, we will see how to update the CyberPanel server.
Check the current version of CyberPanel
Before upgrading, it is important to know the current version of CyberPanel installed on your server.
To do so, log into your CyberPanel interface. Then go to the Version Management section. The current version of CyberPanel will be displayed at the top right of the screen.
Connect to the server via SSH
To update the CyberPanel server, you must connect to your server via SSH as root or as a user with sudo privileges.
Use an SSH client such as PuTTY or Terminal to connect to your server.
Update the CyberPanel server
Once connected to your server via SSH. Run the following command to update the CyberPanel installation package:
sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)
If you are not logged in as root, try this:
sudo su - -c "sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)"
The upgrade script will check for available updates and install the latest version of CyberPanel.
The process may take a few minutes, so please wait!
Once the upgrade is complete, the script will inform you that the upgrade is finished. You can now disconnect from the SSH session.
Once you have completed the update, log back into the CyberPanel interface and check the version displayed. If the update was successful, the new version will be displayed.
Now you have finished updating the CyberPanel server.
Upgrading CyberPanel server is a crucial step in maintaining the security and performance of your web hosting.
Be sure to check regularly for available updates and install them to keep your server running smoothly.