2021-12-02 14:52:08 +00:00
|
|
|
BIJ1 Wordpress Installer
|
|
|
|
-------------------------
|
|
|
|
This script automates installing Wordpress with all specific BIJ1 plugins,
|
|
|
|
template and Advanced Custom Fields settings.
|
|
|
|
|
|
|
|
Steps:
|
2023-10-16 15:13:55 +00:00
|
|
|
- install `php` and `php-mysql`
|
2023-10-16 20:43:10 +00:00
|
|
|
- First you have to setup a database on the db server, e.g. for MariaDB/MySQL (substituting `$WORDPRESS_DB_USER`, `$db`, `$password`, `$server`):
|
2023-03-31 09:43:01 +00:00
|
|
|
- ```sql
|
2023-10-16 20:43:10 +00:00
|
|
|
CREATE USER '$WORDPRESS_DB_USER'@'$server.internal.bij1.net' IDENTIFIED BY '$password';
|
2023-03-31 11:47:50 +00:00
|
|
|
FLUSH PRIVILEGES;
|
2023-03-31 09:43:01 +00:00
|
|
|
DROP DATABASE IF EXISTS $db;
|
|
|
|
CREATE DATABASE $db CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
|
2023-10-16 20:43:10 +00:00
|
|
|
GRANT ALL PRIVILEGES ON $db.* TO '$WORDPRESS_DB_USER'@'$server.internal.bij1.net';
|
2023-03-31 09:43:01 +00:00
|
|
|
```
|
2023-10-16 20:43:10 +00:00
|
|
|
- Put the files from this repo where you want to install WordPress, and navigate there.
|
2023-10-16 14:56:51 +00:00
|
|
|
- Start the installer by running `sudo bash ./install.sh`.
|
2023-03-31 12:07:38 +00:00
|
|
|
- Note down the `bij1admin` password that's generated during installation.
|
|
|
|
- Tweak the BIJ1 specific settings in `wp-config.php`.
|
2021-12-02 14:52:08 +00:00
|
|
|
|
2023-03-31 12:08:09 +00:00
|
|
|
- configure Polylang: `/wp-admin/admin.php?page=mlang_wizard`
|
|
|
|
- setup smtp-settings: `/wp-admin/options-general.php?page=swpsmtp_settings`
|
2023-03-31 12:07:38 +00:00
|
|
|
- setup proper site title and slogan: `/wp-admin/options-general.php`
|
|
|
|
- link menu's: `/wp-admin/nav-menus.php`
|
2022-01-19 08:19:22 +00:00
|
|
|
- add nieuws page with nieuws items content block
|
2023-03-31 12:07:38 +00:00
|
|
|
- setup permalinks: `/wp-admin/options-permalink.php`
|
2022-01-19 08:19:22 +00:00
|
|
|
Use "Berichtnaam" as permalink configuration
|
2023-03-31 12:07:38 +00:00
|
|
|
- add a home page and set it up to be used as such: `/wp-admin/options-reading.php`
|
2022-01-20 12:53:28 +00:00
|
|
|
- setup Ajax Load More plugin
|
2023-03-31 12:07:38 +00:00
|
|
|
`/wp-admin/admin.php?page=ajax-load-more#alm-section-1`
|
|
|
|
- Select 'div' as Container type
|
|
|
|
- Select 'I want to use my own styles'
|
2023-05-05 21:10:37 +00:00
|
|
|
- disable comments either:
|
|
|
|
- on `/wp-admin/options-discussion.php` -> `Allow Comments` / `Sta mensen toe reactie te geven op nieuwe berichten`
|
|
|
|
- `UPDATE wp_posts SET comment_status = 'closed';`
|
2022-01-19 08:19:22 +00:00
|
|
|
|
2021-12-02 14:52:08 +00:00
|
|
|
If you use this primarily for testing you can run `./cleanup.sh` to remove the
|
|
|
|
Wordpress install (you'll have to wipe the db manually).
|