WordPress Auto Installer Package Update?

Hi! I just started using cyberpanel and it’s pretty slick. I’m wondering anyone knows if there is a way to edit the WordPress auto installer package? I’d like it to include certain plugins (such as lscache). If you’ve done this or you can point me in the right direction, that would be extremely helpful. Thanks!

See these files:

This uses the wp cli to install these plugins.

        command = "wp plugin install litespeed-cache --allow-root --path=" + finalPath

So you would need to splice in additional commands into this file for your install and rebuild the cyberpanel cache so it sees the new code.

Updating and modding core files is similar to skin development:

The difference is you would use this to upgrade/update cache
wget -O /usr/local/CyberCP/upgrade.sh https://github.com/usmannasir/cyberpanel/blob/stable/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

I recommend backing up the original file before making changes on the server especially if it’s a production server. Python is very picky about indentation so make sure you’re following the formatting so you don’t get a Cyberpanel :8090 500 error due to this

Debugging in case you get errors.


Disable Debugging
sed -i ‘s|^DEBUG.*|DEBUG = False|g’ /usr/local/CyberCP/CyberCP/settings.py && service lscpd restart

Enable Debugging
sed -i ‘s|^DEBUG.*|DEBUG = True|g’ /usr/local/CyberCP/CyberCP/settings.py && service lscpd restart

Cyberpanel Control Panel errorlog

Cyberpanel Control Panel stderr.log

Cyberpanel Control Panel logs and rotated logs.

Hopefully, that helps you on your quest. Please make sure to submit any code you think might also help cyberpanel as a pull request on Github so we can incorporate it for all to benefit.

If modding that file is a little scary you could probably build a hook upon install that fires off the raw wp cli install command as the ssh user after install.

Realized your needs make for a good feature request and submitted one regarding this here: