How to manually upgrade/downgrade CyberPanel!

edited December 2017 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
wget http://cyberpanel.net/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/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.0.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

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

Finally, restart gunicorn to make your new version live

systemctl restart gunicorn.socket

If you run into any errors, please post below.

Regards

Comments

  • I encountered this error when using your method, "ImportError: No module named filemanager_app"

  • /usr/local/CyberCP/settings.py

    If you find

    'filemanager_app',

    Please remove this line altogether.

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!