Redis/MediaWiki
From Bibliotheca Anonoma
Revision as of 02:30, 4 April 2023 by Antonizoon (talk | contribs)
Redis can be used as an alternative to memcached, and function as the job queue (no more running runJobs.php)
https://blog.go2tech.de/2016/02/the-jobqueue-how-droidwiki-de-runs-jobs/
Make sure to get the latest versions of Redis from outside your distribution, which can be old: https://www.linode.com/docs/databases/redis/deploy-redis-on-ubuntu-or-debian
Redis with PHP 7.4 on Red Hat
Redis isn't unfortunately packaged with PHP 7.4 and it doesn't have a RPM package with the Red Hat provided packages. But we can just install it using pecl. Say no to most of the compile flags, we don't have the necessary stuff for igbinary and its not really needed in our use case.
dnf install php-devel make php-pecl pecl install phpredis
Then add the extension definition to /etc/php.ini
extension=redis.so
https://developer.redis.com/develop/php/