Adding php-pecl-apcu to CentOS 7 for ownCloud 8.X and newer
-
One of the wanrings that the ownCloud administration page gives is that there is no memory cahce enabled. This is a PHP setting and it is half enabled by default. A little work needs to be done to finish the job. The general instructions can be found in the ownCloud documentation.
APCu is only available in PHP 5.5 or higher. The ownCloud documentation has instruction for installing a different solution if you are running PHP 5.4.
Since this is a PHP 5.5+ package, it is assumed that you have used the REMI repository to enable PHP higher than 5.4
Depending on how you enable the repo, the installation is as simple as running a yum install command.
yum install php-pecl-apcu
If you need to enable the repo manually you can add the
--enablerepo=remi-php56
(or 55) to the yum command.Once that is installed restart Apache
systemctl restart httpd
Now you simply update your ownCloud config to make use of it.
nano /var/www/html/owncloud/config/config.php
Add this to the config.
'memcache.local' => '\OC\Memcache\APCu',
Next time you go to the admin control panel, the memcache warning will be gone.
-
Thanks.
-
Just tested and working great for me.
-
@scottalanmiller said:
Just tested and working great for me.
It makes the warning go away. No clue if it helps performance any.