Skip to content

Commit

Permalink
Notes for Redis configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
basilhendroff authored Oct 4, 2020
1 parent 055fcb8 commit 75f8b6c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions POST-INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ To complete the following tasks, use a terminal to connect to the jail `iocage c
5. Configure sSMTP
6. Test sSMTP
7. Configure phpMyAdmin
8. Configure Redis

There is the opportunity to incorporate some of the above within the WordPress script. For more information, refer to the blog post [WordPress Script: Opportunities for Improvement](https://blog.udance.com.au/2020/09/20/wordpress-script-opportunities-for-improvement/).

Expand Down Expand Up @@ -118,6 +119,15 @@ One way to disable phpMyAdmin is to unlink it in the jail `rm /usr/local/www/wor

Refer to [Securing your phpMyAdmin installation](https://docs.phpmyadmin.net/en/latest/setup.html#securing) for other means of securing phpMyAdmin.

### 8. Configure Redis
Edit wp-config.php `cd /usr/local/www/wordpress && ee wp-config.php` and add the following code above the line `/* That's all, stop editing! Happy publishing. */`.
```
/* Set up Redis */
define( 'WP_REDIS_SCHEME', 'unix' );
define( 'WP_REDIS_PATH', '/var/run/redis/redis.sock' );
```
Note: For WordPress to use Redis, install and activate the Redis Object Cache plugin and using the plugin, `Enable Object Cache `.

## Configure the Reverse Proxy
If using Caddy, the code block might look something like:
```
Expand Down

0 comments on commit 75f8b6c

Please sign in to comment.