Xcache and php file permissions

Discussion in 'Site & Server Administration' started by ASTRAPI, Dec 5, 2010.

  1. #1
    Hello

    I have a problem as i was try to use xache on my invision forum.

    I was install it on a cpanel server with only one account inside bt is caching only 100 out of 10.000 hits :(

    I am not using suexec on fast cgi handler that i use.

    (also i was add the xcache line on invision config)

    Any ideas why it is not working?

    Now i am thinking that maybe the problem is something related to php security that i do not know or maybe that i was upload the files on the server as root and not with the username of the account and the permissions are not correct.... or not?

    Thank you
     
    ASTRAPI, Dec 5, 2010 IP
  2. SysAssist

    SysAssist Peon

    Messages:
    10
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I'll try to help out, if only you could post your xchache settings. There's not enough information in your post.
     
    SysAssist, Dec 6, 2010 IP
  3. ASTRAPI

    ASTRAPI Guest

    Messages:
    500
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    [xcache-common]
    zend_extension = /usr/local/lib/php/extensions/no-debug-non-zts-20090626/xcache.so

    [xcache.admin]
    xcache.admin.enable_auth = Off
    xcache.admin.user = ""
    xcache.admin.pass = ""

    [xcache]
    xcache.shm_scheme = "mmap"
    xcache.size = 512M
    xcache.count = 4
    xcache.slots = 32K
    xcache.ttl = 0
    xcache.gc_interval = 0

    xcache.var_size = 512M
    xcache.var_count = 4
    xcache.var_slots = 32K
    ; default ttl
    xcache.var_ttl = 0
    xcache.var_maxttl = 0
    xcache.var_gc_interval = 0

    xcache.test = Off
    xcache.readonly_protection = Off
    xcache.mmap_path = "/dev/zero"


    ; leave it blank(disabled) or "/tmp/phpcore/"
    ; make sure it's writable by php (without checking open_basedir)
    xcache.coredump_directory = ""

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

    [xcache.coverager]
    xcache.coverager = Off

    xcache.coveragedump_directory = ""
     
    ASTRAPI, Dec 6, 2010 IP
  4. SysAssist

    SysAssist Peon

    Messages:
    10
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Where did you install the xcache admin utility (in which dir)?
     
    SysAssist, Dec 6, 2010 IP
  5. ASTRAPI

    ASTRAPI Guest

    Messages:
    500
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Check your pm please :)
     
    ASTRAPI, Dec 6, 2010 IP
  6. shraddha_v

    shraddha_v Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Hi,
    Can u please help me with some examples how to write the actual script in PHP using XCache.
    Thanks..
    Shraddha.
     
    shraddha_v, Mar 26, 2012 IP