Black Friday: 40% off for life · BLACKFRIDAY40Claim →
crabsmith Get started
Browse documentation
← All documentation

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

  1. Open your server's Sites tab, click New site, and choose WordPress.
  2. Enter your domain (or Free domain). Choose No repository under Source (or select your repository if you keep a custom theme/plugin in Git).
  3. 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:

sh
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:

  1. Choose your language and enter the database name, username, and password from step 1, with Database Host set to 127.0.0.1.
  2. Click Run the installation, then set your site title and WordPress admin account.
  • Replace WP-Cron with a real schedule: add define('DISABLE_WP_CRON', true); to wp-config.php, then create a Schedule under the site's Processes tab running every 5 minutes (*/5 * * * *):
    sh
    php wp-cron.php
  • Larger media uploads: open your server's Services → PHP → Config and increase upload_max_filesize and post_max_size (see Config).
  • Updates: update WordPress core, themes, and plugins directly from WordPress's admin dashboard as usual.