Install configuration XCache cache method and XCache download _win server under IIS Server

Source: Internet
Author: User
Tags zend ntfs permissions
win2003+iis6 install XCache cache for PHP
Extract the XCache and place the Php_xcache.dll in the php.ini designated Extension_dir (this example is "D:\php\ext").
Start configuration below, open php.ini
Add (remember to add, do not replace the original zend_extension_ts parameters)
Zend_extension_ts = "($extension _dir) \php_xcache.dll"
When configured, replace ($extension _dir) with an absolute path ext (such as: D:\php\ext\php_xcache.dll). Need to be put in front of the Zend.
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 = "UserName"//Can be modified by oneself
Xcache.admin.pass = "PassWord"//Can be modified by oneself
[XCache]
Xcache.shm_scheme = "Mmap"
Xcache.size = 32M//Can be modified by oneself
Xcache.count = 2//Can be modified by oneself
Xcache.slots = 8K
Xcache.ttl = 0
Xcache.gc_interval = 0
Xcache.var_size = 2M
Xcache.var_count = 2
Xcache.var_slots = 8K
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 = ""

The values that need to be modified are already marked in blue, as described below:
Copy Code code as follows:

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, such as mine is two dual-core Xeon 3.0, set to 4)
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, above we have installed the Zend, so set to off

This configuration is complete, restart IIS ...

XCache Download Address:
Http://www.jb51.net/softs/41097.html
http://xcache.lighttpd.net/pub/Releases/

Then open info.php again, look for "XCache", if you find information about XCache, that means the configuration is correct ... The relevant information is as follows (the content shown in the figure will vary depending on the parameter configuration):
If you do not find it, try the 3rd of the following troubleshooting questions ...
As for why not extension, and with Zend_extension_ts, because the distribution of the XCache interface is ZEND_API, directly with the extension can not initialize.
XCache Troubleshooting
1.phpinfo () shows no load Php_xcache.dll
Check that the NTFS permissions for Php_xcache.dll are correct and need to be read-only for site users (or guests).
2. PHP Memory error occurred
Using the extension call Php_xcache.dll, try using Zend_extension_ts.
3. Open the Web page is not responding, errors Fatal error: [Zend Optimizer] Zend Optimizer * * are incompatible with XCache 1.2.2
This is due to the installation of Zend, the solution is very simple, the call to Php_xcache.dll Zend_extension_ts refers to the front of the call Zend. For example:
zend_extension_manager.optimizer_ts= "D:\Program files\zend\zendoptimizer-3.3.0\lib\optimizer-3.3.0"
Zend_extension_ts= "C:\php\ext\php_xcache.dll"
zend_extension_ts= "C:\Program Files\zend\zendoptimizer-3.3.0\lib\zendextensionmanager.dll"
To this end, the XCache cache is configured to complete

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.