xcache var size 0

Discussion in 'LSWS 4.1 Release' started by bhanuprasad1981, Oct 19, 2010.

  1. bhanuprasad1981

    bhanuprasad1981 New Member

    i am getting this error to fix this i need to edit php.ini xacache size , but where to find it :(
  2. NiteWave

    NiteWave Administrator

  3. bhanuprasad1981

    bhanuprasad1981 New Member

    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
  4. NiteWave

    NiteWave Administrator

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

    bhanuprasad1981 New Member

    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 .
  6. NiteWave

    NiteWave Administrator

    check phpinfo() again, if xcache is there.

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

    bhanuprasad1981 New Member

    yes its there and value is 30m

    see screenshot and please guide

    Attached Files:

  8. NiteWave

    NiteWave Administrator

    php suExec enabled or not ?
  9. bhanuprasad1981

    bhanuprasad1981 New Member

  10. NiteWave

    NiteWave Administrator

    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
  11. bhanuprasad1981

    bhanuprasad1981 New Member

    ok , i disabled suexec and i need xcache , weirdly phpinfo shows xcache is loaded but still i get var size issue even it is more than 30m here is my phpinfi url :-

    Code:
    10gb.in/phpinfo.php
    also i saw php.ini location is still default one is this ok ?
  12. NiteWave

    NiteWave Administrator

    no problem of php.ini location.

    "still i get var size issue" -- where did the error message come from? web server log or any other log?
  13. bhanuprasad1981

    bhanuprasad1981 New Member

    customers vb script throws this error when he tried to use xcache

Share This Page