HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Trying to properly setup XCache with OCPortal

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#75860 (In Topic #15681)
Avatar

Well-settled

After reading all the good comments about XCache and in my effort to speed up my site (www.metal-temple.com), I decided to install it in the VPS host I'm using (1.3GHz, 768MB).

I installed it succesfully, put the settings over Zend, deactivated APC and it showed up just fine in phpinfo. The site crashed though and my error_log was filled with these lines:

Code

[09-Oct-2011 10:49:19] PHP Warning:  array_key_exists() expects parameter 2 to be array, null given in /home/metaltem/public_html/sources/caches_xcache.php on line 54
[09-Oct-2011 10:49:19] PHP Warning:  xcache_get() [function.xcache-get.php]: xcache.var_size is either 0 or too small to enable var data caching in /home/metaltem/public_html/sources/caches_xcache.php on line 34
[09-Oct-2011 10:49:19] PHP Warning:  xcache_set() [function.xcache-set.php]: xcache.var_size is either 0 or too small to enable var data caching in /home/metaltem/public_html/sources/caches_xcache.php on line 57
[09-Oct-2011 10:49:19] PHP Warning:  xcache_set() [function.xcache-set.php]: xcache.var_size is either 0 or too small to enable var data caching in /home/metaltem/public_html/sources/caches_xcache.php on line 60
[09-Oct-2011 10:49:25] PHP Fatal error:  Out of memory (allocated 14417920) (tried to allocate 491520 bytes) in /home/metaltem/public_html/sources/files2.php on line 778
[09-Oct-2011 10:49:26] PHP Warning:  Cannot modify header information - headers already sent by (output started at /home/metaltem/public_html/sources/caches_xcache.php:54) in sources/ajax.php on line 249
[09-Oct-2011 10:49:26] ocPortal:  PHP WARNING [2] Cannot modify header information - headers already sent by (output started at /home/metaltem/public_html/sources/caches_xcache.php:54) in sources/ajax.php on line 249 (version: 7.1.5, PHP version: 5.3.8, URL: /data/comcode_convert.php?css=1&javascript=1&box_title=Preview&utheme=Metal_Temple_com)
[09-Oct-2011 10:49:26] PHP Warning:  xcache_get() [function.xcache-get.php]: xcache.var_size is either 0 or too small to enable var data caching in /home/metaltem/public_html/sources/caches.php on line 66

Needless to say I switched back to APC but I'm trying to figure out how to get it working. This is my php.ini xcache settings part:

Code

[xcache-common]
;; install as zend extension (recommended), normally "$extension_dir/xcache.so"
zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20090626/xcache.so
zend_extension_ts = /usr/local/lib/php/extensions/no-debug-non-zts-20090626/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
auto_globals_jit = Off

[xcache.admin]
xcache.admin.auth = On
xcache.admin.user = "metaltem"
; xcache.admin.pass = md5($your_password)
xcache.admin.pass = "*****" ;;<- password converted with md5 generator

[xcache]
xcache.shm_scheme =        "mmap"
xcache.size  =               60M
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  =            4M
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


I'm a noob in properly setting up a unix server so any help is appreciated. :)
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: