Follow the steps of others, install and configure without any error prompts! In the computer service also see memcached service has been opened, but phpinfo inside is no memcache has been installed successfully information! Later found that the original is not open wamp PHP extension inside the memcache extension ( left click Wampserver in the lower right corner of the computer icon->php->php Extension (H), find Php_ Memcache Click to open (a small check mark appears before the name).
When looking for the cause, it is the Php_memcache.dll version and the PHP version inconsistency (workaround: Download the corresponding version of the DLL file) to see others ' error resolution.
Own steps to record:
1. Installing memcached
A. Download the memcached installation package, unzip to find the Memcached.exe copy to the C packing directory
B. Run Cmd.exe as Administrator (Command prompt-run as administrator), and normally run CMD directly.
C. Transfer to c packing directory execute command:
memcached.exe-d Install Installation
memcached.exe-d Start Open
d. Execute command Netstat-an , with the following results:
Indicates that the installation was successful.
Memcache Extensions for 2.php
The Php_memcache.dll file (\wamp\bin\php\php5.2.9-2\ext) is already in the integrated environment and does not need to be downloaded. Others may need to download the corresponding version of the DLL file to be placed in the Php/ext directory.
Add a sentence in the php.ini file:extension=php_memcache.dll, load the extension function.
Then left-click on the Wampserver icon in the lower right corner of the computer->php->php extension (H), find Php_memcache Click to open (a small checkmark before the name).
Finally, restart the server .
Test code:
< PHP
$mem = new Memcache;
$mem->connect ("127.0.0.1", 11211);
$mem->set (' key ', ' This is a test! ', 0, 60);
$val = $mem->get (' key ');
Echo $val;
?>
Php+memcache extension (Integrated environment wampserver environment)