Bitter force of the whole yii a source code, will be an error: Cmemcache requires php memcache extension to be loaded
Using the Memcache, now win8 under the installation configuration under Memache. Reference: http://m.blog.csdn.net/blog/hel12he/43758733
File Download Office: http://pan.baidu.com/s/1eQwCDN0
First step: Install Memcache
Open docs, find the Memcache.exe path,
Execute Service Registration command: memcached.exe-d install
Uninstall the service command: memcached.exe-d Uninstall
command to start service: memcached.exe-d start
Stop the server command: memcached.exe-d stop
In the execution of memcached.exe-d install, you may have an error saying failed to install service and service already install, at this time, open C:\Windows\System32, Click Cmd.exe to be the administrator and reinstall and start again
Memcache Port is 11211, using telnet command to view: Telnet 127.0.0.1 11211 After executing this command, if a new window is opened, the installation of Memcache is successful
Also can point to open Task Manager, click Service, see is running, then OK
Step Two: Configure PHP
Start by Phpinfo () to display our PHP-related information and view the following key information:
PHP version is 5.6.7,64 bit, and php.ini position
Api20121212,ts,vc11. TS: Indicates that our service is thread safe, NTS: is not thread safe. VC11 you just have to remember.
Click on the link http://pecl.php.net/package/memcache/3.0.8/windows
According to the above diagram download is:
After downloading, unzip the file, there are a lot of files inside, just want to copy the Php_memcache.dll to the Php/ext file
Open PHP.ini, write in:
Extension=php_memcache.dll
[memcache]
memcache.allow_failover=1
memcache.max_failover_attempts=20
memcache.chunk_size=8192
memcache.default_port=11211
Step Three: Test
Restart Apache to view phpinfo information, which indicates that the configuration was successful