LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > LSWS 4.1 Release > xcache var size 0

Reply
 
Thread Tools Display Modes
  #1  
Old 10-18-2010, 08:02 PM
bhanuprasad1981 bhanuprasad1981 is offline
Senior Member
 
Join Date: Apr 2009
Posts: 160
Red face 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
Reply With Quote
  #2  
Old 10-18-2010, 10:45 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,227
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
Reply With Quote
  #3  
Old 10-19-2010, 05:35 AM
bhanuprasad1981 bhanuprasad1981 is offline
Senior Member
 
Join Date: Apr 2009
Posts: 160
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
Reply With Quote
  #4  
Old 10-19-2010, 08:26 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,227
check phpinfo(), the value of "Configuration File (php.ini) Path"
Reply With Quote
  #5  
Old 10-19-2010, 09:52 AM
bhanuprasad1981 bhanuprasad1981 is offline
Senior Member
 
Join Date: Apr 2009
Posts: 160
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 .
Reply With Quote
  #6  
Old 10-19-2010, 05:43 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,227
check phpinfo() again, if xcache is there.

if it's not there, check extension_dir, and check if
$extension_dir/xcache.so exists.
Reply With Quote
  #7  
Old 10-19-2010, 08:15 PM
bhanuprasad1981 bhanuprasad1981 is offline
Senior Member
 
Join Date: Apr 2009
Posts: 160
yes its there and value is 30m

see screenshot and please guide
Attached Images
File Type: jpg Capture.jpg (17.4 KB, 4 views)
Reply With Quote
  #8  
Old 10-19-2010, 09:21 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,227
php suExec enabled or not ?
Reply With Quote
  #9  
Old 10-20-2010, 09:57 AM
bhanuprasad1981 bhanuprasad1981 is offline
Senior Member
 
Join Date: Apr 2009
Posts: 160
yes enabled
Reply With Quote
  #10  
Old 10-20-2010, 06:10 PM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,227
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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 02:29 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.