WordPress
On this page
Run WordPress on PHP-FPM behind Caddy with automatic HTTPS and a MySQL database. Crabsmith downloads WordPress automatically on the first deploy—no Git repository required unless you version a custom theme or plugin.
Required services
On your server's Services tab, install Caddy, PHP, and MySQL.
1. Create a MySQL database
Open your server's Databases tab and click New database. Name it (for example wordpress), leave Create a user with full access checked, and copy the generated password before clicking Create.
2. Create the site
- Open your server's Sites tab, click New site, and choose WordPress.
- Enter your domain (or Free domain). Choose No repository under Source (or select your repository if you keep a custom theme/plugin in Git).
- Make sure Deploy after creating is checked (it defaults off for No repository, and the first deploy is what downloads WordPress), then click Create site.
The default WordPress deploy script downloads WordPress once (if wp-load.php isn't present yet) and reloads PHP-FPM:
if [ ! -f wp-load.php ]; then
curl -fsSL https://wordpress.org/latest.tar.gz | tar -xz --strip-components=1
fi
sudo systemctl reload "$PHP_FPM"If you connected a Git repo, your tracked files under wp-content deploy cleanly without overwriting WordPress core files.
3. Finish the WordPress installer
Visit your domain in a browser to launch WordPress's setup wizard:
- Choose your language and enter the database name, username, and password from step 1, with Database Host set to
127.0.0.1. - Click Run the installation, then set your site title and WordPress admin account.
Recommended production tweaks
- Replace WP-Cron with a real schedule: add
define('DISABLE_WP_CRON', true);towp-config.php, then create a Schedule under the site's Processes tab running every 5 minutes (*/5 * * * *):php wp-cron.php - Larger media uploads: open your server's Services → PHP → Config and increase
upload_max_filesizeandpost_max_size(see Config). - Updates: update WordPress core, themes, and plugins directly from WordPress's admin dashboard as usual.