The memcached extension of php is installed in linux, and no error message is reported. The php. ini file has been modified. After nginx is restarted, it is found that the memcached module extensions are not displayed in phpinfo. This is also the way other php extensions are installed. No error is reported but the extensions are not loaded. The memcached extension of php is installed in linux, and no error message is reported. The php. ini file has been modified. After nginx is restarted, it is found that the memcached module extensions are not displayed in phpinfo.
This is also the way other php extensions are installed. No error is reported but the extensions are not loaded.
Reply content:
The memcached extension of php is installed in linux, and no error message is reported. The php. ini file has been modified. After nginx is restarted, it is found that the memcached module extensions are not displayed in phpinfo.
This is also the way other php extensions are installed. No error is reported but the extensions are not loaded.
If it is Ubuntu/Debian, you can use apt to install it like this:
sudo apt-get install php5-memcached
If your PHP is compiled and installed, You can compile the php5-memcached like this:
Https://pecl.php.net/package/memcached
Cd memcached-2.2.0/png/php/5.4/bin/phpize generate configure./configure -- with-php-config =/png/php/5.4/bin/php-configmake & make install
Then add the following to php. ini:
extension=memcached.so
Restart Apache or the PHP-FPM service to take effect.
pecl install memcached
The problem has been solved. I put the php. ini file in the wrong location. Thank you.