-
-
Notifications
You must be signed in to change notification settings - Fork 627
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Simple fix for CSF #1328
Comments
I am currently using a script which does this for me and also restores my csf configurated which is stored in a zip file. sh <(curl https://sajetekengineering.com/wp-content/uploads/cyberpanel/install_csf_cyberpanel.sh || wget -O - https://sajetekengineering.com/wp-content/uploads/cyberpanel/install_csf_cyberpanel.sh) The script will ask for the absolute path of my zip file, install csf and restore my configurations. |
I've submitted my findings to Configserver who will provide a fix for the issues. All fixes are added to the script. |
it is added, thanks alot @SaJeTek-Developer |
Hi @usmannasir can you also add the fix for the menu.
|
it is done, thank you |
Hi @usmannasir There was a mistype: Please change response to render:
|
Describe the bug
Cyberpanel has disabled csf as there is an issue with the csf Cyberpanel install. However the issue is quite minor and Cyberpanel can make a small adjustment to have it work instead of disabling it totally.
After upgrading to 2.3.7 and enabling Debugging, I manually installed csf in Cyberpanel which caused an error.
There are 2 issues with configserver:
/usr/local/CyberCP/configservercsf/apps.py
Solution
I know this is not your job to do but:
A simple sed would suffice and allow csf to load instead of totally disabling CSF.
These commands can run after installing CSF from the panel
sed -i "s/url(r'^configservercsf/path('configservercsf/g" /usr/local/CyberCP/CyberCP/urls.py
sed -i "s/from django.conf.urls import url/from django.urls import path/g" /usr/local/CyberCP/configservercsf/urls.py
sed -i "s/import signals/import configservercsf.signals/g" /usr/local/CyberCP/configservercsf/apps.py
sed -i "s/url(r'^$'/path(''/g" /usr/local/CyberCP/configservercsf/urls.py
sed -i "s|url(r'^iframe/$'|path('iframe/'|g" /usr/local/CyberCP/configservercsf/urls.py
`
Operating system:
Almalinux 8.10
Almalinux 9.4
Ubuntu 20.04
CyberPanel version:
2.3.7
The text was updated successfully, but these errors were encountered: