How to install memcache extension with win764 bits

Source: Internet
Author: User
: This article describes how to install the memcache extension using win764 bits. For more information about PHP tutorials, see. Step 1: install preparation: file download link ====== http://www.zixue.it/thread-18806-1-1.html

In these files: memcached.exe, libgcc_s_sjlj-1.dll, pthreadGC2.dll is used for installation, and php_memcache.dll is the extension needed for installation (here I am sending the extension corresponding to php5.4, if you are using another version of php, you can go to Baidu to find the download or find resources on csdn)

Step 2: Put memcached.exe, libgcc_s_sjlj-1.dll, pthreadGC2.dll in a folder, the folder name can be in English, here I use memcached. Put this folder in your disk, where there is no requirement, here I will put it on disk D.

Step 3: Open the cmd command line interface, and enter the command d: Press enter = to enter disk d.

Enter the command cd memcached and press enter === to enter the memcached directory.

Run the memcached-d install command and press enter =. If no error is reported, the installation is successful.

Enter the command memcached-d start and press enter === to enable the memcached process. in the task manager, you can see the memcached daemon.

Step 4: put php_memcache.dll in the ext directory under the php directory and open your php. ini file (if you cannot find it, search for it directly using the windows Resource Manager)

Step 5: ctrl + f search keyword extension = Find Your php extensions and add extension = php_memcache.dll to them. do not add extra points.


Restart the Apache service, create a php file for testing under your domain name directory, and write Test

Open the php file in the browser. if you can find the memcache extension, the installation is successful.

Write a code to test whether memcache is supported:

 connect('127.0.0.1', 11211);$memcache->set('mydomain', 'hehe.com');echo $memcache->get('mydomain');?>

If hehe.com is displayed, it indicates that memcached has been successfully installed and can be used.

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

The above describes how to install the memcache extension with 64-bit Windows 7, including some content. I hope my friends who are interested in the PHP Tutorial will be 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.