Get the default configuration file redis.ini for Redis, optimized for CentOS Linux 6. This example configuration ensures optimal compatibility and performance for Redis, making it easy to set up and adjust to meet your needs.
Find and download the configuration file here: /etc/php.d/redis.ini.
For more configurations and setup guides, visit our related files section to further customize your system.
; Enable redis extension module
extension = redis.so
; phpredis can be used to store PHP sessions.
; To do this, uncomment and configure below
; RPM note : save_handler and save_path are defined
; for mod_php, in /etc/httpd/conf.d/php.conf
; for php-fpm, in /etc/php-fpm.d/*conf
;session.save_handler = redis
;session.save_path = "tcp://host1:6379?weight=1, tcp://host2:6379?weight=2&timeout=2.5, tcp://host3:6379?weight=2"
Download the raw file with wget or curl
wget -O redis.ini.example https://exampleconfig.com/static/raw/redis/centos6/etc/php.d/redis.ini
curl https://exampleconfig.com/static/raw/redis/centos6/etc/php.d/redis.ini > redis.ini.example
Other config files you might find useful