> For the complete documentation index, see [llms.txt](https://metabolism.gitbook.io/symfony-wordpress-bundle/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://metabolism.gitbook.io/symfony-wordpress-bundle/getting-started/wordpress.md).

# Wordpress

## Set up environment variables

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

```editorconfig
###> 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 ###
```

{% hint style="info" %}
use <https://roots.io/salts.html> to generate salts
{% endhint %}

## Start the server

Configure a vhost mounted to `/public`, or start a [Symfony server](https://symfony.com/doc/current/setup/symfony_server.html)

## Install Wordpress

Load the [server url](https://127.0.0.1:8000) and follow the Wordpress installation procedure

![](/files/jEhWp4BSSjFIYR82NpLB)

{% hint style="info" %}
**Post Install :** You will be asked to add `WP_INSTALLED=1` to the environment, this is required to perform loading optimisations
{% endhint %}

## Update gitignore

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