Phpmemcache installation ____php

Source: Internet
Author: User
Tags memcached phpinfo

There are a lot of tutorials on memcache installation online, but, many people follow the tutorial installation, when testing, there is a situation:

Then baffled, I clearly have followed the tutorial, from beginning to end of the installation Ah, how or not. This error occurs only with the php_memcache.dll file, which is already php.ini configuration.

First of all, install the Memcache service:

1, choose one you want to install the Memcache server version, there are 63 and 32-bit. Here you can choose from your own machine. This does not affect the configuration of PHP.

2, enter Doc command, first CD to your memcache extract the directory

3, the implementation of service registration order: memcached.exe-d Install

4, uninstall the service command: memcached.exe-d Uninstall

5, start the service command: memcached.exe-d start

6, Stop the server command: memcached.exe-d stop


The memcache configuration steps in PHP are simple and are divided into three steps:

1, find the right php_memcache.dll, put into the Php/ext directory. Download Address: Http://pecl.php.net/package/memcache/3.0.8/windows

about how to choose the version of Memcache, first need to open phpinfo () to see the version of PHP, is thread-safe or not thread-safe, is VC11 or what version, and finally to choose X86 and X64, this is for the operating system, X86 is a 32-bit system, X64 is a 64-bit system, I finally succeeded in the test, but my operating system is 64, with X86 expansion succeeded, do not know why, in Xampp installed successfully. In the future, we should be careful to try a few more versions.

How to verify that the Memcache is installed?

1, first through the phpinfo () of our PHP related information display, view the following key information:


OK, from here, we can know that our PHP version is 5.5.15, we use the configuration file location in:D:\xampp\php\php.ini(our own configuration information is also to be written into this php.ini file)

The last text: API20121212,ts,vc11. TS: Indicates that our service is thread safe, NTS: is not thread safe. VC11 you just have to remember. x86 is the version of your service , or it may be x64.

Then after you get to the information, you can go to: http://pecl.php.net/package/memcache/3.0.8/windows this address and find your version. For example, taking my screenshot as an example, I should choose the version


php5.5 TS x86. The information can be used to locate.

After downloading, unzip the file, there are a lot of files, you only need to copy the Php_memcache.dll to the Php/ext file , and then fill in the configuration file. And then reboot, 100% OK.


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.