One WordPress core per version, shared.
wpcore keeps each WordPress version once, in a cores folder, and links your sites to it. Switch a site to another version in a second; its wp-content and wp-config.php stay its own.
curl -fsSL https://webtimeless.cloud/wpcore-manager.sh | sudo bashDownloads the newest release's wpcore, checks it against its checksum and offers sudo wpcore init, which creates /etc/wpcore.conf, its folders and tab completion.
wpcore at a glance.
One shared WordPress core per version, switched per site instead of copied into each one.
Shared, read-only cores
Each version lives once, in /var/www/wp-cores by default. A site's wp-admin, wp-includes and root files are links to it.
Switch in a second
sudo wpcore switch moves a site to another version and reloads PHP-FPM or Apache, so OPcache starts fresh.
Your files stay yours
wp-content and wp-config.php are always the site's own, never shared and never touched by wpcore.
WP-CLI for any site
wpcore wp <site> runs any WP-CLI command for a site, and every command has Bash tab completion.
Commands to start from.
Add a version
sudo wpcore add 6.8Link a site for the first time
sudo wpcore link local.spellbook.test 6.8Switch it to another version
sudo wpcore switch local.spellbook.test 6.7Cores and sites at a glance
wpcore statusWhat it needs
Linux with Bash 4 or newer, and sudo.
- wget and tar, to download and unpack WordPress
- systemctl, to reload Apache or PHP-FPM
- Optional: WP-CLI and PHP, for
wpcore wp
Good to know
What counts as a site?
Every folder in SITES_DIR whose name starts with SITE_PREFIX, which is local. by default. Both are set in /etc/wpcore.conf.
Can I remove a version a site still uses?
No. wpcore remove-core refuses while any site is linked to that version.
Does devmagic-panel use it?
Yes. The panel reads the same /etc/wpcore.conf and cores folder, so a core added from the panel or the terminal shows up in both.