lighttpd forum XCache > XCache.size = 0

Posted by George Nabil Elias (Guest)
on 08.09.2008 02:42
Hello

I installed the xcash as this topic said:
http://www.vbulletin.com/forum/showthread.php?t=273929

First I get an error when tring to run this command:
/usr/lib/php/extensions/no-debug-non-zts-20020616/xcache.so

I get this error:
"-bash: /usr/lib/php/extensions/no-debug-non-zts-20020616/xcache.so: No 
such file or directory"

and after that I add this to php.ini
-------------------
[xcache-common]
zend_extension = 
/usr/lib/php/extensions/no-debug-non-zts-20020616/xcache.so

; required for >=php5.1 if you turn XCache on
auto_globals_jit = Off

[xcache.admin]
xcache.admin.user = "admin"
; paste the output of md5("password") below
xcache.admin.pass = ""

[xcache]
xcache.shm_scheme		= "mmap"
xcache.size			= 64M
xcache.count			= 2
xcache.slots			= 8K
xcache.ttl			= 7200
xcache.gc_interval		= 300

xcache.var_size			= 64M
xcache.var_count		= 2
xcache.var_slots		= 8K
xcache.var_ttl			= 7200
xcache.var_maxttl		= 14400
xcache.var_gc_interval		= 300

xcache.test			= Off
xcache.readonly_protection	= Off
xcache.mmap_path		= "/dev/zero"
xcache.coredump_directory	= ""

xcache.cacher			= On
xcache.stat			= On
xcache.optimizer		= On

[xcache.coverager]
xcache.coverager		= Off
xcache.coveragedump_directory	= ""
------------------------

I add the xcache.count = 2 because my cpu is dual core.

now when I open tht phpinfo I get the size and count =0
you can check it at http://www.ava-kyrillos.com/phpinfo.php

So can you help me how I can solve this error.

Thanks a lot
George
Posted by moo XCache
on 08.09.2008 08:59
George Nabil Elias wrote:
> Hello
> 
> I installed the xcash as this topic said:
i wish it's cash not cache :)

> http://www.vbulletin.com/forum/showthread.php?t=273929
> 
> First I get an error when tring to run this command:
> /usr/lib/php/extensions/no-debug-non-zts-20020616/xcache.so
this is not a command to run
> 
> I get this error:
> "-bash: /usr/lib/php/extensions/no-debug-non-zts-20020616/xcache.so: No 
> such file or directory"
the topic told you to remember the path, not to run it.


your phpinfo looks good except xcache.size is wrong. search 
"xcache.size" (without quotes) in file /usr/local/lib/php.ini, change 
the value to 64M or so
Posted by George Nabil Elias (Guest)
on 08.09.2008 18:22
Thanks for your replay.

> your phpinfo looks good except xcache.size is wrong. search 
> "xcache.size" (without quotes) in file /usr/local/lib/php.ini, change 
> the value to 64M or so

I changed the "xcache.size" to be 64M and the "xcache.count" to be =2 
because the server has one cpu dual core.

and I saved it

but in the phpinfo I see it
xcache.size=0
xcache.count=0

so what is the wrong

Posted by JTD (Guest)
on 09.09.2008 12:46
Not to state the obvious (but sometimes it helps)... did you remember to 
restart the Web server (i.e. Apache, lighttpd, etc.)? I always have to 
bounce Apache to make sure it rescans php.ini before changes take 
effect.

PS: Don't forget to set an admin password if you're using the admin 
pages, or anyone can waltz right in and modify or clear your cache.
Posted by George Nabil Elias (Guest)
on 10.09.2008 10:22
JTD wrote:
> Not to state the obvious (but sometimes it helps)... did you remember to 
> restart the Web server (i.e. Apache, lighttpd, etc.)? I always have to 
> bounce Apache to make sure it rescans php.ini before changes take 
> effect.
> 
> PS: Don't forget to set an admin password if you're using the admin 
> pages, or anyone can waltz right in and modify or clear your cache.


Hi

I restarted the server ( make a full restart )
and I add new username and password for admin.

and I changed the "xcache.size" to be 64M and the "xcache.count" to be 
=2
because the server has one cpu dual core.

but it sill = 0 on phpinfo
you can check it at http://www.ava-kyrillos.com/phpinfo.php

Please tell me how I solve it.

Thanks a lot
George
Posted by JTD (Guest)
on 18.09.2008 16:31
Since your phpinfo() states the cacher setting is on (xcache.cacher = 
On), the only thing I can think of is that you've accidentally commented 
out xcache.size and/or xcache.count.  Both of those are definitely 
showing up as zero in phpinfo() and your opcode cache is disabled.  You 
might want to check your INI settings in a text editor that supports 
syntax highlighting and make sure you don't have a semicolon in front of 
those lines.

Beyond that, what you've printed above looks OK to me.  I can't see 
anything that could be wrong.  Sorry I can't be any more help....