webtimeless

Configuration

The settings in /etc/wpcore.conf: where cores and sites live, which folders count as sites, and the programs wpcore uses.

sudo wpcore init writes /etc/wpcore.conf. Edit it to match your machine before you add a core:

# /etc/wpcore.conf
CORES_DIR="/var/www/wp-cores"   # where the shared cores live
SITES_DIR="/var/www"            # where the site folders are
SITE_PREFIX="local."            # only folders starting with this are sites
WP_CLI="wp"                     # WP-CLI, by name or path
PHP="php"                       # the PHP that runs WP-CLI
APACHE_USER="www-data"          # who owns the core files
Key What it sets
CORES_DIR The shared, read-only cores, one folder per version
SITES_DIR The folder that holds the sites
SITE_PREFIX Which folders in it count as sites, local. by default
WP_CLI The WP-CLI that wpcore wp runs
PHP The PHP binary WP-CLI runs on
APACHE_USER The web server user, for file ownership

There is one /etc/wpcore.conf per machine. devmagic-panel reads it too, so keep a single config and a single cores folder for both.

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