• Skip to primary navigation
  • Skip to main content
  • Skip to footer

WPJohnny

WordPress Performance Guides and Reviews

  • Start a WordPress site
  • Hosting
  • Themes
  • Plugins
  • Blogging
  • Marketing

CyberPanel server commands and important directories

WordPress hosting Nov 4, 2019 by Johnny

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

Share this post:

Share on FacebookShare on X (Twitter)Share on LinkedInShare on WhatsAppShare on EmailShare on SMS

Read all my posts on WordPress hosting

About Johnny

Right on the edge of WordPress development! 10+ years of WordPress design, development, hosting, speed optimization, product advisor, marketing, monetization. I do all that.

More WordPress Guides

Cache warming with Optimus Cache Prime (OCP)

WordPress security plugins SUCK!

The magic of custom Gutenberg blocks

BEST PLUGINS for WordPress developers & reviewers

Website Design Workflow Tips – Avoid Endless Revisions

Swift Performance Lite – WordPress Cache Speed Plugin REVIEW

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Footer

More links

  • Gadget reviews
  • Try my free WPJ plugins
  • Join the WPJ FB Group
  • WPJ YouTube & newsletter
  • Become a WPJ Affiliate

Popular Reviews

  • Best WordPress Hosting
  • Best WordPress Themes
  • Best WordPress Plugins
  • Best WordPress Cache Plugins

Services

  • Speed optimization
  • Speed optimization courses
  • WordPress hosting
  • Hire me or other experts
  • Client login

About Johnny

10+ years of WordPress design, development, hosting, speed optimization, marketing.
Contact me.

newsletter block

Copyright 2025 | WordPress guides by Johnny Nguyen

Click to Copy