# Regarding Memcache with APCu

**URL:** <https://help.nextcloud.com/t/regarding-memcache-with-apcu/166783>\
**Category:** ℹ️ Support\
**Tags:** apcu\
**Created:** [July 24, 2023, 1:16pm UTC](https://help.nextcloud.com/t/regarding-memcache-with-apcu/166783 "2023-07-24T13:16:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![vatolin](https://help.nextcloud.com/user_avatar/help.nextcloud.com/vatolin/32/43311_2.png) [@vatolin](https://help.nextcloud.com/u/vatolin)\
**Post date:** [July 24, 2023, 1:16pm UTC](https://help.nextcloud.com/t/regarding-memcache-with-apcu/166783/1 "2023-07-24T13:16:14Z")

</div>

Nextcloud version : 27.0.1  
Operating system and version : Linux 5.10.0-22-amd64 x86\_64  
Apache or nginx version : PostgreSQL 13.11 (Debian 13.11-0+deb11u1) on x86\_64-pc-linux-gnu, compiled by gcc (Debian 10.2.1-6) 10.2.1 20210110, 64-bit  
PHP version : 8.2.8

mydomain.tld/index.php/settings/admin/overview told a warning: The database is used to lock transaction files. To improve performance, please set up Memcache if available.

I think this warning has appeared first after the upgrade from NC 25.x to NC 26.

So, I have enabled APCu. When I enter php -m I can see that apcu is being loaded. In config.php I have added ‘memcache.local’ =\> ‘\OC\Memcache\APCu’,. But nevertheless, the warning remains.

What do I have to configure my NC to make the warning disappearing, i.e. for improving the performance as suggested?

---

<div class="post-metadata">

**Author:** ![ernolf](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ernolf/32/77874_2.png) [@ernolf](https://help.nextcloud.com/u/ernolf)\
**Post date:** [July 24, 2023, 4:50pm UTC](https://help.nextcloud.com/t/regarding-memcache-with-apcu/166783/2 "2023-07-24T16:50:05Z")

</div>

> [@vatolin](#):
>
> What do I have to configure my NC to make the warning disappearing, i.e. for improving the performance as suggested?

Look if only one php version is installed with this command:

```sh
dpkg -l | awk '/^ii.*php/ {print $2}'

```

Is it only 8.2 or are there some older php versions somewhere not yet deinstalled?

Look what php is used by your apache webserver with this command:

```sh
apachectl -tD DUMP_INCLUDES | sed -n '/php.*conf/ s#.*/\([^/]*\)\.conf#\1#p'

```

Is there only one or multiple lines and does it match? Is it 8.2 as well?

If not, fix that first.

If you’re not sure what to do, don’t hesitate to ask for further help!

Hope that helps,  
much luck!

---

<div class="post-metadata">

**Author:** ![vatolin](https://help.nextcloud.com/user_avatar/help.nextcloud.com/vatolin/32/43311_2.png) [@vatolin](https://help.nextcloud.com/u/vatolin)\
**Post date:** [July 25, 2023, 1:19pm UTC](https://help.nextcloud.com/t/regarding-memcache-with-apcu/166783/3 "2023-07-25T13:19:21Z")

</div>

> [@ernolf](#):
>
> ```auto
> dpkg -l | awk '/^ii.*php/ {print $2}'
> 
> ```

Results in:

```auto
php-accelerators-hos
php-common
php-date
php-db
php-log
php-mail
php-mail-mime
php-mdb2
php-net-dime
php-net-smtp
php-net-socket
php-net-url
php-net-url2
php-pear
php56-hos
php72-hos
php73-hos
php74-hos
php80-hos
php81-hos
php82-hos

```

> [@](#):
>
> ```auto
> apachectl -tD DUMP_INCLUDES | sed -n '/php.*conf/ s#.*/\([^/]*\)\.conf#\1#p'
> 
> ```

Results in:

```auto
-bash: apachectl: command not found

```

---

<div class="post-metadata">

**Author:** ![ernolf](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ernolf/32/77874_2.png) [@ernolf](https://help.nextcloud.com/u/ernolf)\
**Post date:** [July 25, 2023, 1:29pm UTC](https://help.nextcloud.com/t/regarding-memcache-with-apcu/166783/4 "2023-07-25T13:29:22Z")

</div>

> [@vatolin](#):
>
> `-bash: apachectl: command not found`

You have filled out the support template incompletely. Please describe your system better. Are you on Debian/Ubuntu? Do you use apache2, nginx or even other webserver? Is it a Virtual Machine, a Docker image, AIO? Shared host etc.

---

<div class="post-metadata">

**Author:** ![vatolin](https://help.nextcloud.com/user_avatar/help.nextcloud.com/vatolin/32/43311_2.png) [@vatolin](https://help.nextcloud.com/u/vatolin)\
**Post date:** [July 25, 2023, 6:04pm UTC](https://help.nextcloud.com/t/regarding-memcache-with-apcu/166783/5 "2023-07-25T18:04:38Z")

</div>

It is a virtual machine, a so called Webhosting account at [hetzner.com](http://hetzner.com) . As far as I understand it, it is an apache server. But for true, I do no really know whether it is an apache or an ngingx server. Can I figure it out by an CLI command?

---

<div class="post-metadata">

**Author:** ![ernolf](https://help.nextcloud.com/user_avatar/help.nextcloud.com/ernolf/32/77874_2.png) [@ernolf](https://help.nextcloud.com/u/ernolf)\
**Post date:** [July 25, 2023, 6:28pm UTC](https://help.nextcloud.com/t/regarding-memcache-with-apcu/166783/6 "2023-07-25T18:28:17Z")

</div>

> [@vatolin](#):
>
> a so called Webhosting account at hetzner

And that is the reason why there is a support-template (which you did not fil btw).  
Contact the hetzner support. They know your setup and can give you all the information you need.

> [@vatolin](#):
>
> I do no really know whether it is an apache or an ngingx server

If you don’t even know what webserver is in use, did you set up nextcloud yourself?

Anyway, I can not help you, I am out.

Much luck!

---

<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 14, 2024, 12:48pm UTC](https://help.nextcloud.com/t/regarding-memcache-with-apcu/166783/7 "2024-12-14T12:48:40Z")

</div>


