Thursday, February 9, 2017

Install memcache for php 5.6.30

My environment:

PHP: version 5.6.30
Xampp:
Xampp version: 3.2.2 (x86)
Xampp Directory: C:\xampp
MariaDB: version 10.1.21

My problem:

I use framework yii 1.1.15 to develop my application. I have problem with MemCache. I try to fix it.








My Solution:

Step 1: Download php_memcache-3.0.8-5.6-ts-vc11-x86.zip from http://windows.php.net/downloads/pecl/releases/memcache/3.0.8/
Step 2: Extract the file in Step 1, then copy php_memcache.dll to C:\xampp\php\ext
and copy example.php, memcache.php to C:\xampp\htdocs
Step 3: Open file php.ini in C:\xampp\php directory, add following lines:

extension=php_memcache.dll
[Memcache]
memcache.allow_failover = 1
memcache.max_failover_attempts=20
memcache.chunk_size =8192
memcache.default_port = 11211


Step 4: Restart apache
Step 5: Testing memcache, access http://localhost/example.php 
OR create a file info.php, insert following lines:
phpinfo();?>
Check http://localhost/info.php



Share this

4 Responses to "Install memcache for php 5.6.30"

  1. Thanks man!
    You're simply the best...

    ReplyDelete
    Replies
    1. Install Memcache For Php 5.6.30 - Antonio Nguyen >>>>> Download Now

      >>>>> Download Full

      Install Memcache For Php 5.6.30 - Antonio Nguyen >>>>> Download LINK

      >>>>> Download Now

      Install Memcache For Php 5.6.30 - Antonio Nguyen >>>>> Download Full

      >>>>> Download LINK Qj

      Delete
  2. Thanks for this post! It is essential to note that you have to install php_memcache-3.0.8-5.6-ts-vc11-x86.zip even if you have Windows x64.

    ReplyDelete