http://forum.esc.vn/attachment.php?...83&d=1287137420
Nếu hệ thống đã cài đặt bất kì phần hỗ trợ cacher nào, bạn cần phải remove nó ra trước khi cài Xcache (eAccelerator, APC, ...):
Remove eAccelerator:
yum remove php-eaccelerator
Remove APC:
yum remove php-pecl-apc
Restart lại apache:
/etc/init.d/httpd restart
** Cài đặt Xcache
[IMG]file:///C:/Users/HOANGQ%7E1/AppData/Local/Temp/moz-screenshot.png[/IMG]yum install php-devel
yum groupinstall 'Development Tools'
yum groupinstall 'Development Libraries'
Download Xcache về và giải nén và cài đặt
wget
http://xcache.lighttpd.net/pub/Relea...e-1.3.0.tar.gz
tar xvfz xcache-1.3.0.tar.gz
cd xcache-1.3.0
phpsize
./configure --enable-xcache
make
make install
Tiếp theo chúng ta sẽ copy file xcache.ini vào thư mục /etc/php.d:
cp xcache.ini /etc/php.d
Bây giờ, ta sẽ cấu hình lại file php.ini, khai báo để xcache hoạt động:
[xcache-common] ;; install as zend extension (recommended), normally "$extension_dir/xcache.so" ;zend_extension = /usr/local/lib/php/extensions/non-debug-non-zts-xxx/xcache.so ; zend_extension_ts = /usr/local/lib/php/extensions/non-debug-zts-xxx/xcache.so ;;
For windows users, replace xcache.so with php_xcache.dll ;zend_extension_ts = c:/php/extensions/php_xcache.dll ;; or install as extension, make sure your extension_dir setting is correct extension = xcache.so ;; or win32: ; extension = php_xcache.dll [...]
xcache.size = 60M [...]
Restart lại Apache và kiểm tra lại bằng info.php