First of all, the strong spit groove, Baidu on the tutorial, are left copy right copy, a mess, lack of east-west. Take this slightly cool greatly I provide my painstaking finishing good tutorial. So that you can smooth the use of XCache to accelerate PHP, if finished, also operation, or failure, please contact micro-cool Big QQ 496928838, micro-cool big also want to see how you are not installed step by step.
Cool greatly original material, reproduced kneeling beg you to keep good my information.
#第一步, download XCache
wget http://xcache.lighttpd.net/pub/Releases/3.1.0/xcache-3.1.0.tar.gz
#第一步非常简单, if you can't download it, it's character problem.
#第二步, decompression XCache source code.
TAR-ZVXF xcache-3.1.0.tar.gz
#第二部, is also very simple, if you can not extract is character problem.
#接下来, by the way, into the installation directory
CD xcache-3.1.0
#第三步, very important, the basic error is here.
#首先, the Phpize configuration is performed prior to installation
Path to/php/bin/phpize
#请确保已经安装了php, if you do not have PHP installed, please install PHP first. (Crap, you don't load PHP, what XCache AH)
#接下来, configuration----compile-and-install, can be one step, provided you have no errors in the path.
#配置./configure--prefix=/php Path/lib/php/extensions \--with-php-config=/php path/bin/php-config \--enable-xcache# Compile make# install make install
#安装完成后, something similar to the following will appear, proving that the installation was successful.
/www/php/extensions/no-debug-non-zts-20060613/
#到这里, even if the installation is complete, the rest is the configuration work.
#把xcache管理页面, move to the Web directory.
CP./htdocs/www/web/xcache-r
#./htdocs, this is in the source directory. Don't tell me you can't find it.
#/www/web/xcache,web directory, name what you like.
#当然, if you're stupid. I can't afford to use this command. Then, in the extracted good source directory, directly through the FTP tools, such as direct Mobile is OK.
Configure PHP.ini,
or in the source directory, find Xcache.ini, and then directly after the php.ini add on the line.
#或者用以下命令, append config file Xcache.ini to php.ini
Path to Cat Xcache.ini >>/php/etc/php.ini
#如果你很笨, or recommend FTP inside operation, because later also to modify under the management of the user name and password ...
Notice that you modify the properties in the Xcache.ini. At this point after the execution of the above command, it is necessary to edit php.ini.
Xcache.admin.user = "Admin"
Xcache.admin.pass = "21232F297A57A5A743894A0E4A801FC3"
Password is admin, want to change the password what, with your intelligence you understand.
Xcache.mmap_path = "/tmp/xcache"
#这个文件建议在tmp目录咯, remember to give 777 permission.
Touch/tmp/xcachechmod 777/tmp/xcache
The above is a place to pay attention to.
Here are the Xcache.ini I've configured, and I'll get rid of the notes.
To comment, please go to http://xcache.lighttpd.net/wiki/XcacheIni here to see slowly ...
[xcache-common]extension = Xcache.so[xcache.admin]xcache.admin.enable_auth = Onxcache.admin.user = "Admin" Xcache.admin.pass = "21232F297A57A5A743894A0E4A801FC3" [xcache]xcache.shm_scheme = "mmap" xcache.size = 128mxcache.count = 1xcache.slots = 8kxcache.ttl = 0xcache.gc_interval = 0xcache.var_size = 4mxcache.var_count = 1xcache.var_slots = 8kxcache.var_ttl = 0xcache.var_maxttl = 0xcache.var_gc_interval = 300xcache.var_namespace_mode = 0xcache.v Ar_namespace = "" xcache.readonly_protection = Offxcache.mmap_path = "/tmp/xcache" xcache.coredump_directory = " "Xcache.coredump_type = 0xcache.disable_on_crash = Offxcache.experimental = Offxcache.cacher = Onxcache.stat = Onxcache.optimizer = Off[xcache.coverager]xcache.coverager = OFFX Cache.coverager_autostart = onxcache.coVeragedump_directory = ""
Restart the server, it is so simple, if no accident installed.
Service httpd Restart
See if there are any xcache in phpinfo. There is proof that the installation was successful.
If the configuration is complete, the page will not open. Prove that you have php.ini in conflict.
For example Zend Optimizer, this thing will conflict. The workaround is to change the zend_extension into a XCache defined cache file.