![]() |
xcache var size 0
i am getting this error to fix this i need to edit php.ini xacache size , but where to find it :(
|
please refer:
http://xcache.lighttpd.net/wiki/XcacheIni http://xcache.lighttpd.net/browser/trunk/xcache.ini default: xcache.var_size=0 try: xcache.var_size=4M or xcache.var_size=16M etc |
hello , i know what settings i need to change,but where to find litespeed php.ini ,everything works fine in apache, i get error in litespeed only , so i assume litespeed uses some different php.ini
|
check phpinfo(), the value of "Configuration File (php.ini) Path"
|
i see same path of apache "/usr/local/lib/php.ini
there xcache var size is already 30m :( xcache is actually compiled in apache, i coped same configuration to litespeed using litespeed option "build matching php binary" option . |
check phpinfo() again, if xcache is there.
if it's not there, check extension_dir, and check if $extension_dir/xcache.so exists. |
1 Attachment(s)
yes its there and value is 30m
see screenshot and please guide |
php suExec enabled or not ?
|
yes enabled
|
it may be almost useless to use xcache var under php suExec
opcode cache is associated with a php process, web server start/stop the php process dynamically. 2 consecutive requests from a user may be served by different php process. that means cached var in previous request can't be referenced in current request. if php process fork sub process, then cached var can be shared between these parent/child process. otherwise, cache can't be shared between php process -- not say it's impossible in principle, but it's the status of current top 3 implementation of opcode cache: APC, eAccelerator, XCache |
| All times are GMT -7. The time now is 12:13 PM. |