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 7859325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T21:52:30+00:00 2026-06-02T21:52:30+00:00

APC Version : 3.1.9. PHP Version : 5.2.17 i use Litespeed DEFAULT PHP: 5

  • 0
  • APC Version : 3.1.9.
  • PHP Version : 5.2.17
  • i use Litespeed
  • DEFAULT PHP: 5
  • PHP4 SAPI: cgi
  • PHP5 SAPI: dso
  • SUEXEC: enabled

I create 2 file.
First file, set apc var :

<?php
$bar = 'BAR';
apc_store('foo_test', $bar);
echo 'stored';
?>

Second file, try to get apc var :

<?php
var_dump(apc_fetch('foo_test'));
?>

I visited first file, everything is fine.
I open second file, i refresh several times, usually (almost 90%), it returns false. And rarely returns correct response.

Here is my APC setting.

apc.cache_by_default    1
apc.canonicalize    1
apc.coredump_unmap  0
apc.enable_cli  1
apc.enabled 1
apc.file_md5    0
apc.file_update_protection  2
apc.filters 
apc.gc_ttl  3600
apc.include_once_override   0
apc.lazy_classes    0
apc.lazy_functions  0
apc.max_file_size   20M
apc.mmap_file_mask  
apc.num_files_hint  1000
apc.preload_path    
apc.report_autofilter   0
apc.rfc1867 0
apc.rfc1867_freq    0
apc.rfc1867_name    APC_UPLOAD_PROGRESS
apc.rfc1867_prefix  upload_
apc.rfc1867_ttl 3600
apc.serializer  default
apc.shm_segments    1
apc.shm_size    512M
apc.slam_defense    1
apc.stat    0
apc.stat_ctime  0
apc.ttl 0
apc.use_request_time    1
apc.user_entries_hint   4096
apc.user_ttl    7200
apc.write_lock  1
  • 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-02T21:52:32+00:00Added an answer on June 2, 2026 at 9:52 pm

    My guess is that Litespeed is running PHP with FastCGI. So it’s spawning some child processes and then dispatch the requests between them. The problem is that probably APC stores the data in the heap memory (not in the shared memory), so every FastCGI instance has it’s own APC data. The data in one instance will not be visible in the other instances. You set the data in instance #1, but then your fetch request goes to instance #2, instance #3… and you get FALSE. When you hit the instance #1, then you’ll receive the saved value.

    Edit: Compiling the APC module with --disable-apc-mmap (Disable mmap support and use IPC shm instead) should fix the issue.

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

Sidebar

Related Questions

I am trying to get a version of APC that works with PHP 5.3.x
Here is my server information : APC Version : 3.1.9 PHP Version : 5.2.17
I need to clear all APC cache entries when I deploy a new version
How can I install APC on Windows? I am using PHP 5.3, Windows 7
How would I use the apc.filters parameter in APC opcode caching to not cache
The documentation on php.net is very spotty about causes of failure for APC writes.
I've got a PHP-fpm setup on nginx setup according to this article: http://interfacelab.com/nginx-php-fpm-apc-awesome/ PHP
Details: OS: Mac OS X 10.7.3 PHP 5.3.8: Shipped with Mac OS How APC
I want to build an old version of APC on windows. They say (check
I'm hitting a wall in PHP and could use your help. # php -v

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.