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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:50:20+00:00 2026-05-22T19:50:20+00:00

$bar = ‘BAR’; apc_store(‘foo’, $bar); var_dump(apc_fetch(‘foo’)); Within one request this work. Now If i

  • 0
$bar = 'BAR';
apc_store('foo', $bar);
var_dump(apc_fetch('foo'));

Within one request this work.

Now If i try to do a var_dump(apc_fetch('foo')); on another request it prints:

bool(false)

Any help?

I am on gentoo with PHP 5.2, APC-3.1.9

Here what phpinfo() knows about APC:

APC Support enabled
Version 3.1.9
APC Debugging   Disabled
MMAP Support    Enabled
MMAP File Mask  no value
Locking type    pthread mutex Locks
Serialization Support   php
Revision    $Revision: 308812 $
Build Date  May 27 2011 13:14:20

Directive   Local Value Master Value
apc.cache_by_default    On  On
apc.canonicalize    On  On
apc.coredump_unmap  Off Off
apc.enable_cli  Off Off
apc.enabled On  On
apc.file_md5    Off Off
apc.file_update_protection  2   2
apc.filters no value    no value
apc.gc_ttl  3600    3600
apc.include_once_override   Off Off
apc.lazy_classes    Off Off
apc.lazy_functions  Off Off
apc.max_file_size   1M  1M
apc.mmap_file_mask  no value    no value
apc.num_files_hint  1000    1000
apc.preload_path    no value    no value
apc.report_autofilter   Off Off
apc.rfc1867 Off Off
apc.rfc1867_freq    0   0
apc.rfc1867_name    APC_UPLOAD_PROGRESS APC_UPLOAD_PROGRESS
apc.rfc1867_prefix  upload_ upload_
apc.rfc1867_ttl 3600    3600
apc.serializer  default default
apc.shm_segments    1   1
apc.shm_size    32M 32M
apc.slam_defense    On  On
apc.stat    On  On
apc.stat_ctime  Off Off
apc.ttl 0   0
apc.use_request_time    On  On
apc.user_entries_hint   4096    4096
apc.user_ttl    0   0
apc.write_lock  On  On

If you need other infos please tell me

Here is how I installed it: https://serverfault.com/questions/274261/failed-installing-apc

I noticed one thing: In the phpinfo’ Configure command i didn’t find apc

‘./configure’ ‘–disable-cli’
‘–disable-discard-path’
‘–disable-force-cgi-redirect’
‘–prefix=/usr/local/php5’
‘–with-config-file-path=/usr/local/lib/php5’ ‘–with-pear=/usr/share/php5’
‘–enable-exif’ ‘–enable-ftp’
‘–enable-bcmath’ ‘–enable-calendar’
‘–with-gd’ ‘–enable-gd-native-ttf’
‘–with-freetype-dir’ ‘–with-gettext’
‘–with-zlib-dir’ ‘–with-imap’
‘–with-imap-ssl’
‘–with-png-dir=/usr’
‘–with-jpeg-dir=/usr’
‘–with-xpm-dir=/usr’ ‘–with-openssl’
‘–with-kerberos’ ‘–enable-sysvsem’
‘–enable-sysvshm’ ‘–with-mcrypt’
‘–with-iconv’ ‘–enable-mbstring=all’
‘–enable-mbregex’ ‘–with-mysql=/usr’
‘–with-mysqli’ ‘–with-curl’
‘–with-xsl’

  • 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-05-22T19:50:20+00:00Added an answer on May 22, 2026 at 7:50 pm

    Probably you are running PHP over CGI (instead of FastCGI which you ought to use) – see my answer in another question why APC doesn’t work if PHP is running over CGI.

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

Sidebar

Related Questions

I have a value like this: Foo Bar Another Value something else What regex
class Foo { static bool Bar(Stream^ stream); }; class FooWrapper { bool Bar(LPCWSTR szUnicodeString)
For example: me$ FOO=BAR * BAR me$ echo $FOO BAR file1 file2 file3 file4
Assuming a class called Bar in a namespace called foo , which syntax do
If I want to call Bar() instead of Foo() , does Bar() return me
I want to transform /foo/bar/.. to /foo Is there a bash command which does
Bar and Box are derived classes of Foo and Foo has a virtual function
SELECT foo FROM bar WHERE id >= (abs(random()) % (SELECT max(id) FROM bar)) LIMIT
I have a tab bar controller with this code - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Return
Objective : Make a progress bar where users can check how much of a

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.