My environment:
PHP: version 5.6.30Xampp:
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