Windows XAMPP Installation Php_memcache extensions

Source: Internet
Author: User

First download the Phpmemcache with the address:

Http://up.2cto.com/2012/0522/20120522094758371.rar

Unzip the file, after extracting the following files:


Then open cmd as an administrator, into the directory just unzipped,

Install Memcache:

memcached.exe-d Install

Then start the Memcache service:

memcached.exe-d start
So the Memcache service is installed.

Then add the Phpmemcache extension to the XAMPP.

The uninstall Memcache Service command is:

memcached.exe-d Uninstall

The Stop memcache Service command is:

Memcached.exe-d stop

First create a new file 1.php under Htdocs, enter the following:

<?phpecho phpinfo ();? >

This is the version of your PHP information, presumably the following:


It is important to note that the PHP version of architecture and the top are the two parts;

Next download Php_memcache.dll, address: http://pecl.php.net/package/memcache/3.0.8/windows

Remember to look for your version, I downloaded the following version:


Unzip the downloaded file and copy the Php_memcache.dll inside to Xampp/php/ext.

Then open php.ini (under xampp/php) and add the following at the end:

;p Hp-memcachedextension=php_memcache.dll[memcache]memcache.allow_failover = 1memcache.max_failover_attempts= 20memcache.chunk_size =8192memcache.default_port = 11211

Save and exit and restart your Apache server.


It is important to note that if you use the thinkphp framework, then the default cache is file and you can modify it to memcache in the configuration file, using the following method:

Open thinkphp/thinkphp/conf/convention.php, find ' data_cache_type ' This item, change to Memcache, save and exit on it.

Windows XAMPP Installation Php_memcache extensions

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.