How to manually upgrade/downgrade CyberPanel!

edited March 5 in Tutorials

Hello !

In case you want to manually upgrade/downgrade CyberPanel, here is a small guide.

Core of CyberPanel code is located at /usr/local/CyberCP

You can manually download any version from the main website. Using following commands:

cd /usr/local rm CyberPanel.1.6.0.tar.gz wget

At the time of this writing 1.6.0 is the latest release. You can replace the version number with the version you want to install.

Make a copy of your configuration file.

cp /usr/local/CyberCP/CyberCP/ /usr/local/

Now remove all core files

rm -rf /usr/local/CyberCP

Extract the files from latest version

cd /usr/local tar zxf CyberPanel.1.6.0.tar.gz

Copy your settings file

cp /usr/local/ /usr/local/CyberCP/CyberCP/

Apply database migrations

cd /usr/local/CyberCP python makemigrations python migrate

Note: If this step fails, you can continue to next steps.

If migrations fails to apply, you can read migrations documentation here.

Move static files:

rm -rf /usr/local/lscp/cyberpanel/static mv /usr/local/CyberCP/static /usr/local/lscp/cyberpanel

Finally, restart gunicorn to make your new version live

systemctl restart gunicorn.socket

If you run into any errors, please post below.



Sign In or Register to comment.
CyberPanel Discord

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!