Answer the question
In order to leave comments, you need to log in
Why "class not found" for memcached in php-fpm, although there is in phpinfo()?
CentOS server with nginx and php-fpm built from source. It was necessary to add memcached support.
Installed libmemcached and php memcached - everything is also from the source. Added a line php_admin_value[extension]=memcached.so
to php-fpm config and restarted it.
The test php on the web server shows the memcached section in phpinfo(), but in the same file, trying to instantiate this class gives a "Class 'Memcached' not found" fatal error.
Exactly the same situation with php memcache extension (without "d"). There is in phpinfo() , "Class not found" when trying to work with the class.
CHADNT and how to properly connect memcached support from source to php-fpm?
Answer the question
In order to leave comments, you need to log in
Why connect extensions via php-fpm
? This is done in the usual way php.ini
.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question