webtimeless
WordPress core manager

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 bash

Downloads 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.

MIT licenseVersion 1.0.0Ubuntu and Debian
What it does

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.

Examples

Commands to start from.

Add a version

sudo wpcore add 6.8

Link a site for the first time

sudo wpcore link local.spellbook.test 6.8

Switch it to another version

sudo wpcore switch local.spellbook.test 6.7

Cores and sites at a glance

wpcore status
Requirements

What 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
Questions

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.

Type to search the docs, guides, comparisons and tool pages.