Centos system, lnmp environment, I compiled and installed the memcached extension. There is an extension under php -m, but there is no such extension in phpinfo?
centos system, lnmp environment, I compiled and installed the memcached extension. There is an extension under php -m, but there is no such extension in phpinfo?
Check if the extension has been added to your php.ini
Has apache or php-fpm been restarted?
You can try using the command line to see if
phpinfo()
is there. If not.I am afraid that the ini of your cli and the ini of php-fpm are not the same.
php.ini Just change the configuration
If it still doesn’t work after you restart php-fpm, check if there are multiple php versions. The command line and web may use different php.