[solved] apc.mmap_file_mask path

Discussion in 'PHP' started by semprot, Dec 13, 2012.

  1. semprot

    semprot Well-Known Member

    My apc.mmap_file_mask path is set to /tmp/apc.XXXXXX
    But on my hosting, my /tmp/ is very small, only about 2gb.
    My APC works very hard and those 2gb will be filled on about 1-2 days, until i restarted my HTTPD

    On the other side my /home/ is very big and very vacant, my usage there is only 2%

    My hosting said both of my /home/ and /tmp/ are on same disk, so they say there is no difference about speed.

    Instead of resizing disk partition (/tmp/), i was thinking about moving apc.mmap_file_mask to /home/.

    Can i move my apc.mmap_file_mask from /tmp/apc.XXXXXX to /home/ such as /home/apc/apc.XXXXXX/ ? :confused:

    Last edited by a moderator: Dec 14, 2012
  2. webizen

    webizen Well-Known Member

    You can set something like apc.mmap_file_mask=/home/apc/apc.XXXXXX and make sure file permission to /home/apc is set correctly.
  3. semprot

    semprot Well-Known Member

    thanks it works :)

Share This Page