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

33 lines
941 B
Markdown
Raw Normal View History

2020-12-25 22:04:08 +01:00
# role docker-wordpress
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
2022-11-10 17:25:37 +01:00
docker exec -it wordpress-database-1 /bin/mysql -u wordpress -p
```
## upgrade database
To upgrade the database execute
```bash
docker exec -it wordpress-database-1 /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
2022-11-10 17:25:37 +01:00
docker 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/