zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Nextcloud meets Redis

October 20, 2018 by Igor Drobot Leave a Comment

You can significantly improve your Nextcloud performance with memory caching,
where frequently-requested objects are stored in memory for faster retrieval.

Debian way installation:

1
2
3
4
5
6
7
8
# Install redis service
apt-get install redis-server
# install PHP module 
apt-get install php-redis
service php7.0-fpm restart
 
# Generate secure redis authentication password
echo "securepassword123" | sha256sum

# Install redis service apt-get install redis-server # install PHP module apt-get install php-redis service php7.0-fpm restart # Generate secure redis authentication password echo "securepassword123" | sha256sum

The sum has to be filled in in /etc/redis/redis.conf file, after requirepass:
requirepass b2f432de6f9c411f9fc312b58e77d96b7b397c8[….]

Nextcloud integration in /config/config.php

Add the following block to the and of the configuration, before );

1
2
3
4
5
6
7
'memcache.local' => '\OC\Memcache\Redis',
'redis' => array(
   'host' => 'localhost',
   'port' => 6379,
   'password' =>
   'b2f432de6f9c411f9fc312b58e77d96b7b397c8[....]',
    ),

'memcache.local' => '\OC\Memcache\Redis', 'redis' => array( 'host' => 'localhost', 'port' => 6379, 'password' => 'b2f432de6f9c411f9fc312b58e77d96b7b397c8[....]', ),

Official nextcloud documentation for caching configurations

Filed Under: Linux Tagged With: Nextcloud, Redis

Categories

Archives

Tags

apache2 Apple arduino ARM Automation backup bash Cisco Cluster Corosync Database Debian Debian squeeze DIY DNS Fedora FTP Fun Icinga Ipv6 KVM Linux LVM MAC OS X Monitoring MySQL Nagios Nginx openSUSE OpenVPN PHP Proxy Python python3 qemu RAID rsync Samba security ssh Ubuntu virtualization Windows Windows 7 Wordpress

Leave a Reply

Your email address will not be published. Required fields are marked *

Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok