Hello!
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 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
I encountered this error when using your method, "ImportError: No module named filemanager_app"
If you find
Please remove this line altogether.
cannot send and received email
Can you explain your problem in more details?
Hello,
While
python manage.py makemigrations
finishes without a problem, when I runpython manage.py migrate
I get the following error:Any idea what I can do?
What version was you on?
hope oneday there will be an autoinstaller script, just like phpBB's autoupgrade.
We definitely need an autoinstaller. How to know the newer version available to download? 1.6.1 , 1.6.1.1 , etc
Simple enought.
Log on to your admin portal, and from the top left you will find
Version Management
directly underOverview
section. From there, you can tell if your CP is the latest one.This did not work well. I believe I installed the new version 1.6.1 because i see mod security but for me it says current version is still 1.6.0. Why ?
If you see ModSecurity your upgrade went fine, will have the version numbering fixed.
so its a bug then ?
I guess upgrade didnt go well. because I enable mod security and it does not stay enabled.
ModSecurity installation went successfully?
Its there I can see it but when I enable it it then stays off again. Like if its not saving.
Is
wget http://cyberpanel.net/CyberPanel.1.6.0.tar.gz? always the latest version? If so, it would be great if changed to
"wget http://cyberpanel.net/latest.tar.gz", I am currently using
wget http://cyberpanel.net/CyberPanel.1.6.2.tar.gz in case the other one is not the latest
Same issue here!
Latest version now is:
And after doing the new upgrade to 1.6.2 the version still says 1.6.0 I do see the new rules. I also see Mod security not working. It does not stay enabled.
YES! This is a very easy method for updating. Can easily be done via an automatic script if this is the file format.
Exactly! Implementing a autoupgrade on the panel with this method should not be a hard task!
still Cyberpanel 1.6.1 after upgfrade to 1.6.3
https://prnt.sc/j8uvbz
sorry this only typo version i think, user dashboard already change after manual update
I have this error:
django.db.utils.OperationalError: (1045, "Access denied for user 'cyberpanel'@'localhost' (using password: YES)")
please help!!
> I have this error:
> django.db.utils.OperationalError: (1045, "Access denied for user 'cyberpanel'@'localhost' (using password: YES)")
>
> please help!!
Did you backup your settings file correctly?
I follow the instructions
Right, please create a ticket.
File "manage.py", line 22, in
execute_from_command_line(sys.argv)
File "/usr/lib64/python2.7/site-packages/django/core/management/__init__.py", line 363, in execute_from_command_line
utility.execute()
File "/usr/lib64/python2.7/site-packages/django/core/management/__init__.py", line 337, in execute
django.setup()
File "/usr/lib64/python2.7/site-packages/django/__init__.py", line 27, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/lib64/python2.7/site-packages/django/apps/registry.py", line 85, in populate
app_config = AppConfig.create(entry)
File "/usr/lib64/python2.7/site-packages/django/apps/config.py", line 94, in create
module = import_module(entry)
File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
ImportError: No module named pluginHolder