xcache config for dummies (like me)

I just read a little here and there about mod_ruid2 and I cant fully understand what it is for. Is there any other use as well other then running process as user instead of nobody? I dont need mod_ruid on servers that run my sites but I recently got a server to provide free hosting to members of one of my forum and a few members have moved their sites on to the new server and its performance is disappointing. It runs with SuPHP and I have got Varnish on there. Do you think it would be ok to change the php handler to DSO and use mod_ruid with it and install APC? Wont they still have access to each others caches and config files?
 
I use this cache config in XenForo configuration for XCache:
Code:
$config['cache'] = array(
    'enabled' => true,
    'frontend' => 'Core',
    'frontendOptions' => array(
            'caching' => true,
            'automatic_serialization' => false,
            'cache_id_prefix' => 'you_prefix_',
            'lifetime' => 18000
    ),
    'backend' => 'Xcache',
    'backendOptions' => array(),
    'cacheSessions' => true
);

This worked well for me, except I was getting horrible results with caching sessions, so I turned that off, but otherwise, it's amazingly fast!
 
This worked well for me, except I was getting horrible results with caching sessions, so I turned that off, but otherwise, it's amazingly fast!
Getting horrible results by what means? How much RAM do you have on your server? What did you set for
xcache.size and xcache_var.size?
 
Getting horrible results by what means? How much RAM do you have on your server? What did you set for
xcache.size and xcache_var.size?

When it was caching sessions, every little thing I did in the admin screen forced the admin login screen to reappear. When I disabled session caching, this behavior went away.

xcache.size = 60M
xcache_var.size=4m
 
I have this.

Code:
$config['cache']['enabled'] = true;
$config['cache']['cacheSessions'] = true;
$config['cache']['backend'] = 'File';
$config['cache']['backendOptions'] ['cache_dir'] = '/path/to/cache';
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions'] ['cache_id_prefix'] = 'xf_';

I'm just using simple file caching though as I'm on a shared server.
I use this cache config in XenForo configuration for XCache:
Code:
$config['cache'] = array(
    'enabled' => true,
    'frontend' => 'Core',
    'frontendOptions' => array(
            'caching' => true,
            'automatic_serialization' => false,
            'cache_id_prefix' => 'you_prefix_',
            'lifetime' => 18000
    ),
    'backend' => 'Xcache',
    'backendOptions' => array(),
    'cacheSessions' => true
);

After trying any of these i'm getting this error: Parse error: syntax error, unexpected T_VARIABLE in /home/____/public_html/library/config.php on line 1

What's wrong? I have installed xcache on my server
 
I've moved from a vhost to a dedicated, and the dedicated I just move to isn't liking what I have below . Please help:

$config['cache']['backend'] = 'file';
$config['cache']['enabled'] = true;
$config['cache']['frontend'] = 'Core';
$config['cache']['frontendOptions']['cache_id_prefix'] = 'xf_';
 
not working. I'm using cpanel and see its installed but can't find /usr/local/lib/php.ini . I'm thinking it wasn't setup completely.
 
So yes, if there is no xCache in php.ini, then it wasn't installed correctly. Do you have a managed service? If yes, ask them to install it for you again.
 
; Directory in which the loadable extensions (modules) reside.
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20090626"
zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.3.so"
extension="xcache.so"
xcache.admin.enable_auth="on"
xcache.admin.pass=""
xcache.admin.user="mOo"
xcache.cacher="On"
xcache.coredump_directory=""
xcache.count="1"
xcache.coveragedump_directory="/tmp/pcov/"
xcache.coverager="Off"
xcache.gc_interval="0"
xcache.mmap_path="/dev/zero"
xcache.optimizer="Off"
xcache.readonly_protection="Off"
xcache.size="0"
xcache.slots="8K"
xcache.test="Off"
xcache.ttl="0"
xcache.var_count="1"
xcache.var_gc_interval="300"
xcache.var_maxttl="0"
xcache.var_size="0"
xcache.var_slots="8K"
xcache.var_ttl="0"
extension = "homeloader.so"
extension = "pdo.so"
extension = "pdo_sqlite.so"
extension = "pdo_mysql.so"
extension="imagick.so"
extension="uploadprogress.so"
extension = "sqlite.so"
 
Thanks for chiming in :)

Operating System: Linux - CentOS 6
Architecture: 64 Bit

X8DTL-6F
Processor 1: Intel Xeon E5620 Quad Core - 2.40Ghz, 12M Cache, 5.86GT/s QPI, HyperThreading
Processor 2: Intel Xeon E5620 Quad Core - 2.40Ghz, 12M Cache, 5.86GT/s QPI, HyperThreading
Memory: 32GB RAM
RAM Type: DDR3 1333/1066 ECC Reg. "x8"
Storage Drive 1: 1TB SATA 7,200RPM
Storage Drive 2: 1TB SATA 7,200RPM
 
Setup a php info page and see if it's there. I would also suggest setting up an admin page for xCache (can see details on xCache's website)
 
I use this cache config in XenForo configuration for XCache:
Code:
$config['cache'] = array(
    'enabled' => true,
    'frontend' => 'Core',
    'frontendOptions' => array(
            'caching' => true,
            'automatic_serialization' => false,
            'cache_id_prefix' => 'you_prefix_',
            'lifetime' => 18000
    ),
    'backend' => 'Xcache',
    'backendOptions' => array(),
    'cacheSessions' => true
);
This worked nicely for me. :)

Although I did remove this 1 single line as it was preventing me from signing into AdminCP

PHP:
'cacheSessions' => true
 
; Directory in which the loadable extensions (modules) reside.
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-zts-20090626"
zend_extension="/usr/local/IonCube/ioncube_loader_lin_5.3.so"
extension="xcache.so"
xcache.admin.enable_auth="on"
xcache.admin.pass=""
xcache.admin.user="mOo"
xcache.cacher="On"
xcache.coredump_directory=""
xcache.count="1"
xcache.coveragedump_directory="/tmp/pcov/"
xcache.coverager="Off"
xcache.gc_interval="0"
xcache.mmap_path="/dev/zero"
xcache.optimizer="Off"
xcache.readonly_protection="Off"
xcache.size="0"
xcache.slots="8K"
xcache.test="Off"
xcache.ttl="0"
xcache.var_count="1"
xcache.var_gc_interval="300"
xcache.var_maxttl="0"
xcache.var_size="0"
xcache.var_slots="8K"
xcache.var_ttl="0"
extension = "homeloader.so"
extension = "pdo.so"
extension = "pdo_sqlite.so"
extension = "pdo_mysql.so"
extension="imagick.so"
extension="uploadprogress.so"
extension = "sqlite.so"
Your issue is with these settings:

xcache.size="0"
xcache.var_size="0"

You've not allocated any memory to them. You need to set these in order to be able to start Xcache properly.

EG:

xcache.size="256M"
xcache.var_size="32M"
 
Although I did remove this 1 single line as it was preventing me from signing into AdminCP
PHP:
'cacheSessions' => true
Strange that you are having problems with caching sessions. Session caching greatly reduces the load on the server. Therefore, it is an important element of the setting.
 
Top Bottom