Install Memcached server-side software and PHP memcache extensions in a WAMP environment

Source: Internet
Author: User
Wamp Environment: apache/2.4.9 (WIN32) php/5.5.12

First, install Memcached server-side software

1. Place the Memcached.exe file on any disk hyphenating (place F:\memecached here);

2. Open the DOS window and execute the following command:

F://Enter F Drive

CD memcached//Enter memcached file

memcached-d Install//installation memcached file

memcached-d Start//Turn on memcached (can view process in Task Manager)

memcached-d Stop//Stop memcached

Second, PHP extension memcache

1. Place the Php_memcache.dll file under Wamp\bin\php\php5.5.12\ext (note here: Because the WAMP environment is 32 bits, the corresponding extension file is x86, otherwise the extension is unsuccessful)

2. Add Extension=php_memcache.dll in the Wamp\bin\apache\apache2.4.9\bin\php.ini file

3. Restart the Wamp;

Third, test whether the installation is successful

Memcache is installed successfully in Phpinfo ()

Note: The extension file Php_memcache.dll is consistent with the PHP version in the environment and is consistent with the number of environment machines, otherwise invalid

Add Extension=php_memcache.dll php.ini file under Apache

The above describes the installation of WAMP environment memcached server-side software and PHP memcache extension, including aspects of the content, I hope that the PHP tutorial interested in a friend helpful.

  • 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.