Change default template Cyberpanel

Hey! I would like to know if it’s possible to change the default template of CyberPanel. Tbh I only want to know the path so I can modify it.

Nice share the theme once you done…

@tnt CyberPanel follows Django template engine structure. You need to have slight understanding of how that works.

For example, the base template is at https://github.com/usmannasir/cyberpanel/tree/1.8.0/baseTemplate/templates/baseTemplate/

On the production server its mapped to /usr/local/CyberCP/baseTemplate/templates/baseTemplate/index.html

Similarly every application there have a template and corresponding template files, and same with static files.

@usmannasir said:
@tnt CyberPanel follows Django template engine structure. You need to have slight understanding of how that works.

For example, the base template is at https://github.com/usmannasir/cyberpanel/tree/1.8.0/baseTemplate/templates/baseTemplate/

On the production server its mapped to /usr/local/CyberCP/baseTemplate/templates/baseTemplate/index.html

Similarly every application there have a template and corresponding template files, and same with static files.

I think you didn’t understood me, I want to change the default template when a website is hosted. This is what I want to change: Imgur: The magic of the Internet

Sorry, that is easy. Its copied from /usr/local/CyberCP/index.html

@usmannasir said:
Sorry, that is easy. Its copied from /usr/local/CyberCP/index.html

Thanks! Btw, I think I found a bug. All FTP users has access to / directory, I’m able to open & edit some files.

Enable chroot, it happens in some old installations of Ubuntu, if you are on CentOS we need to check.

@CyberPanel said:
Enable chroot, it happens in some old installations of Ubuntu, if you are on CentOS we need to check.

I installed Cyberpanel yesterday and it has the latest Ubuntu version (18.04).

@tnt CyberPanel follows Django template engine structure. You need to have slight understanding of how that works.

For example, the base template is at https://github.com/usmannasir/cyberpanel/tree/1.8.0/baseTemplate/templates/baseTemplate/

On the production server its mapped to /usr/local/CyberCP/baseTemplate/templates/baseTemplate/index.html

Similarly every application there have a template and corresponding template files, and same with static files.

hi usman
i change index.html but doesn’t change any thing on my live serve panel
should i compile ?
i am a PHP developer and don’t know Django
please give me a hint
thanks

upgrade/update cache
wget -O /usr/local/CyberCP/upgrade.sh https://github.com/usmannasir/cyberpanel/raw/1.8.0/upgrade.sh
chmod +x /usr/local/CyberCP/upgrade.sh

Then run this and give it a few minutes to clear cache and restart cyberpanel daemon
bash /usr/local/CyberCP/upgrade.sh