A
A
alex1nd2016-05-01 13:10:26
PHP
alex1nd, 2016-05-01 13:10:26

How to register/enable memcached dev with php7 on apache-mod php?

after installing from git clone https://github.com/php-memcached-dev/php-memcached.git
it installed to /usr/lib/php/...
how can i enable mod_php7 extension in apache now?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Selivanov, 2016-05-01
@selivanov_pavel

The php.ini used by mod_php7 must have a directive to enable the extension:
blablabla.so itself must be in the directory specified by extension_dir in php.ini. The easiest way is to create a symlink to the corresponding file in /usr/lib/php/... If extension_dir is not set in php.ini, you can find out the default value like this:
php7.0 -i | grep extension_dir(php7.0-cli must be installed). Or you can just see in which folder *.so files from other php extensions are located.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question