S
S
Sergey Sokolov2013-03-16 06:39:12
PHP
Sergey Sokolov, 2013-03-16 06:39:12

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.soto 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

2 answer(s)
V
Vyacheslav Slinko, 2013-03-16
@sergiks

Why connect extensions via php-fpm? This is done in the usual way php.ini.

R
return, 2013-03-16
@return

There is a Memcached extension , and there is Memcache :)
Judging by the version in phpinfo (2.2.7), you have Memcache

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question