![]() |
|
Guide CyberPanel WordPress Staging (Clone): Why It Came Out Empty and How We Fixed It - 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 Websites & OpenLiteSpeed Guides (https://adminsforum.com/Forum-cyberpanel-websites-openlitespeed-guides) +----- Thread: Guide CyberPanel WordPress Staging (Clone): Why It Came Out Empty and How We Fixed It (/Thread-guide-cyberpanel-wordpress-staging-clone-why-it-came-out-empty-and-how-we-fixed-it) |
CyberPanel WordPress Staging (Clone): Why It Came Out Empty and How We Fixed It - JAY - 10-26-2026 CyberPanel WordPress Staging (Clone): Why It Came Out Empty and How We Fixed It A staging site is a private copy of your live WordPress where you can test updates, a new theme or a plugin before touching the real site. CyberPanel has a one-click Clone/Staging button for this. We used it on our test WordPress ( Code: cyber.adminslab.comBefore you start
Step 1: Make sure /usr/bin/wp exists CyberPanel's staging code calls WP-CLI at the fixed path Code: /usr/bin/wpCode: /usr/local/bin/wpCode: ls -l /usr/bin/wp /usr/local/bin/wpCode: ls: cannot access '/usr/bin/wp': No such file or directoryCode: wpCode: ln -s /usr/local/bin/wp /usr/bin/wpStep 2: Start the clone Open your website in Websites > List Websites > Manage and click Clone/Staging. The page asks for one thing, the staging domain: The staging site is created as a child domain of the live site, in its own folder ( Code: /home/cyber.adminslab.com/staging.cyber.adminslab.comA minute later the panel reported success. On our first try, that message was wrong: Our first run (before Step 1): "Successfully Installed", but the staging folder held only CyberPanel's Code: index.htmlCode: /home/cyberpanel/error-logs.txtCode: du -sh /home/yourdomain.com/staging.yourdomain.com
ls /home/yourdomain.com/staging.yourdomain.comCode: cyberpanel deleteChild --childDomain staging.yourdomain.com
rm -r /home/yourdomain.com/staging.yourdomain.comCode: wp-config.phpStep 3: Fix the four leftovers Run these as the site user from the staging folder. Ours: Code: cd /home/cyber.adminslab.com/staging.cyber.adminslab.com
S='sudo -u cyber2602 wp'1. Stale object cache: WordPress still thinks it's the live site. Code: $S option get siteurlCode: https://cyber.adminslab.comCode: $S db query "SELECT option_name,option_value FROM wp_options WHERE option_name IN ('siteurl','home')"Code: http://staging.cyber.adminslab.comCode: $S litespeed-option set object-db_id 3
$S cache flushCode: option get siteurlCode: wp cache flush2. http instead of https. The staging database had Code: http://staging...Code: $S search-replace 'http://staging.cyber.adminslab.com' 'https://staging.cyber.adminslab.com' --all-tables --report-changed-only3. Google can index your staging site. Code: blog_publicCode: 1Code: $S option update blog_public 0Code: $S litespeed-purge allCode: <meta name='robots' content='noindex, nofollow'>4. CyberPanel's index.html. The staging folder still had the "CyberPanel Installed" Code: index.htmlCode: index.phpCode: rm index.htmlAfter these fixes, the staging copy was correct: Staging now answered with its own https address, Code: blog_public 0Code: 3Code: https://cyber.adminslab.comCode: blog_public 1Things to know
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. |