# Nextcloud will not boot after "upgrade": my apache2 install sees my memcache but nextcloud does not?

**URL:** <https://help.nextcloud.com/t/nextcloud-will-not-boot-after-upgrade-my-apache2-install-sees-my-memcache-but-nextcloud-does-not/157076>\
**Category:** ℹ️ Support\
**Created:** [March 4, 2023, 7:13am UTC](https://help.nextcloud.com/t/nextcloud-will-not-boot-after-upgrade-my-apache2-install-sees-my-memcache-but-nextcloud-does-not/157076 "2023-03-04T07:13:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![wealthychef](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wealthychef/32/44089_2.png) [@wealthychef](https://help.nextcloud.com/u/wealthychef)\
**Post date:** [March 4, 2023, 7:13am UTC](https://help.nextcloud.com/t/nextcloud-will-not-boot-after-upgrade-my-apache2-install-sees-my-memcache-but-nextcloud-does-not/157076/1 "2023-03-04T07:13:22Z")

</div>

Hello, thanks for dropping by.

## OS info

Nextcloud version _(eg, 20.0.5)_: hard to say, I am in the middle of trying to get 20.0.10 to work, but since it’s broken I can’t even query it.  
Operating system and version _(eg, Ubuntu 20.04)_: debian. Linux 6.0.10-x86\_64-linode158 x86\_64 GNU/Linux  
Apache or nginx version _(eg, Apache 2.4.25)_: Apache/2.4.54 (Debian)  
PHP version _(eg, 7.4)_: 8.1

## The issue I am facing:

Trying to upgrade to 20.0.10, I should have backed up but I was dumb and now nextcloud is not working.  
I’m currently getting this error:

```auto
root@linode (nextcloud ): sudo -u www-data php occ
An unhandled exception has been thrown:
OCP\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)

```

I see the following in my config.php file. It’s clearly related but I don’t know how to follow up on it.

```auto
  'memcache.local' => '\\OC\\Memcache\\APCu',

```

There is nothing in the apache2 log of interest, but when I look at my php config I see this:

```auto
APCu Support	Enabled

```

I’m not a hotshot admin, so maybe I’m missing something that should be obvious. I just don’t know how to connecct the dots; my apache2 install sees my memcache but nextcloud does not? How can I get back to a working install? Should have backed up…

---

<div class="post-metadata">

**Author:** ![wealthychef](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wealthychef/32/44089_2.png) [@wealthychef](https://help.nextcloud.com/u/wealthychef)\
**Post date:** [March 4, 2023, 7:41am UTC](https://help.nextcloud.com/t/nextcloud-will-not-boot-after-upgrade-my-apache2-install-sees-my-memcache-but-nextcloud-does-not/157076/2 "2023-03-04T07:41:52Z")

</div>

# Solution found

See [Nextcloud is already the latest version - #8 by bb77](https://help.nextcloud.com/t/nextcloud-is-already-the-latest-version/156063/8)

Specifically, making this alias was all I needed. I have no idea why this works.

```auto
alias nocc="sudo -u www-data php --define apc.enable_cli=1 /var/www/html/nextcloud/occ"

```

---

<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:05pm UTC](https://help.nextcloud.com/t/nextcloud-will-not-boot-after-upgrade-my-apache2-install-sees-my-memcache-but-nextcloud-does-not/157076/3 "2024-12-14T12:05:37Z")

</div>


