Quick development environment for WordPress using Lando.
- π³ Containerized development with Lando
- π Secure configuration with env vars
- π¦ Composer-based WordPress management
- π οΈ Modern tools (WP-CLI, PHP 8.2, Nginx)
- π§ MailHog for email testing
- π PHPMyAdmin included
- π Auto database backups on shutdown
git clone https://github.com/builtnorth/wp-lando.git
cd wp-lando
-
Run setup script:
./bin/setup.sh
- Follow prompts to enter site name, username, password, and email
-
Site is ready.
wp-lando/
βββ wp/ # WordPress core
βββ wp-content/ # Themes, plugins, uploads
βββ wp-config/ # WP configuration (production, staging, development)
βββ config/ # Server config
βββ bin/ # Scripts
βββ .env # Environment variables
βββ .lando.yml # Lando config
lando start
- Start environmentlando stop
- Stop environmentlando wp
- WP-CLI commandslando composer
- Composer commandslando npm
- NPM commands
- Site: https://wp-lando.lndo.site
- Admin: https://wp-lando.lndo.site/wp/wp-admin
- Mail: https://mail.wp-lando.lndo.site
- PMA: https://pma.wp-lando.lndo.site
Required in .env
:
WP_ENV=development
WP_HOME=https://wp-lando.lndo.site
DB_NAME=wordpress
DB_USER=wordpress
DB_PASSWORD=wordpress
Environment configs live in wp-config/
. Simliar to roots/bedrock, application.php
contains the main config with the ability for staging.php
and development.php
to override environment specific settings.