Opened 7 years ago

Closed 7 years ago

#139 closed defect (invalid)

xcache admin page not showing up scripts run from CLI

Reported by: gardron@… Owned by: moo
Priority: minor Milestone:
Component: admin Version: 1.2.1
Keywords: CLI admin Cc:
Application: PHP Version: 5.2.4
Other Exts: SAPI: Irrelevant
Probability: Always Blocked By:
Blocking:

Description

Hi,

If you run a script from CLI (on linux, in my case Redhat EL4 x64) this script does not show up in xcache web admin page. Anything executed under apache2 works fine, but I'm not sure if this means that the CLI run scripts arn't cached by xcache or if they're just not showing up in xcache admin.

My xcache ini setup follows:

[xcache-common]
zend_extension = /usr/share/php/pecl/5.2.4/xcache.so

[xcache.admin]
xcache.admin.auth = On
xcache.admin.user = "admin"
xcache.admin.pass = "acbd18db4cc2f85cedef654fccc4a4d8"

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

; same as aboves but for variable cache
xcache.var_size = 8M
xcache.var_count = 1
xcache.var_slots = 8K
; default ttl
xcache.var_ttl = 86400
xcache.var_maxttl = 96000
xcache.var_gc_interval = 300
; same as aboves but for variable cache
xcache.var_size = 8M
xcache.var_count = 1
xcache.var_slots = 8K
xcache.var_ttl = 86400
xcache.var_maxttl = 96000
xcache.var_gc_interval = 300

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

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

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

Regards,

--
Gareth Ardron

Change History (1)

comment:1 Changed 7 years ago by moo

  • Resolution set to invalid
  • Status changed from new to closed

cli is not supported, and it's in another process group that cannot access the same shared mem used by your apache/mod_php process group.

if you need to do someting from cli, just put api pages in htdocs/, and try curl/wget the file to execute to code on webserver.

Note: See TracTickets for help on using tickets.