computer-playbook/roles/docker-wordpress/README.md

33 lines
941 B
Markdown
Raw Permalink Normal View History

2023-08-22 23:56:56 +02:00
# role docker-wordpress
2020-12-25 22:04:08 +01:00
2022-11-10 17:25:37 +01:00
## database
## access database
2020-12-25 22:04:08 +01:00
To access the database execute
```bash
docker-compose exec -it database /bin/mysql -u wordpress -p
2022-11-10 17:25:37 +01:00
```
## upgrade database
To upgrade the database execute
```bash
docker-compose exec -it database /bin/mysql_upgrade --user=root --password=
2020-12-25 22:04:08 +01:00
```
2022-11-10 17:25:37 +01:00
## change database root password
- https://wolfgang.gassler.org/reset-password-mariadb-mysql-docker/
- https://www.digitalocean.com/community/tutorials/how-to-reset-your-mysql-or-mariadb-root-password
2020-12-25 22:04:08 +01:00
## bash in application
docker-compose exec -it wordpress-application-1 /bin/sh
2020-12-25 22:04:08 +01:00
## update wp-config.php
```bash
apt update && apt install nano && nano wp-config.php
2020-12-25 22:04:08 +01:00
```
2021-10-18 18:46:58 +02:00
## multiside
- https://multilingualpress.de/doku/wordpress-multisite-installieren-einrichten/
- https://pressable.com/knowledgebase/adding-or-changing-the-domain-on-a-wordpress-multisite/
- https://wpengine.com/support/how-to-change-a-multi-site-primary-domain/