天天看點

windows xampp下安裝memcache

windows xampp內建環境中所安裝的php本身是沒有 memcache擴充的

需要到http://downloads.php.net/pierre/下載下傳對應的版本

下面是我的內建環境參數

###### ApacheFriends XAMPP version 1.7.7 ######

  + Apache 2.2.21

  + MySQL 5.5.16 (Community Server)

  + PHP 5.3.8 (VC9 X86 32bit thread safe) +PEAR

  + XAMPP Control Panel Version 2.5 fromwww.nat32.com

  + (BETA) XAMPP Control Panel Version 3.0.2 bySteffen Strueber (not in the USB & lite version)

      seehttp://www.apachefriends.org/f/viewtopic.php?f=16&t=46743

  + XAMPP Security

  + OpenSSL 1.0.0e

  + phpMyAdmin 3.4.5

  + ADOdb 5.14

  + Mercury Mail Transport System v4.62 (not inthe USB & lite version)

  + FileZilla FTP Server 0.9.39 (not in the USB& lite version)

  + Webalizer 2.23-04 (not in the USB & liteversion)

  + Perl 5.10.1 (not in the USB & liteversion)

  + Mod_perl 2.0.4 (not in the USB & liteversion)

  + Tomcat 7.0.21 (not in the USB & liteversion)

---------------------------------------------------------------

所下載下傳的版本是 php_memcache-2.2.6-5.3-vc9-x86.zip 

下載下傳後解壓把php_memcache.dll 放到 xampp/php/ext/目錄下

然後打開 xampp/php/php.ini 在裡面加入一句:   extension=php_memcache.dll

重新開機apache

輸出phpinfo();若有memcache擴充,證明擴充安裝成功