PHP memcache extension php-m differs from phpinfo ()

Source: Internet
Author: User
Tags fpm phpinfo

Cause, because to upgrade OpenSSL (OpenSSL upgrade is not a table), so after the upgrade to PHP has also been newly compiled, compiled successfully.

Find no installation, Memcache extension, install from new compilation, display installation succeeded, but Phpinfo () does not show memcache extension

Found, php.ini documents, there are extension= "memcache.so" very strange problem,

Find Phpinfo () Extension_dir in the directory, there are memcache.so,

Restart the PHP-FPM also does not show (or Apache or the like)

After using php-m can be loaded out of memcache, while using phpinfo () No memcache

[[email protected] ~]# php-m[php Modules] Bcmathcorectypecurldatedomeregfilterftpgdgettexthashiconvjsonlibxmlmbstringmcryptmemcache

Should be php-cli with php-fpm called a different, php.ini configuration file

[Email protected] ~]# Php-i |  =/usr/local/php/=/usr/local/php/etc/php.ini

Phpinfo.php This is the newly created PHP file, which is written in Phpinfo ()

[[email protected] ~]# php phpinfo.php |  =/usr/local/php/=/usr/local/php/lib/php.ini

Create a soft connection under/usr/local/php/lib

[Email protected] ~]# ln-s/usr/local/php/etc/php.ini/usr/local/php/lib/php.ini

PS: The above is the post-editing, the display may not occur at that time, the problem is not a problem troubleshooting, and other for PHP memcache extension troubleshooting methods.

which PHP to see if it is more than PHP version caused, php-m and other issues

Php-cli and php-fpm are the same PHP version or php.ini (the different php.ini that happened this time)

PHP Apache Nginx memcache and other various reboots look at

by bin

PHP memcache extension php-m differs from phpinfo ()

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.