nginx + php-fpm on CentOS, all compiled from sources.
Adding memcached support, I compiled libmemcached
and php "memcached" extension, added a line `php_admin_value[extension]=memcached.so' in the php-fpm config and restarted php-fpm.
Opening a test php with phpinfo()
via web server started showing a section about "memcached" extension (screenshot). However attempts to instantiate the class fail with Fatal error: Class 'Memcached' not found
.
I also tried installing the php "memcache" (without 'd') extension in the same way: downloading sources, phpize
, configure
, make
, make install
. All the same: listed in phpinfo();
, "Class not found" fatal error.
What am I doing wrong, and how can I add a compiled extension to the php-fpm?
yum
/ pecl
package managers are not an option currently, as specific versions are required.