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.