Unlike cache plugins, that run from inside the WordPress site and provide frontend caching, Redis is a server-side cache that provides backend caching for WordPress.
To update your WordPress jail if you've run the previous version 1.3.0 of the script, enter the jail
iocage console wordpress
and execute the following commands:
Code:
pkg update
pkg install redis php74-pecl-redis
Edit the file redis.conf
cd /usr/local/etc && ee redis.conf
. To reconfigure Redis to listen on a Unix socket rather than a TCP port, uncomment the switches below if necessary, and set to the values shown.
Code:
port 0
unixsocket /var/run/redis/redis.sock
unixsocketperm 770
Save the file. Enable and start the Redis service:
Code:
sysrc redis_enable="YES"
service redis start
Check that the service has started
service redis status
. If you need to troubleshoot, check the redis log
cat /var/log/redis/redis.log
.
Allow
www
to access the Redis socket
pw usermod www -G redis
Now, link Redis to WordPress by completing step
5: Configure Redis of the post-installation instructions at
https://github.com/basilhendroff/freenas-iocage-wordpress/blob/master/POST-INSTALL.md