Xcache configuration

computervitals

New Member
Anyone have any good ideas on configuration varibles for the xcache on the VPS servers here?

Now I was told to put the xcache.ini in the php.d directory but it doesn't load xcache.
so
Here's what I put in my php.ini
Code:
[xcache-common]
zend_extension = "/usr/local/lib/php/extensions/no-debug-non-zts-20060613/xcache.so"
; required for >=php5.1 if you turn XCache on
auto_globals_jit = Off
[xcache.admin]
xcache.admin.user = "****"
; paste the output of md5("password") below
xcache.admin.pass = "*****"
[xcache]
xcache.shm_scheme               = "mmap"
xcache.size                     = 48M
xcache.count                    = 2
xcache.slots                    = 1K
xcache.ttl                      = 7200
xcache.gc_interval              = 300
xcache.var_size                 = 24M
xcache.var_count                = 2
xcache.var_slots                = 1K
xcache.var_ttl                  = 7200
xcache.var_maxttl               = 14400
xcache.var_gc_interval          = 300
xcache.test                     = Off
xcache.readonly_protection      = Off
xcache.mmap_path                = "/tmp/xcache"
xcache.coredump_directory       = ""
xcache.cacher                   = On
xcache.stat                     = On
xcache.optimizer                = On
[xcache.coverager]
xcache.coverager                = Off
xcache.coveragedump_directory   = ""
 
download this rpm http://www.jasonlitka.com/media/files/SRPMS/php-xcache-1.2.1-jason.1.src.rpm

then recompile and install it. It sets up most things for you and it puts xcache.ini into /etc/php.d/

xcache.so is located in /usr/lib/*** not /usr/local/lib/***

rpm -qp --requires php-xcache-1.2.1-jason.1.src.rpm
yum install php-devel autoconf automake libtool
rpmbuild --rebuild php-xcache-1.2.1-jason.1.src.rpm
rpm -ivh /usr/src/redhat/RPMS/i386/php-xcache-5.1.6_1.2.1-jason.1.i386.rpm
 
Top