In the forum backstage looked at a half-day, only memory optimization one has not done, but they have not been made before, only to learn.
Forum support Memcache, eaccelerator, alternative PHP Cache (APC), Xcache Four optimization methods, search on the internet for a long time, memcache see a little dizzy, eaccelerator also a little inexplicable wonderful, Finally choose XCache.
After some groping to the acceleration of the finished, mobile phone into a lot faster, the effect looks quite obvious, now the configuration method to write down, so as not to reload the system or change the server and forget how to do.
XCache Download Address:
Http://www.jb51.net/softs/41097.html
http://xcache.lighttpd.net/pub/Releases/
Download the matching version, then unzip, the Php_xcache.dll file copy to the PHP installation directory of the Ext directory, my is (c:\php\ext)
Configure PHP.ini (under C:\Windows), Search Extension_dir (mine is extension_dir = "C:\php\ext"), add zend_extension_ts below = "C:\php\ext\php_ Xcache.dll ".
Add the following items to the end of php.ini, you can copy the following configuration directly ...
Copy Code code as follows:
[Xcache.admin]
Xcache.admin.enable_auth = Off
Xcache.admin.user = "Cnitpub"
Xcache.admin.pass = "Cnitpub"
[XCache]
Xcache.shm_scheme = "Mmap"
Xcache.size = 256M
Xcache.count = 2
Xcache.slots = 64K
Xcache.ttl = 1800
Xcache.gc_interval = 1800
Xcache.var_size = 8M
Xcache.var_count = 2
Xcache.var_slots = 64K
Xcache.var_ttl = 0
Xcache.var_maxttl = 0
Xcache.var_gc_interval = 300
Xcache.test = Off
Xcache.readonly_protection = Off
Xcache.mmap_path = "XCache"
Xcache.coredump_directory = ""
Xcache.cacher = On
Xcache.stat = Off
Xcache.optimizer = Off
[Xcache.coverager]
Xcache.coverager = Off
Xcache.coveragedump_directory = ""
Attached NOTE:
Xcache.admin.enable_auth XCache Background need to verify (this background in the XCache just downloaded the admin directory, you can freely handle, if not required please set to OFF)
Xcache.admin.user XCache Background Login user name
Xcache.admin.pass XCache Background Login password
Xcache.size XCache Memory Cache size, the normal site recommended set to 64MB, if the IDC server, you can set to 256MB
Xcache.count set to the number of CPUs (double accounting 2)
Xcache.var_size
Xcache.var_count's like two.
Xcache.mmap_path Shared memory identity name, try to use XCache to avoid conflicts with other software
Xcache.optimizer Optimizer, if not installed Zend can be opened, if the Zend has been installed, set to OFF
Restart IIS after saving.
Write a phpinfo.php.
Content is
<?php
Phpinfo ();
?>
See if there is a problem, xcache that section of the XCache support is not enable the
If enable is displayed, the installation is successful.
Configuration completed so far.