ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Adding php-pecl-apcu to CentOS 7 for ownCloud 8.X and newer

    IT Discussion
    centos centos 7 php php5.6 owncloud remi repositories how to
    2
    4
    19.3k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • JaredBuschJ
      JaredBusch
      last edited by JaredBusch

      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.

      1 Reply Last reply Reply Quote 4
      • scottalanmillerS
        scottalanmiller
        last edited by

        Thanks.

        1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller
          last edited by

          Just tested and working great for me.

          JaredBuschJ 1 Reply Last reply Reply Quote 0
          • JaredBuschJ
            JaredBusch @scottalanmiller
            last edited by

            @scottalanmiller said:

            Just tested and working great for me.

            It makes the warning go away. No clue if it helps performance any.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post