jazz1611

Well-Known Member
Jun 5, 2012
82
0
56
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_Minh] PHP Fatal error:  Cannot open or create file set by xcache.mmap_path, check 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_Minh] PHP Fatal error:  XCache: Cannot 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,
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,200
363
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:

xcache.mmap_path="/tmp/xcache/"
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.
 

jazz1611

Well-Known Member
Jun 5, 2012
82
0
56
cPanel Access Level
Root Administrator
Code:
[email protected] [~]# 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


[email protected] [~]# 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,
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,200
363
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.
 

jazz1611

Well-Known Member
Jun 5, 2012
82
0
56
cPanel Access Level
Root Administrator
Code:
[email protected] [~]# 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,
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,200
363
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.
 

jazz1611

Well-Known Member
Jun 5, 2012
82
0
56
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"