The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

xcache error

Discussion in 'Workarounds and Optimization' started by jazz1611, Jun 10, 2013.

  1. jazz1611

    jazz1611 Well-Known Member

    Joined:
    Jun 5, 2012
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hi,

    I have VPS with 800GB HDD, 8GB RAM Dedicated, 6 Core CPUs - KVM installed cPanel.

    Apache 2.2 - CloudLinux 6.4 64bit - cPanel Varnish Nginx Plugin - PHP CGI/FastCGI

    Infomration PHP info: /http://hostjp.net/test.php

    I get error xcache from my website.

    PHP:
    [10-Jun-2013 13:10:34 Asia/Ho_Chi_MinhPHP Fatal error:  Cannot open or create file set by xcache.mmap_pathcheck the path permission or check xcache.size/var_size against system limitation in Unknown on line 0
    [10-Jun-2013 13:10:34 Asia/Ho_Chi_MinhPHP Fatal error:  XCacheCannot create shm in Unknown on line 0
    Setting xcache in php.ini current:

    PHP:
    xcache.admin.enable_auth="on"
    xcache.admin.pass=""
    xcache.admin.user="mOo"
    xcache.cacher="On"
    xcache.coredump_directory=""
    xcache.count="6"
    xcache.coveragedump_directory="/tmp/pcov/"
    xcache.coverager="On"
    xcache.gc_interval="0"
    xcache.mmap_path="/tmp/xcache/"
    xcache.optimizer="Off"
    xcache.readonly_protection="On"
    xcache.size="256M"
    xcache.stat="Off"
    xcache.shm_scheme "mmap"
    xcache.slots="8K"
    xcache.test="Off"
    xcache.ttl="0"
    xcache.var_count="1"
    xcache.var_gc_interval="300"
    xcache.var_maxttl="0"
    xcache.var_size="128M"
    xcache.var_slots="8K"
    xcache.var_ttl="0"
    Can you help me fix and give me some suggest optimize xcache is better?

    Regards,
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    I have moved this thread over to the Optimization forum. As for the error message, I notice the following path related to the error message:

    Have you checked to make sure your /tmp partition is not full, and uses the correct permissions (1777)? EX:
    Code:
    # df -h
    # df -i
    # stat /tmp
    
    Thank you.
     
  3. jazz1611

    jazz1611 Well-Known Member

    Joined:
    Jun 5, 2012
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Code:
    root@serv2 [~]# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/mapper/VolGroup-lv_root
                           50G   23G   24G  50% /
    tmpfs                 3.9G     0  3.9G   0% /dev/shm
    /dev/vda1             485M  128M  332M  28% /boot
    /dev/mapper/VolGroup-lv_home
                          731G  8.1G  685G   2% /home
    /usr/tmpDSK           2.0G  360M  1.6G  19% /tmp
    
    
    root@serv2 [~]# stat /tmp
      File: `/tmp'
      Size: 151552          Blocks: 304        IO Block: 4096   directory
    Device: 701h/1793d      Inode: 2           Links: 4
    Access: (1777/drwxrwxrwt)  Uid: (    0/    root)   Gid: (    0/    root)
    Access: 2013-06-11 20:19:02.000000000 +0700
    Modify: 2013-06-11 20:19:10.000000000 +0700
    Change: 2013-06-11 20:19:10.000000000 +0700
    
    What i do, now? Chmod folder tmp?

    Regards,
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    The permissions on your /tmp partition are normal. Did you run "df -i" to see if your /tmp partition was close to it's inodes limit?

    Thank you.
     
  5. jazz1611

    jazz1611 Well-Known Member

    Joined:
    Jun 5, 2012
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Code:
    root@serv2 [~]# df -i
    Filesystem            Inodes   IUsed   IFree IUse% Mounted on
    /dev/mapper/VolGroup-lv_root
                         3276800  237366 3039434    8% /
    tmpfs                1005108       1 1005107    1% /dev/shm
    /dev/vda1             128016      56  127960    1% /boot
    /dev/mapper/VolGroup-lv_home
                         48611328  412744 48198584    1% /home
    /usr/tmpDSK           131072     957  130115    1% /tmp
    I attached. Please help me. Thanks.

    Regards,
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    648
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I did find a similar question asked on the Lighttpd support website:

    #15 (pcode cache does not work)

    You may want to ask your question there as you are using a custom Varnish configuration that is not native to cPanel. Thus, there may not be many users on the cPanel forums using the same setup.

    Thank you.
     
  7. jazz1611

    jazz1611 Well-Known Member

    Joined:
    Jun 5, 2012
    Messages:
    83
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hi,

    Current, i changed to Apachebooster, not use cPanel Varnish Nginx Plugin. There is current xcache configuration and folder xcache without in /tmp

    Code:
    xcache.admin.enable_auth="on"
    xcache.admin.pass=""
    xcache.admin.user="mOo"
    xcache.cacher="On"
    xcache.coredump_directory=""
    xcache.count="6"
    xcache.coveragedump_directory="/tmp/pcov/"
    xcache.coverager="On"
    xcache.gc_interval="0"
    xcache.mmap_path="/tmp/xcache/"
    xcache.optimizer="Off"
    xcache.readonly_protection="On"
    xcache.size="256M"
    xcache.stat="Off"
    xcache.shm_scheme = "mmap"
    xcache.slots="8K"
    xcache.test="Off"
    xcache.ttl="0"
    xcache.var_count="1"
    xcache.var_gc_interval="300"
    xcache.var_maxttl="0"
    xcache.var_size="128M"
    xcache.var_slots="8K"
    xcache.var_ttl="0"
     
Loading...

Share This Page