Redis extension in php.ini - dissappear after update PHP

ShinJii

Verified User
Joined
Mar 20, 2014
Messages
219
Hi,

My system is CentOS 7.x and php version - PHP-FPM 7.2.

I installed Redis and PECL Redis to PHP... all tutorials in google write that I have to include
Code:
extension=redis.so
to file
Code:
/usr/local/php72/lib/php.conf.d/10-directadmin.ini
but after update PHP to newer version this file is overwritten by Directadmin and
Code:
extension=redis.so
dissappear... why? How to include it to PHP forever?
 
I will quote smtalk from another thread:

DirectAdmin just uses 10-directadmin.ini and 50-webapps.ini in php.conf.d, these would be overwrriten, any other files there - not, and that's really a good place to do php.ini changes

So basically create a new .ini file with unique name (say 66-custom.ini for example) and add your changes there.
 
Back
Top