AppVZ.com
Phone Tech support
+84.904982000
Email
Language: Vietnamese English Germany France

Install Xcache to increase performance

Features of Xcache:

  • Increase performance.
  • Xcache work on PHP_4_3/PHP_4_4/PHP_5_1/PHP_5_2

Install:

  • Step 1: Login by Root account, download Xcache:

cd /tmp
wget http://xcache.lighttpd.net/pub/Releases/1.2.2/xcache-1.2.2.tar.gz
tar -xvf xcache-1.2.2.tar.gz

  • Step 2: Check:

cd xcache-1.2.2
phpize

Must show:

PHP Api Version: 20041225
Zend Module Api No: 20060613
Zend Extension Api No: 220060519

  • Step 3: Install:

./configure --enable-xcache
make
make install

  • Step 4: Configure

Open php.ini file

Find line extension_dir, drop old and field /usr/local/lib/php/extensions/no-debug-non-zts-20060613/

Add Xcache (Before Zend):

[xcache-common]

;; install as zend extension (recommended), normally "$extension_dir/xcache.so"

zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20060613/xcache.so

zend_extension_ts = /usr/local/lib/php/extensions/no-debug-non-zts-20060613/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.admin]

xcache.admin.auth = On

xcache.admin.user = "mOo"

; xcache.admin.pass = md5($your_password)

xcache.admin.pass = ""


[xcache]

xcache.shm_scheme = "mmap"

xcache.size = 32M

xcache.count = 1

xcache.slots = 8K

xcache.ttl = 3600

xcache.gc_interval = 300


; Same as aboves but for variable cache

; If you don't know for sure that you need this, you probably don't

xcache.var_size = 0M

xcache.var_count = 1

xcache.var_slots = 8K

xcache.var_ttl = 0

xcache.var_maxttl = 0

xcache.var_gc_interval = 300


; N/A for /dev/zero

xcache.readonly_protection = Off

xcache.mmap_path = "/dev/zero"

xcache.cacher = On

xcache.stat = On

  • Step 5: Restart Apache and check

 

/etc/init.d/httpd restart

php -v



Was this answer helpful?

Also Read
Chmod cho Wordpress (Views: 3855)
Chmod for Wordpress (Views: 2330)
Chmod for Joomla (Views: 2302)

Quick Navigation

Client Login

Email

Password

Remember Me

Search


Follow Us on Twitter

Online Payments Accepted

Payments

Copyright © 2009 - 2022 by AppVZ.com
Networks System - Term of Services