Redis and 10-directadmin.ini

thijssie

Verified User
Joined
Feb 15, 2015
Messages
9
Hi,

I just setup a redis server, and there for I need to load the .so file:
extension=igbinary.so
extension=redis.so
extension=imagick.so

I setup this in my 10-directadmin.ini file, but every time I update something for php the file will be rewritten and the exertions will be loose.

How can I fix this problem?
 
I just find that it can be stored in:
Code:
/usr/local/directadmin/custombuild/custom/php.conf.d/

Is that correct?
 
so like put the file:
10-redis.ini in /usr/local/php73/lib/php.conf.d/

Is it also possible to put the like this:


Code:
extension_dir=/usr/local/php73/lib/php/extensions/no-debug-non-zts-20180731
extension=igbinary.so
extension=redis.so
zend_extension=/usr/local/php73/lib/php/extensions/no-debug-non-zts-20180731/opcache.so
opcache.memory_consumption=1024
opcache.interned_strings_buffer=16
opcache.max_accelerated_files=100000
opcache.revalidate_freq=1
opcache.enable_cli=1
opcache.validate_permission=1
opcache.use_cwd=1
opcache.revalidate_path=1
opcache.enable_file_override=1
opcache.save_comments=1
 
Last edited:
Yes, what isn't in the default .ini, just add your own to a custom .ini in each php.conf.d directories.
 
Okido, only DirectAdmin put this, in a different setup:
opcache.memory_consumption=1024
opcache.interned_strings_buffer=16
opcache.max_accelerated_files=100000
opcache.revalidate_freq=1
opcache.enable_cli=1
opcache.validate_permission=1
opcache.use_cwd=1
opcache.revalidate_path=1
opcache.enable_file_override=1
opcache.save_comments=1

In 10-directadmin.ini will there no double setups then?
 
Sorry that is not a option. Because every time directadmin will be rewrite the opcache, what i need to change then.
So i need a .ini with redis, igninary and opcache.
 
Oh, you didn't specified you changed the opcache stuff..... In that case, yes, add the only options you've changed to the new .ini.
 
Back
Top