Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8071825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T13:49:08+00:00 2026-06-05T13:49:08+00:00

I’ve installed Xcache 2.0.0 module on mac osx 10.7.3 , added it’s configurations to

  • 0

I’ve installed Xcache 2.0.0 module on mac osx 10.7.3 , added it’s configurations to php.ini like the following

; zend_extension = /opt/local/lib/php/extensions/no-debug-non-zts-20090626/xcache.so extension = xcache.so
[xcache]
xcache.shm_scheme =        "mmap"
xcache.size  =               64M
xcache.count =                 1
xcache.slots =                8K
xcache.ttl   =                 0
xcache.gc_interval =           0
xcache.var_size  =            32M
xcache.var_count =             1
xcache.var_slots =            8K
xcache.var_ttl   =             0
xcache.var_maxttl   =          0
xcache.var_gc_interval =     300

xcache.mmap_path =    "/dev/zero"
xcache.coredump_directory =   ""
; per request settings
xcache.cacher =               On
xcache.stat   =               On
xcache.optimizer =           Off    

xcache.test =                Off
xcache.experimental =        Off

[xcache.coverager]
xcache.coverager =          Off

; ini only settings xcache.coveragedump_directory = ""

put when I tried to use the following function

$test = "Hello";
xcache_set("test", $test );

this error appeared

Warning: xcache_set() [function.xcache-set]: xcache.var_size is either 0 or too small to enable var data caching

but Xcache settings are configured correctly as you can see from phpinfo()

XCache Support  enabled
Version 2.0.0
Modules Built   cacher coverager
Readonly Protection N/A
Cache Init Time 2012-05-09 16:07:12
Cache Instance Id   4687
Opcode Cache    enabled, 67,108,864 bytes, 1 split(s), with 16384 slots each
Variable Cache  enabled, 33,554,432 bytes, 1 split(s), with 16384 slots each
Shared Memory Schemes   mmap
Coverage Auto Dumper    disabled

Directive   Local Value Master Value
xcache.admin.enable_auth    On  On
xcache.cacher   On  On
xcache.coredump_directory   no value    no value
xcache.count    1   1
xcache.coveragedump_directory   no value    no value
xcache.coverager    Off Off
xcache.experimental Off Off
xcache.gc_interval  0   0
xcache.mmap_path    /tmp/xcache /tmp/xcache
xcache.readonly_protection  0   0
xcache.shm_scheme   mmap    mmap
xcache.size 64M 64M
xcache.slots    16K 16K
xcache.stat On  On
xcache.test no value    no value
xcache.ttl  0   0
xcache.var_count    1   1
xcache.var_gc_interval  300 300
xcache.var_maxttl   0   0
xcache.var_size 32M 32M
xcache.var_slots    16K 16K
xcache.var_ttl  0   0
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T13:49:10+00:00Added an answer on June 5, 2026 at 1:49 pm

    I too had the same problem, but got it working by changing the value of xcache.mmap_path

    xcache.mmap_path =    "/tmp/xcache"
    

    Why is the xcache.mmap_path value in phpinfo different from the value set in your configuration file?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I would like to count the length of a string with PHP. The string
I'm using v2.0 of ClassTextile.php, with the following call: $testimonial_text = $textile->TextileRestricted($_POST['testimonial']); ... and
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
this is what i have right now Drawing an RSS feed into the php,
I've got a string that has curly quotes in it. I'd like to replace
I am trying to render a haml file in a javascript response like so:
I would like to run a str_replace or preg_replace which looks for certain words

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.