Nextcloud Version 12.0.2
Cent OS 7
Apache 2
PHP Version 7.2
I am attempting to configure Memory Caching as the final step in optimization. I am using WHM/cPanel and Softaculous. Through WHM, I installed APCu. At first, I was having an issue finding the ini file due to the use of MultiPHP.ini, but I found it (20-apcu.ini). I added the line as requested in the documentation:
‘memcache.local’ => ‘\OC\Memcache\APCu’,
At first, APCu wasn’t even loading, but after a long support session with cPanel, we figured out that the ini file was missing in the first place (a random bug, not able to replicate) and there was also a permission issue, but through that we were able to fix it and get it to load. Unfortunately, I still receive the error “No memory cache has been configured.”
I notice as well that I was requested to add the line to config.php, but after a thorough search, it seems that due to the way MultiPHP is installed, even though I am only using one version of PHP I still need to access through either multiphp.ini or the default ini file for the module. I could be wrong, though.
I understand that this isn’t necessary to function, but I would like to optimize every aspect for my clients.
If anyone has any theories or if I’ve done anything wrong you can tell, I would appreciate it greatly.
I am receiving this error in logging:
Function create_function() is deprecated at /home/secret stuff here :D/public_html/cloud/lib/private/Route/Route.php#155
EDIT
It appears we have a similar question over here. According to the OP, they have figured out that PHP 7 is not compatible with APCu, and it stands to reason that neither is PHP 7.2. I could install MultiPHP 5.x, but if there is an alternative, that’s better. I’ll keep an eye on their thread.