Wordpress

Set up environment variables

Go to your project root and edit or create .env.local

###> metabolism/wordpress-bundle ###
APP_ENV=dev
TABLE_PREFIX=wp_
DATABASE_URL=mysql://user:pwd@localhost:3306/dbname

AUTH_KEY=xxxxxxxxxxxxxxxxxxxxxx
SECURE_AUTH_KEY=xxxxxxxxxxxxxxxxxxxxxx
LOGGED_IN_KEY=xxxxxxxxxxxxxxxxxxxxxx
NONCE_KEY=xxxxxxxxxxxxxxxxxxxxxx
AUTH_SALT=xxxxxxxxxxxxxxxxxxxxxx
SECURE_AUTH_SALT=xxxxxxxxxxxxxxxxxxxxxx
LOGGED_IN_SALT=xxxxxxxxxxxxxxxxxxxxxx
NONCE_SALT=xxxxxxxxxxxxxxxxxxxxxx
###< metabolism/wordpress-bundle ###

use https://roots.io/salts.html to generate salts

Start the server

Configure a vhost mounted to /public, or start a Symfony server

Install Wordpress

Load the server url and follow the Wordpress installation procedure

Post Install : You will be asked to add WP_INSTALLED=1 to the environment, this is required to perform loading optimisations

Update gitignore

###> metabolism/wordpress-bundle ###
/public/uploads/*
!/public/uploads/acf-thumbnails
/public/edition
/public/cache
/public/wp-bundle
###< metabolism/wordpress-bundle ###

Last updated