gaqvalley.blogg.se

Install redis digitalocean
Install redis digitalocean










Unzip -o /tmp/phpredis.zip & mv /tmp/phpredis-* /tmp/phpredis & cd /tmp/phpredis & /opt/rh/rh-php71/root/usr/bin/phpize &. Uploaded to /tmp on my development server:Įxport PATH=$PATH:/opt/rh/rh-php71/root/usr/include:/opt/rh/rh-php71/root/usr/bin I downloaded  and renamed the file to phpredis.zip I had to compile phpredis for php71 on my development server: $CFG->session_redis_serializer_use_igbinary = false // Optional, default is PHP builtin serializer. Also, if you change the serializer you have to flush the database! igbinary support to make the setting to work. Use the igbinary serializer instead of the php default one. $CFG->session_redis_acquire_lock_timeout = 120 $CFG->session_redis_prefix = '' // Optional, default is don't set one. $CFG->session_redis_auth = '' // Optional, default is don't set one. $CFG->session_redis_database = 0 // Optional, default is db 0. $CFG->session_redis_port = 6379 // Optional. $CFG->session_handler_class = '\core\session\redis'

install redis digitalocean

In Moodle config.php I changed session caching to: In /etc/opt/rh/rh-php71/php-fpm.d/ www.conf I changed: In /etc/opt/rh/rh-php71/php.ini I changed: I'd like to share how I got it working on Redhat 7.3

install redis digitalocean

I've been able to install and configuring redis on Moodle 3.4.1.












Install redis digitalocean