Table of Contents
CyberPanel is growing and constantly releasing new upgraded versions to integrate more useful features. However, for users using the old version, if they want to use the new features, they need to upgrade to the latest version of CyberPanel.
In this article, we will upgrade CyberPanel to the latest version (at the time you upgrade) simply with just one command line.
Check the current version of CyberPanel
First of all, you can check the latest version of Cyber Panel at the homepage. You can see the current version in use by going to the Version Management link.
This example currently uses CyberPanel version 2.1 and you can upgrade to the latest version 2.3 at this time.
Upgrade the CyberPanel
1. Log in to your server via SSH as root.
sudo su -
[bonben@vps01 ~]$ sudo su -
[root@vps01 ~]# whoami
root
[root@vps01 ~]#
2. After SSH into the VPS, copy and paste the commands below into the VPS.
sudo su - -c "sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)"
When running this command, the system will automatically upgrade to the latest version, the upgrade process will take about 10-15 minutes, depending on each VPS. And when the upgrade is complete, you will receive a CyberPanel Upgraded message as shown.
Now go to the CyberPanel admin page => click Version Management to see the new version.
Upgrade the CyberPanel using CyberPanel Ptility
sudo su - -c cyberpanel_utility
#Output
Checking root privileges...
You are runing as root...
Checking Cyberpanel Utility update...
Updating CyberPanel Utility Script...
CyberPanel Utility update compelted...
System: Ubuntu 20 detected...
sudo su - -c cyberpanel_utility
#Output
CyberPanel Utility Tools (beta)
1. Upgrade CyberPanel.
2. Addons.
3. WatchDog (beta)
4. Frequently Asked Question (FAQ)
5. Exit.
Please enter the number[1-5]: 1
#Output
Checking server...
CyberPanel upgrading...
Fetching latest data from CyberPanel server...
This may take few seconds...
Checking root privileges...
You are running as root...
Checking server location...
System: Ubuntu 20 detected...
Press the Enter key to continue with latest version, or enter specific version such as: 1.9.4 , 1.9.5 ...etc
If nothing is input in 10 seconds, script will proceed with the latest stable version.
Please press the Enter key or specify a version number, or wait for 10 seconds:
...
WatchDog for PostFix has been started...
Checking Pure-FTPd...
WatchDog for Pure-FTPd is gone , restarting...
WatchDog for Pure-FTPd has been started...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 14060 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
###################################################################
CyberPanel Upgraded
###################################################################
Upgrading CyberPanel to a specific version
Replace with actual branch name from Github, branching schemes are described in our contribution docs
wget https://raw.githubusercontent.com/usmannasir/cyberpanel/<branch name>/cyberpanel_upgrade.sh
chmod +x cyberpanel_upgrade.sh
./cyberpanel_upgrade.sh
During the installation process, you will be prompted to specify the version to which you wish to upgrade. Please enter the desired version in the following format: 2.3.3 for stable releases, or 2.3.4-dev for the development branch. Replace “version” with the specific version you intend to upgrade to.