<a id="how-to-configure-initial-settings"></a>

# How to configure initial settings

#### NOTE
This only works when setting up WordPress charm initially before the database
relation setup. Changing the value afterwards has no effect.

By providing configuration value for `initial_settings` at deployment, you can tweak a few
WordPress settings. For detailed information on configurable parameters, please refer to the
[reference guide](https://canonical.com/juju/docs/wordpress-k8s-charm/latest/reference/configurations/index.html.md#reference-configurations).

```default
WORDPRESS_SETTINGS=$(cat << EOF
user_name: admin
admin_email: admin@testing.com
admin_password: <strong-password>
EOF
)
juju deploy wordpress-k8s --config initial_settings=$WORDPRESS_SETTINGS
```

You can verify your initial WordPress settings by navigating to ​​the general settings page in
WordPress (`http://<wordpress-unit-ip>/wp-admin/options-general.php`).

You can also pass in the wordpress-k8s `configuration.yaml` file with the parameters above. See how
to pass in a configuration file in the
[Juju documentation](https://canonical.com/juju/docs/juju-cli/3.6/howto/manage-applications/#manage-applications).
