separate db server
This commit is contained in:
parent
eedf3139c6
commit
fad654375f
|
@ -5,15 +5,15 @@ template and Advanced Custom Fields settings.
|
||||||
|
|
||||||
Steps:
|
Steps:
|
||||||
- install `php` and `php-mysql`
|
- 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
|
- ```sql
|
||||||
CREATE USER '$WORDPRESS_DB_USER'@'localhost' IDENTIFIED BY '$password';
|
CREATE USER '$WORDPRESS_DB_USER'@'$server.internal.bij1.net' IDENTIFIED BY '$password';
|
||||||
FLUSH PRIVILEGES;
|
FLUSH PRIVILEGES;
|
||||||
DROP DATABASE IF EXISTS $db;
|
DROP DATABASE IF EXISTS $db;
|
||||||
CREATE DATABASE $db CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
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`.
|
- Start the installer by running `sudo bash ./install.sh`.
|
||||||
- Note down the `bij1admin` password that's generated during installation.
|
- Note down the `bij1admin` password that's generated during installation.
|
||||||
- Tweak the BIJ1 specific settings in `wp-config.php`.
|
- Tweak the BIJ1 specific settings in `wp-config.php`.
|
||||||
|
|
Loading…
Reference in New Issue