How to manually upgrade/downgrade CyberPanel!

Hello !

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
wget http://cyberpanel.net/CyberPanel.1.6.4.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/settings.py /usr/local/settings.py

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/settings.py /usr/local/CyberCP/CyberCP/

Apply database migrations

cd /usr/local/CyberCP
python manage.py makemigrations
python manage.py 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.

Regards

Comments

Sign In or Register to comment.
Support CyberPanel CyberPanel Discord

Howdy, Stranger!

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