About the PHP compiler installation Extension Module memcache problem

Source: Internet
Author: User

Memcached to improve Dynamic Web site performance by caching database query results and reducing database access times. Memcached

A separate, distributed cache server that provides a shared, high-performance cache service for multiple Web servers in memcached

On the server, the extension of multiple memcached cache service is developed according to the hash algorithm, and then the consistency hash is presented to solve

Increase or decrease the number of cache failures caused by the cache server causing the re-hash.


Official site http://memcached.org/


When we use memcached, we need to use PHP to connect memcache, the specific steps omitted here, said the problem encountered:

The Memcache module has not been installed.


The author originally in the compilation installs the PHP time, specified the PHP installation directory is Php-apache, therefore specifies here PHP.ini's directory Also

It's/usr/local/php-apache/etc/, but there's a problem here, Memcache's default php.ini path.

Is/usr/local/php/etc/, we can use a command to see the path of php.ini:


/usr/local/php-apache/bin/php-i |grep-i Config


So we can see, in fact, the path of Config-file in/usr/local/php/etc/, after typing the command display:


Configuration File (php.ini) Path = =/usr/local/php/etc


So we need to create a/usr/local/php/etc/path and copy the php.ini file to this path, so the problem

Have decided

This article is from "The Miracle Teenager" blog, please be sure to keep this source http://raffaelexr.blog.51cto.com/8555551/1735455

About the PHP compiler installation Extension Module memcache problem

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.