Skip to content

WordPress Getting Started Guide

This tutorial gives an example of the DDEV-Live commands specific to WordPress. First you will need to set up your DDEV-Live account and connect to your GitHub acccount using the Getting Started Guide. DDEV-Live supports other PHP applications and CMSs such as TYPO3, Drupal, etc.

DDEV-Live default settings for WordPress

We give additional flags below to use if your project differs from these defaults.

  • Default WordPress version is WordPress 5.3.2.
  • Default docroot is the project root.
  • Default branch is master.
  • composer install will not run.

Add a WordPress site from your connected GitHub account

To create a site named mysite on DDEV-Live and import code from a connected GitHub account named ddev-demo with a repo named mysite using the default settings, run:

$ ddev-live create site wordpress mysite --github-repo ddev-demo/mysite

Use ddev-live describe site mysite to view info about your site.

WordPress-specific flags

You can add flags for specific configuration options. Use ddev-live create site wordpress --help to see all possible flags and their descriptions.

Flag Description
--wordpress-version <version> Specify WordPress version, <5.x>. The default is 5.3.2.
--docroot <path> The docroot is the directory from which your site is served. The default is the project root, --docroot "".
This value is a relative path from your project root. For WordPress, you might use --docroot web.
--ephemeral-paths <path> A comma-separated list of ephemeral mount paths relative to docroot (ex. content/cache).
--persistent-paths <path> A comma-separated list of persistent mount paths relative to docroot (ex. content/uploads).

Here is an example for a WordPress site that requires composer install, with the docroot in /docroot:

$  ddev-live create site wordpress ddev-demo/mysite --github-repo ddev-demo/mysite --docroot docroot --run-composer-install


Last update: 2020-10-19