xcache - changing var and admin options doesn't take affect

152 views
Skip to first unread message

Bono

unread,
Jan 19, 2012, 8:37:15 AM1/19/12
to XCache
Hi, I'm trying to fix xcache on my server but I have so many strange
problems.

My setup: Apache 2.2.1, PHP 5.3.9, mod_fcgid/2.3.6 and Apache suEXEC.

My problem is if I change xcache_size tha takes affect when I restart,
but if I change admin_enable or var size that doesn't take effect.
So when I try to login I get this:

Fatal error: xcache_count() [<a href='http://xcache.lighttpd.net/wiki/
InstallAdministration'>http://xcache.lighttpd.net/wiki/
InstallAdministration</a>]: xcache.admin.user and/or xcache.admin.pass
settings is not configured. Make sure you've modified the correct php
ini file for your php used in webserver. in /home/h3s/public_html/
xcache/xcache.php on line 211

and it logs xcache is complaing about 0 byte var cache size.

How can I fix this?

; Directory in which the loadable extensions (modules) reside.
extension_dir = "/usr/local/lib/php/extensions/no-debug-non-
zts-20090626"
extension="xcache.so"
[xcache.admin]
xcache.admin_enable_auth="on"
xcache.admin_pass="xx"
xcache.admin_user="user"

[xcache]
xcache.cacher="On"
xcache.coredump_directory=""
xcache.count="4"
xcache.coveragedump_directory="/tmp/pcov/"
xcache.coverager="On"
xcache.gc_interval="0"
xcache.mmap_path="/dev/zero"
xcache.optimizer="Off"
xcache.readonly_protection="Off"
xcache.size="128M"
xcache.slots="8K"
xcache.test="Off"
xcache.ttl="0"
xcache.var_count="2"
xcache.var_gc_interval="300"
xcache.var_maxttl="0"
xcache.var_size="0"
xcache.var_slots="8K"
xcache.var_ttl="0"

Bono

unread,
Jan 19, 2012, 8:42:13 AM1/19/12
to XCache
This is how phpinfo reports it:

http://i268.photobucket.com/albums/jj5/Bono007/problems/phpinfo2012-01-1914-38-59.png

It says admin is enabled but it reports errors when I try to load the
admin page.

xcache

unread,
Jan 19, 2012, 8:51:36 AM1/19/12
to xca...@googlegroups.com
extension = xcache.so is deprecated
use zend_extension = /path/to/xcache.so instead

you gotta copy xcache-src/admin/* to your htdocs/xcache-admin/. and
you didn't tell me what the errors it reported

Bono

unread,
Jan 19, 2012, 9:01:04 AM1/19/12
to XCache


On Jan 19, 2:51 pm, xcache <phpxca...@gmail.com> wrote:
> extension = xcache.so is deprecated
> use zend_extension = /path/to/xcache.so instead
>
> you gotta copy xcache-src/admin/* to your htdocs/xcache-admin/. and
> you didn't tell me what the errors it reported
>

I compiled via easyapache in cpanel, I will remove it now and compile
from source and report back.

Thanks

xcache

unread,
Jan 19, 2012, 9:04:32 AM1/19/12
to xca...@googlegroups.com
ok, make sure it is build against php5-dev package that correspond to
the exact php5 version you're running

Bono

unread,
Jan 19, 2012, 9:33:58 AM1/19/12
to XCache


On Jan 19, 3:04 pm, xcache <phpxca...@gmail.com> wrote:
> ok, make sure it is build against php5-dev package that correspond to
> the exact php5 version you're running

Compiling from source worked, damn cPanel sometimes it makes your life
easy and sometimes hard.

Is it recommended to turn this on?
Why is my cache being cleared?

Set PHP_FCGI_CHILDREN to 1 or greater if you're using php FastCGI.

xcache

unread,
Jan 19, 2012, 9:35:57 AM1/19/12
to xca...@googlegroups.com
use fastcgi instead of cgi. use 1 php parent with multiple childrens

Bono

unread,
Jan 19, 2012, 9:37:23 AM1/19/12
to XCache


On Jan 19, 3:35 pm, xcache <phpxca...@gmail.com> wrote:
> use fastcgi instead of cgi. use 1 php parent with multiple childrens
>

I'm using FastCGI:
Server Version: Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-
fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/
5.0.2.2635 mod_fcgid/2.3.6

xcache

unread,
Jan 19, 2012, 9:39:44 AM1/19/12
to xca...@googlegroups.com
fcgid is known to make multiple php parent
see http://xcache.lighttpd.net/wiki/Faq#Whyismycachebeingcleared

Bono

unread,
Jan 19, 2012, 9:49:17 AM1/19/12
to XCache


On Jan 19, 3:39 pm, xcache <phpxca...@gmail.com> wrote:
> fcgid is known to make multiple php parent
> seehttp://xcache.lighttpd.net/wiki/Faq#Whyismycachebeingcleared
>
Thanks a lot. :)

Bono

unread,
Jan 31, 2012, 5:13:51 AM1/31/12
to XCache
Since FCGI had upload bug so I couldn't upload more than 60KB I
switched to suPHP. So i'm wondering is it possible to run xcache and
suPHP like it works with eaccelerator where temp dir is mounted in ram
disk?

Thanks

xcache

unread,
Jan 31, 2012, 5:34:07 AM1/31/12
to xca...@googlegroups.com
sorry, no

Bono

unread,
Jan 31, 2012, 4:33:21 PM1/31/12
to XCache


On Jan 31, 11:34 am, xcache <phpxca...@gmail.com> wrote:
> sorry, no

Shame, I prefer Xcache over eAccelerator. :(
Reply all
Reply to author
Forward
0 new messages