PDA

View Full Version : Xcache error, is it working properly and supported by PHP?



Fli
09-28-2014, 09:34 AM
Got this error on an vbulletin forum with vbseo after enabling "Cache Type" xCache in vbseo admin / General settings


[28-Sep-2014 07:15:58 UTC] PHP Warning: xcache_isset() [<a href='function.xcache-isset'>function.xcache-isset</a>]: XCache var cache was not initialized properly. Check php log for actual reason in /home/myusername/public_html/vbseo/includes/functions_vbseo_cache.php on line 84

the functions_vbseo_cache.php

switch ($this->cache_type)
{
case 1:
if ($this->connect())
$rdata = $this->mchandle->get(VBSEO_CACHE_VAR);
break;
case 2:
$rdata = apc_fetch(VBSEO_CACHE_VAR);
break;
case 3:
if (xcache_isset(VBSEO_CACHE_VAR))
$rdata = xcache_get(VBSEO_CACHE_VAR);
break;
case 4:
$rdata = eaccelerator_get(VBSEO_CACHE_VAR);
break;
}


I want to ask if xcache is properly set on my linux server, if anyone knows what is the issue?


root@host1 [/]# php -vPHP 5.3.28 (cli) (built: Aug 1 2014 04:28:18)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend Technologies
with XCache v3.1.0, Copyright (c) 2005-2013, by mOo
with the ionCube PHP Loader v4.6.1, Copyright (c) 2002-2014, by ionCube Ltd. , and
with Zend Guard Loader v3.3, Copyright (c) 1998-2010, by Zend Technologies
with XCache Cacher v3.1.0, Copyright (c) 2005-2013, by mOo
with Suhosin v0.9.33, Copyright (c) 2007-2012, by SektionEins GmbH
root@host1 [/]# httpd -v
Server version: Apache/2.2.27 (Unix)
Server built: Aug 1 2014 04:13:19
Cpanel::Easy::Apache v3.26.3 rev9999


root@host1 [~]# cat /usr/local/lib/php.ini | grep cacheextension="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 = "memcache.so"
; Set to {nocache,private,public,} to determine HTTP caching aspects
session.cache_limiter = nocache
session.cache_expire = 180

from phpinfo():

XCache



XCache Version
3.1.0


Modules Built
cacher





Directive
Local Value
Master Value


xcache.coredump_directory
no value
no value


xcache.disable_on_crash
Off
Off


xcache.experimental
Off
Off


xcache.test
Off
Off



XCache Cacher



XCache Cacher Module
enabled


Readonly Protection
disabled


Page Request Time
2014-09-28 08:27:42


Cache Init Time
1970-01-01 00:00:00


Cache Instance Id
0


Opcode Cache
disabled


Variable Cache
disabled


Shared Memory Schemes
mmap




quote1: "it may be almost useless to use xcache var under php suExec"
quote2: "xcache is not supported in php-cli"

Thank you

---
Advertisement: Click Here (http://www.lightrabbit.pro) for electrical contractors