APC installed but drupal couldnt find it

Created on 23 September 2017, about 7 years ago
Updated 29 June 2024, 5 months ago

I have installed the APC extension and configured as below. But when i try to enable the module i still get this error

Error message when activating the module.

The APC module needs the APC or the APCu extension. (Currently using APCu Not available)

Pho.ini

extension = apc.so
apc.enabled=1
apc.shm_size=64M
apc.ttl=7200
apc.enable_cli=1

PHP config details:

PHP Version 7.0.22-0ubuntu0.16.04.1
System Linux ip-172-31-21-136 4.4.0-1032-aws #41-Ubuntu SMP Mon Aug 14 13:08:44 UTC 2017 x86_64
Server API Apache 2.0 Handler

What could be the reason ?

🐛 Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

🇮🇳India mathan53

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇮🇹Italy apaderno Brescia, 🇮🇹
  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    apc.enable_cli enables APC or APCu when php is executed from the command line. php -i will show the following information when apc.enable_cli has been set to On.

    APCu Support => Enabled
    Version => 5.1.23
    APCu Debugging => Disabled
    MMAP Support => Enabled
    MMAP File Mask =>  
    Serialization Support => php, igbinary
    Build Date => Apr 27 2024 10:26:52
    
    Directive => Local Value => Master Value
    apc.coredump_unmap => Off => Off
    apc.enable_cli => On => On
    apc.enabled => On => On
    apc.entries_hint => 4096 => 4096
    apc.gc_ttl => 3600 => 3600
    apc.mmap_file_mask => no value => no value
    apc.preload_path => no value => no value
    apc.serializer => igbinary => igbinary
    apc.shm_segments => 1 => 1
    apc.shm_size => 32M => 32M
    apc.slam_defense => Off => Off
    apc.smart => 0 => 0
    apc.ttl => 0 => 0
    apc.use_request_time => Off => Off
    

    When apc.enable_cli is set to Off, php -i will show the following information. (Only the first line is relevant. The other values vary depending on the APCu and PHP versions.

    APCu Support => Disabled
    Version => 5.1.23
    APCu Debugging => Disabled
    MMAP Support => Enabled
    MMAP File Mask =>  
    Serialization Support => Disabled
    Build Date => Apr 27 2024 10:26:52
    
    Directive => Local Value => Master Value
    apc.coredump_unmap => Off => Off
    apc.enable_cli => Off => Off
    apc.enabled => On => On
    apc.entries_hint => 4096 => 4096
    apc.gc_ttl => 3600 => 3600
    apc.mmap_file_mask => no value => no value
    apc.preload_path => no value => no value
    apc.serializer => igbinary => igbinary
    apc.shm_segments => 1 => 1
    apc.shm_size => 32M => 32M
    apc.slam_defense => Off => Off
    apc.smart => 0 => 0
    apc.ttl => 0 => 0
    apc.use_request_time => Off => Off
    
  • Status changed to Closed: duplicate 5 months ago
  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    The code currently used from the module expects that the backward-compatible module is installed together the APCu extension, which is necessary in PHP 7 to be able to use functions like apc_cache_info() which must be present for this module to understand the APCu extension is installed.

    📌 Change the module to require only the APCu extension Needs work has already a patch to fix what reported here.

Production build 0.71.5 2024