So to update nextcloud server I have to run a php updater script. I'm coming across two issues, both I can work around but I'd like to sort it out.
First issue, I start the updater script (all as the "apache" user)
- Code: Select all
php updater.phar
Which fails due to a memory issue, so to get around that I found this line, and it works
- Code: Select all
php -d memory_limit=512M updater.phar
I think this may be a hang over from when I ran this install a decade ago on my Raspberry PI, so there's probably just a php config I need to update for more memory now I'm on a x86 server.
So running that line, the updater gets almost to the end, then fails (second issue):
- Code: Select all
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?)
Now "php -m" shows that APCu is installed.
I have been able to complete the update with the following line:
- Code: Select all
php --define apc.enable_cli=1 occ upgrade
Which picks up where the updater.phar script ended, and is able to complete the update.
The APCu fault is the main issue, but if I could get some pointers how to fix both, that would be great.
TIA