So, the good news is that I got Nextcloud back up and running, and I have ID’d the issue, but I cannot bring back the setting in the config.php file until the php module is fixed, and it very well be that it’s not compatible with the current ubuntu version.
Anywho, I really need to stop doing major upgrades once they hit. However, I decided to upgrade Ubuntu to v23.10. Once the upgrade was complete, Nextcloud went offline, and I received the following error:
Internal Server Error The server encountered an internal error and was unable to complete your request. Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report. More details can be found in the server log.
I was racking my head for a day as to what it could be because the following error was shown in the apache2 logs:
Restarting web server apache2 apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName
However, this wasn’t the issue, and I should’ve just listened to the actual error message in the first place because the problem was in fact in the server log, which was the following:
OCP\HintException: : Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)
So I’ve nailed down the issue, the proplem was with the php-apcu module, which I’ve installed, removed, purged, re-installed, etc. however, nothing seems to be working. I still have that error, unless I comment out the following in my config.php file:
# 'memcache.local' => '\\OC\\Memcache\\APCu', <--------- this is the problem
Once I comment that out, and restart apache, Nextcloud is up and running again. However, from what I’ve seen that setting can greatly improve performance. I’ve looked this issue up, and after re-installing the module, I added the following to the
apcu.ini file in the /etc/php/8.2/mods-available directory:
extension=apcu.so apc.enable_cli=1 <---- added this
Then after uncommenting the above in my config.php file, still no joy, Nextcloud goes offline with the Internal Server Error again. So I have to comment it out again if I want Nextcloud to work. Any thoughts?