![]() |
|
Guide Install WordPress on CyberPanel With LiteSpeed Cache (Free Way, WP-CLI) - Printable Version +- AdminsForum (https://adminsforum.com) +-- Forum: Free & open-source control panels (https://adminsforum.com/Forum-free-open-source-control-panels) +--- Forum: CyberPanel (https://adminsforum.com/Forum-cyberpanel) +---- Forum: CyberPanel Guides & Tutorials (https://adminsforum.com/Forum-cyberpanel-guides-tutorials) +----- Forum: CyberPanel WordPress & LSCache Guides (https://adminsforum.com/Forum-cyberpanel-wordpress-lscache-guides) +----- Thread: Guide Install WordPress on CyberPanel With LiteSpeed Cache (Free Way, WP-CLI) (/Thread-guide-install-wordpress-on-cyberpanel-with-litespeed-cache-free-way-wp-cli) |
Install WordPress on CyberPanel With LiteSpeed Cache (Free Way, WP-CLI) - JAY - 10-24-2026 Install WordPress on CyberPanel With LiteSpeed Cache (Free Way, WP-CLI) WordPress on OpenLiteSpeed with the LiteSpeed Cache plugin is one of the fastest setups you can run on a small VPS, and the main reason many people pick CyberPanel. Watch it: Part 6 of the CyberPanel course, WordPress with LiteSpeed Cache This is Part 6 of 10 in our free CyberPanel Full Course. The written steps below go into more detail. One surprise first: on our CyberPanel 3.0 server, the WordPress menu didn't open an installer. It opened the WordPress Manager pricing page (staging, backups, auto login and one-click install are sold as an add-on). You don't need it. This guide does the same job for free, in about five minutes, with WP-CLI, the official WordPress command line tool. We did every step below on our test site cyber.adminslab.com. What you need
Step 1: Create the database Open Databases & FTP > Create Database. Pick the website, type a short name and user, and click Generate for a strong password: CyberPanel adds a prefix to both names. On our site it became Code: cyber_wpCode: cyber_wpStep 2: Install WP-CLI (once per server) WP-CLI wasn't installed on our fresh CyberPanel server ( Code: wp: command not foundCode: curl -sLo /usr/local/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x /usr/local/bin/wp
wp --version --allow-rootCode: WP-CLI 2.12.0Step 3: Download WordPress as the site user Run WordPress commands as the website's own Linux user, never as root, so every file gets the right owner. Find the user name: Code: ls -la /home/cyber.adminslab.com/public_htmlCode: cyber2602Code: cd /home/cyber.adminslab.com/public_html
rm -f index.html
sudo -u cyber2602 wp core downloadCode: index.htmlStep 4: Create wp-config.php and install Type the database password without it landing in your shell history: Code: read -s -p "DB password: " P; echo
sudo -u cyber2602 wp config create --dbname=cyber_wp --dbuser=cyber_wp --dbpass="$P" --dbhost=localhostCode: read -s -p "WP admin password: " A; echo
sudo -u cyber2602 wp core install --url=https://cyber.adminslab.com --title="My Site" \
--admin_user=youradmin [email protected] --admin_password="$A" --skip-emailCode: Success: WordPress installed successfully.Code: --urlStep 5: Install LiteSpeed Cache Code: sudo -u cyber2602 wp plugin install litespeed-cache --activateCode: .htaccessCode: systemctl restart lswsStep 6: Check the cache really works Request the home page twice and look at the Code: x-litespeed-cacheCode: for i in 1 2; do curl -s -o /dev/null -D - https://cyber.adminslab.com/ | grep -i x-litespeed-cache:; done
After the install
Common problems
More CyberPanel guides
Tested on CyberPanel 3.0 (build 8, OpenLiteSpeed edition) on Ubuntu 24.04, October 2026. Menu names can change slightly between versions. |