XAMPP Installation Configuration Memcache

Source: Internet
Author: User
Tags memcached phpinfo

Bitter force of the whole yii a source code, will be an error: Cmemcache requires php memcache extension to be loaded

Using the Memcache, now win8 under the installation configuration under Memache. Reference: http://m.blog.csdn.net/blog/hel12he/43758733

File Download Office: http://pan.baidu.com/s/1eQwCDN0

First step: Install Memcache

Open docs, find the Memcache.exe path,

Execute Service Registration command: memcached.exe-d install

Uninstall the service command: memcached.exe-d Uninstall

command to start service: memcached.exe-d start

Stop the server command: memcached.exe-d stop


In the execution of memcached.exe-d install, you may have an error saying failed to install service and service already install, at this time, open C:\Windows\System32, Click Cmd.exe to be the administrator and reinstall and start again

Memcache Port is 11211, using telnet command to view: Telnet 127.0.0.1 11211 After executing this command, if a new window is opened, the installation of Memcache is successful

Also can point to open Task Manager, click Service, see is running, then OK



Step Two: Configure PHP

Start by Phpinfo () to display our PHP-related information and view the following key information:



PHP version is 5.6.7,64 bit, and php.ini position

Api20121212,ts,vc11. TS: Indicates that our service is thread safe, NTS: is not thread safe. VC11 you just have to remember.

Click on the link http://pecl.php.net/package/memcache/3.0.8/windows

According to the above diagram download is:


After downloading, unzip the file, there are a lot of files inside, just want to copy the Php_memcache.dll to the Php/ext file


Open PHP.ini, write in:

Extension=php_memcache.dll
[memcache]
memcache.allow_failover=1
memcache.max_failover_attempts=20
memcache.chunk_size=8192
memcache.default_port=11211

Step Three: Test

Restart Apache to view phpinfo information, which indicates that the configuration was successful





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.