LiteSpeed Support Forums

LiteSpeed Support Forums (http://www.litespeedtech.com/support/forum/index.php)
-   LSWS 4.1 Release (http://www.litespeedtech.com/support/forum/forumdisplay.php?f=26)
-   -   xcache var size 0 (http://www.litespeedtech.com/support/forum/showthread.php?t=4394)

bhanuprasad1981 10-18-2010 08:02 PM

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 :(

NiteWave 10-18-2010 10:45 PM

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

bhanuprasad1981 10-19-2010 05:35 AM

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

NiteWave 10-19-2010 08:26 AM

check phpinfo(), the value of "Configuration File (php.ini) Path"

bhanuprasad1981 10-19-2010 09:52 AM

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 .

NiteWave 10-19-2010 05:43 PM

check phpinfo() again, if xcache is there.

if it's not there, check extension_dir, and check if
$extension_dir/xcache.so exists.

bhanuprasad1981 10-19-2010 08:15 PM

1 Attachment(s)
yes its there and value is 30m

see screenshot and please guide

NiteWave 10-19-2010 09:21 PM

php suExec enabled or not ?

bhanuprasad1981 10-20-2010 09:57 AM

yes enabled

NiteWave 10-20-2010 06:10 PM

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.