A quicklist guide of useful server commands for CyberPanel web server control panel.
Installation (on CentOS):
yum update
,y
and [ENTER] key when prompted.- Change LS console pass with
cd /usr/local/lsws/admin/misc
and./admpass.sh
, and follow prompt. - Can follow my CyberPanel install guide if needed.
Need to upgrade CyberPanel? Follow the latest instructions.
Recommended configurations after installation:
- Go to CP security/firewall page, and open port 7080 for LS console.
- Get mysql root password with
cat /etc/cyberpanel/mysqlPassword
(required for logging into phpMyAdmin later). - Increase php.ini limits for PHP 7.0 (from CP > PHP > edit PHP configs).
- Change LS console pass with
cd /usr/local/lsws/admin/misc
and./admpass.sh
- Log into LS console and enable brotli, WP security throttle (if you have LS ent).
- Tweak your PHP and security settings as needed.
- Change SSH port setting from CP > Security > Secure SSH.
CyberPanel file/config locations:
- Changing server IP –
/etc/cyberpanel/machineIP
- Changing MySQL root password –
/etc/cyberpanel/machineIP
- SSL certifications –
/etc/letsencrypt/live
, then go into domain you want - Restore location (when importing backups) –
/home/backup
CyberPanel commands:
- Restart MariaDB –
Logs:
- Error logs –
cat /home/cyberpanel/error-logs.txt
(log files on CyberPanel) - Backup logs –
cd /usr/local/lscp/logs
- Cron schedules –
/etc/crontab
clear out unnecessary cronjobs eating up server resources (backups) - https://<IP Address>:8090/serverstatus/cyberCPMainLogFile
Backups:
- Manually running scheduled backups –
python /usr/local/CyberCP/plogical/backupScheduleLocal.py
, read this for more info - Cool script to upload CP backups to Google Drive
Leave a Reply