Redis/MediaWiki: Difference between revisions

From Bibliotheca Anonoma
No edit summary
No edit summary
Line 5: Line 5:
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
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.
<pre>
dnf install php-devel make php-pecl
pecl install phpredis
</pre>
Then add the extension definition to /etc/php.ini
<pre>
extension=redis.so
</pre>
https://developer.redis.com/develop/php/
<!--
== Redis with HHVM as Session Handler ==
== Redis with HHVM as Session Handler ==


Line 17: Line 35:
* [https://medium.com/@deboj88/load-balancing-a-reverse-proxy-with-nginx-hhvm-and-php-fpm-34fe1afee576 Source: Medium @deboj88 - Load balancing a Reverse Proxy with Nginx, HHVM and PHP FPM]
* [https://medium.com/@deboj88/load-balancing-a-reverse-proxy-with-nginx-hhvm-and-php-fpm-34fe1afee576 Source: Medium @deboj88 - Load balancing a Reverse Proxy with Nginx, HHVM and PHP FPM]
* [https://segmentfault.com/q/1010000004968214 Source: HHVM + mediawiki 怎么配置]
* [https://segmentfault.com/q/1010000004968214 Source: HHVM + mediawiki 怎么配置]
 
-->
== MediaWiki Object/Main/Session Cache with Redis ==
== MediaWiki Object/Main/Session Cache with Redis ==



Revision as of 02:30, 4 April 2023

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/

MediaWiki Object/Main/Session Cache with Redis

mw:Redis#Setup

MediaWiki Job Queue with Redis

mw:Redis#Job queue