search

Home  >  Q&A  >  body text

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?

伊谢尔伦伊谢尔伦2739 days ago773

reply all(5)I'll reply

  • PHP中文网

    PHP中文网2017-05-24 11:32:32

    Check if the extension has been added to your php.ini

    reply
    0
  • 某草草

    某草草2017-05-24 11:32:32

    Has apache or php-fpm been restarted?

    reply
    0
  • PHPz

    PHPz2017-05-24 11:32:32

    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.

    reply
    0
  • 大家讲道理

    大家讲道理2017-05-24 11:32:32

    php.ini Just change the configuration

    reply
    0
  • 仅有的幸福

    仅有的幸福2017-05-24 11:32:32

    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.

    reply
    0
  • Cancelreply