separate db server

This commit is contained in:
Kiara Grouwstra 2023-10-16 22:43:10 +02:00
parent eedf3139c6
commit fad654375f
1 changed files with 4 additions and 4 deletions

View File

@ -5,15 +5,15 @@ template and Advanced Custom Fields settings.
Steps:
- install `php` and `php-mysql`
- First you have to setup a database, e.g. for MariaDB/MySQL (substituting `$WORDPRESS_DB_USER`, `$db`, `$password`):
- First you have to setup a database on the db server, e.g. for MariaDB/MySQL (substituting `$WORDPRESS_DB_USER`, `$db`, `$password`, `$server`):
- ```sql
CREATE USER '$WORDPRESS_DB_USER'@'localhost' IDENTIFIED BY '$password';
CREATE USER '$WORDPRESS_DB_USER'@'$server.internal.bij1.net' IDENTIFIED BY '$password';
FLUSH PRIVILEGES;
DROP DATABASE IF EXISTS $db;
CREATE DATABASE $db CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
GRANT ALL PRIVILEGES ON $db.* TO '$WORDPRESS_DB_USER'@'localhost';
GRANT ALL PRIVILEGES ON $db.* TO '$WORDPRESS_DB_USER'@'$server.internal.bij1.net';
```
- Put the files here where you want to install WordPress, and navigate there.
- Put the files from this repo where you want to install WordPress, and navigate there.
- Start the installer by running `sudo bash ./install.sh`.
- Note down the `bij1admin` password that's generated during installation.
- Tweak the BIJ1 specific settings in `wp-config.php`.