- Download the Memcached Win32 library here: http://code.jellycan.com/memcached. Just get the Win32 binary (direct link). Extract the downloaded archive file in a
c:\memcached). There should be a
- Run a command prompt as an administrator. Some info on how to do that here.
Install memcached as a service. Go to the memcached directory, type and run:
memcached -d install
If you get an error saying “MSVCP71.dll is missing”, see this page for a solution.
Start the memcached service by running:
memcached -d start
You can verify if memcached is running by executing this in the command line:
wmic process get description, executablepath | findstr memcached.exe
You should see a result list showing memcached.exe and its full path.
Install PHP Memcache extension (php_memcache.dll)
- Chances are you don’t have
php_memcache.dllin your PHP extensions yet.
You can download a build of it here.Basu has noted in the comments that VC6 builds are no longer available from that link. You can download the correct build here.
- The archive should contain
php_memcache.dll. Extract the archive to your php extensions directory. On my system (WampServer), this was
php.ini, add this line to enable the extension:
Or if you’re using WampServer, restart it and enable the extension through the WampServer system tray menu.
Test the installation using the sample PHP code here: http://www.php.net/manual/en/memcache.examples-overview.php.
80 Responses to Installing Memcached for PHP 5.3 on Windows 7
Pingback: php的数据对象、结构的存储 | Wang Jun's Blog
Pingback: Memcached with PHP. | Indian Hot News
Pingback: PHP应用memcached的示例 | PHP爱好者
Pingback: Cgi script installation service
Pingback: 给PHP安装Memcache扩展 | JSCON-简时空
Pingback: PHP应用memcached的示例 | 我这样爱你