# Module 'apcu' already loaded at Unknown#0

**URL:** <https://help.nextcloud.com/t/module-apcu-already-loaded-at-unknown-0/91384>\
**Category:** ℹ️ Support\
**Tags:** nc19\
**Created:** [September 3, 2020, 8:16pm UTC](https://help.nextcloud.com/t/module-apcu-already-loaded-at-unknown-0/91384 "2020-09-03T20:16:52Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![alejandrod](https://help.nextcloud.com/user_avatar/help.nextcloud.com/alejandrod/32/8479_2.png) [@alejandrod](https://help.nextcloud.com/u/alejandrod)\
**Post date:** [September 3, 2020, 8:16pm UTC](https://help.nextcloud.com/t/module-apcu-already-loaded-at-unknown-0/91384/1 "2020-09-03T20:16:52Z")

</div>

> **Support intro**
>
> Sorry to hear you’re facing problems 🙁
> 
> _**[help.nextcloud.com](http://help.nextcloud.com) is for home/non-enterprise users. If you’re running a business, paid support can be accessed via [portal.nextcloud.com](http://portal.nextcloud.com) where we can ensure your business keeps running smoothly.**_
> 
> In order to help you as quickly as possible, before clicking **Create Topic** please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
> 
> ```
> example
> 
> ```
> 
> Or for longer, use three backticks above and below the code snippet:
> 
> ```auto
> longer
> example
> here
> 
> ```
> 
> Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can ❤

Nextcloud version _19.0.2_:  
Operating system and version _Ubuntu 18.04_:  
Apache or nginx version _Apache 2.4.25_:  
PHP version _7.4_:  
The event log in settings / admin / logging is frequently filled with this error.  
I have already read about this error articles but I cannot find a possible solution.  
Could you give me some help?

```
root@cloud:~# php -i | grep apc
/etc/php/7.4/cli/conf.d/20-apcu.ini,
/etc/php/7.4/cli/conf.d/25-apcu_bc.ini
apc
apcu
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 => php => php
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 => On => On

```

The output of your Nextcloud log in **Admin \> Logging** :

```auto
    [PHP] Error: Module 'apcu' already loaded at Unknown#0

    GET /ocm-provider/
    from xxx.xxx.xxx.xxx by myuser at 2020-09-03T15:41:51-04:00

```

The output of your config.php file in `/path/to/nextcloud` (make sure you remove any identifiable information!):

```auto
    "system": {
                "instanceid": " ***REMOVED SENSITIVE VALUE***",
                "passwordsalt": " ***REMOVED SENSITIVE VALUE***",
                "secret": " ***REMOVED SENSITIVE VALUE***",
                "trusted_domains": [
                    "url.dominio.net",
                    "1.1.1.1"
                ],
                "datadirectory": " ***REMOVED SENSITIVE VALUE***",
                "dbtype": "mysql",
                "version": "19.0.2.2",
                "overwrite.cli.url": "https:\/\/url.dominio.net",
                "htaccess.RewriteBase": "\/",
                "dbname": " ***REMOVED SENSITIVE VALUE***",
                "dbhost": " ***REMOVED SENSITIVE VALUE***",
                "dbport": "",
                "dbtableprefix": "oc_",
                "mysql.utf8mb4": true,
                "dbuser": " ***REMOVED SENSITIVE VALUE***",
                "dbpassword": " ***REMOVED SENSITIVE VALUE***",
                "installed": true,
                "skeletondirectory": "",
                "mail_from_address": " ***REMOVED SENSITIVE VALUE***",
                "mail_smtpmode": "smtp",
                "mail_sendmailmode": "smtp",
                "mail_domain": " ***REMOVED SENSITIVE VALUE***",
                "mail_smtpauth": 1,
                "mail_smtpauthtype": "LOGIN",
                "mail_smtphost": " ***REMOVED SENSITIVE VALUE***",
                "mail_smtpport": "25",
                "mail_smtpname": " ***REMOVED SENSITIVE VALUE***",
                "mail_smtppassword": " ***REMOVED SENSITIVE VALUE***",
                "default_language": "es",
                "ldapIgnoreNamingRules": false,
                "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
                "memcache.local": "\\OC\\Memcache\\APCu",
                "memcache.distributed": "\\OC\\Memcache\\Redis",
                "memcache.locking": "\\OC\\Memcache\\Redis",
                "redis": {
                    "host": " ***REMOVED SENSITIVE VALUE***",
                    "port": 6379
    },

```

---

<div class="post-metadata">

**Author:** ![Vincent\_Stans](https://help.nextcloud.com/user_avatar/help.nextcloud.com/vincent_stans/32/17415_2.png) [@Vincent\_Stans](https://help.nextcloud.com/u/Vincent_Stans)\
**Post date:** [September 4, 2020, 2:42am UTC](https://help.nextcloud.com/t/module-apcu-already-loaded-at-unknown-0/91384/2 "2020-09-04T02:42:05Z")

</div>

Try commenting apcu out

```
sudo sed -i 's/ext/;ext/' /etc/php/7.4/apache/conf.d/20-apcu

```

`sudo systemctl reload apache2`

---

<div class="post-metadata">

**Author:** ![alejandrod](https://help.nextcloud.com/user_avatar/help.nextcloud.com/alejandrod/32/8479_2.png) [@alejandrod](https://help.nextcloud.com/u/alejandrod)\
**Post date:** [September 5, 2020, 9:40pm UTC](https://help.nextcloud.com/t/module-apcu-already-loaded-at-unknown-0/91384/3 "2020-09-05T21:40:58Z")

</div>

Hello @Vincent_Stans , thanks for the contribution, then doing that procedure I get this error which tells me that this is not the solution. Any other ideas regarding this error.

```
[PHP] Error: PHP Startup: Unable to load dynamic library 'apc.so' (tried: /usr/lib/php/20190902/apc.so (/usr/lib/php/20190902/apc.so: undefined symbol: zif_apcu_store), /usr/lib/php/20190902/apc.so.so (/usr/lib/php/20190902/apc.so.so: cannot open shared object file: No such file or directory)) at Unknown#0
```

---

<div class="post-metadata">

**Author:** ![Vincent\_Stans](https://help.nextcloud.com/user_avatar/help.nextcloud.com/vincent_stans/32/17415_2.png) [@Vincent\_Stans](https://help.nextcloud.com/u/Vincent_Stans)\
**Post date:** [September 6, 2020, 8:26am UTC](https://help.nextcloud.com/t/module-apcu-already-loaded-at-unknown-0/91384/4 "2020-09-06T08:26:26Z")

</div>

You should find in your php.ini file and your dir /etc/php/7.x/_/conf.d/_.ini for a duplicate of the loading module.

It is hard to tell you where it is loaded twice. You should search for a php solution as it is not a nextcloud issue.

---

<div class="post-metadata">

**Author:** ![alejandrod](https://help.nextcloud.com/user_avatar/help.nextcloud.com/alejandrod/32/8479_2.png) [@alejandrod](https://help.nextcloud.com/u/alejandrod)\
**Post date:** [September 6, 2020, 6:38pm UTC](https://help.nextcloud.com/t/module-apcu-already-loaded-at-unknown-0/91384/5 "2020-09-06T18:38:23Z")

</div>

ok, anyway thanks a lot for the help

---

<div class="post-metadata">

**Author:** ![alejandrod](https://help.nextcloud.com/user_avatar/help.nextcloud.com/alejandrod/32/8479_2.png) [@alejandrod](https://help.nextcloud.com/u/alejandrod)\
**Post date:** [September 18, 2020, 2:02am UTC](https://help.nextcloud.com/t/module-apcu-already-loaded-at-unknown-0/91384/6 "2020-09-18T02:02:49Z")

</div>

hello again, it turns out that reviewing the history of the commands executed in the console I filtered which could be apcu. To my surprise I had already enabled apcu some time ago but not exactly in the default file but in a new file that I named `cache.ini` which I did not check. The problem was quickly resolved upon realizing the error. Greetings and thanks again.

---

<div class="post-metadata">

**Author:** ![earth](https://help.nextcloud.com/letter_avatar/earth/32/5_5575768a8748004e209b776fc1b2916d.png) [@earth](https://help.nextcloud.com/u/earth)\
**Post date:** [October 20, 2020, 3:24am UTC](https://help.nextcloud.com/t/module-apcu-already-loaded-at-unknown-0/91384/7 "2020-10-20T03:24:26Z")

</div>

Dear, please guide  
i am unable to find mine  
here is my gerp for apc

/etc/php/7.4/cli/conf.d/20-apcu.ini,  
/etc/php/7.4/cli/conf.d/25-apcu\_bc.ini  
apc  
apcu  
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 =\> php =\> php  
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

---

<div class="post-metadata">

**Author:** ![alejandrod](https://help.nextcloud.com/user_avatar/help.nextcloud.com/alejandrod/32/8479_2.png) [@alejandrod](https://help.nextcloud.com/u/alejandrod)\
**Post date:** [November 6, 2020, 4:23pm UTC](https://help.nextcloud.com/t/module-apcu-already-loaded-at-unknown-0/91384/8 "2020-11-06T16:23:43Z")

</div>

hi friend, check that you don’t have a file called cache.ini, there was the additional configuration repeated in my case

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 12, 2024, 8:19am UTC](https://help.nextcloud.com/t/module-apcu-already-loaded-at-unknown-0/91384/9 "2024-12-12T08:19:54Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 12, 2024, 8:19am UTC](https://help.nextcloud.com/t/module-apcu-already-loaded-at-unknown-0/91384/10 "2024-12-12T08:19:55Z")

</div>


