---
title: Charmhub | Deploy WordPress using Charmhub - The Open Operator Collection
description: Deploy the latest version of WordPress as a Kubernetes Operator on any
  cloud.
url: https://charmhub.io/wordpress-k8s/docs/how-to-configure-initial-settings
---

# WordPress

[Canonical IS DevOps](https://charmhub.io/publisher/canonical-is-devops "View all packages from Canonical IS DevOps")

* [Canonical IS DevOps](https://charmhub.io/publisher/canonical-is-devops "View all packages from Canonical IS DevOps")

Platform:

stable 15

```
juju deploy wordpress-k8s
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

---

#### Contacts

##### Maintainers

+ [Launchpad Team](https://launchpad.net/~canonical-is-devops)

* [Submit a bug](https://github.com/canonical/wordpress-k8s-operator/issues)

---

Share your thoughts on this charm with the community on discourse.

[Join the discussion](https://discourse.charmhub.io/)

# How to configure initial settings

This only works when setting up WordPress 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://charmhub.io/wordpress-k8s/docs/reference-configurations).

```
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://juju.is/docs/olm/manage-applications#heading--configure-an-application-during-deployment).

---
