How to manually upgrade/downgrade CyberPanel! — CyberPanel - WebHosting Control Panel for OpenLiteSpeed

How to manually upgrade/downgrade CyberPanel!

edited August 2018 in Tutorials


Note: This article is deprecated.

You can also follow the upgrade guide.

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

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.4.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

Install tldextract:

pip install tldextract

Copy File manager files:

rm -rf /usr/local/lsws/Example/html/FileManager
mv /usr/local/CyberCP/install/FileManager /usr/local/lsws/Example/html

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!