Results 1 to 8 of 8

Thread: How to install APCu on php7x

  1. #1

    Unhappy How to install APCu on php7x

    Hi there.

    Im new in opensuse. I have installed an Owncloud, then i must install some module for cache memmory. So, APCu require in system.

    Please tell me, b'couse im fighting 3 days now..how properly install this. Below I pasted what I did till now, and errors. This is not bug of application Owncloud.
    I did ->

    Code:
    zypper addrepo https://download.opensuse.org/reposi...:php:php7.repo
    zypper refresh
    zypper install php7-apcu
    In file .../owncloud/config/config.php added:
    Code:
      'memcache.local' => '\OC\Memcache\APCu',
     'memcache.locking' => '\OC\Memcache\APCu',
     'redis' => array(
     'host' => 'localhost',
     'port' => 6379,
     ),
    and also in php.ini added
    Code:
    'extension' = apcu.so
    and no effect, still I have a blank page of OC with error message:

    "Memcache \OC\Memcache\APCu not available for local cache Is the matching PHP module installed and enabled?"

    Please help...

  2. #2
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,278
    Blog Entries
    2

    Default Re: How to install APCu on php7x

    Have you enabled your module?

    Maybe something like the following (I'm guessing what the module name might be)
    Code:
    ap2enmod apcu
    Followed by restarting your webserver (I'm guessing you're installed on Apache)
    Code:
    systemctl restart apache2
    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  3. #3

    Default Re: How to install APCu on php7x

    "ap2enmod apcu" gets an error:

    Code:
    if 'ap2enmod' is not a typo you can use command-not-found to lookap the package that contains it, like this  
    cnf ap2enmod
    of course those command also brings error like: "ap2enmod not found"

    Yes, I'm working on VM of opensuse 42.3

  4. #4
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,824
    Blog Entries
    15

    Default Re: How to install APCu on php7x

    Quote Originally Posted by cezarylee View Post
    "ap2enmod apcu" gets an error:

    Code:
    if 'ap2enmod' is not a typo you can use command-not-found to lookap the package that contains it, like this  
    cnf ap2enmod
    of course those command also brings error like: "ap2enmod not found"

    Yes, I'm working on VM of opensuse 42.3
    Hi
    A typo, it's a2enmod
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  5. #5

    Default Re: How to install APCu on php7x

    Quote Originally Posted by malcolmlewis View Post
    Hi
    A typo, it's a2enmod
    Ok the command works, but still no efect. I changed /owncloud/config.php and pasted only

    Code:
    memcache.local' => '\OC\Memcache\APCu',
    Did someone do this ealiser ?

  6. #6
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    11,278
    Blog Entries
    2

    Default Re: How to install APCu on php7x

    First,
    Pls post how you installed Owncloud... a URL to your reference, a guide, a download, whatever.
    Reason is because I'm a bit surprised that your Ownloud is installing memcache and redis... I install those only in large, complex network applications and doubt there is any need for those when deploying a single server app(I assume you're not installing a farm of Owncloud).

    Also,
    After installing Apache modules, you should always list your Apache modules to verify that they're enabled
    Code:
    a2enmod -l
    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  7. #7
    ecsos NNTP User

    Default Re: How to install APCu on php7x

    Am Wed, 04 Oct 2017 17:06:01 +0000 schrieb cezarylee:

    > Hi there.
    >
    > Im new in opensuse. I have installed an Owncloud, then i must install
    > some module for cache memmory. So, APCu require in system.
    >
    > Please tell me, b'couse im fighting 3 days now..how properly install
    > this. Below I pasted what I did till now, and errors. This is not bug of
    > application Owncloud.
    > I did ->
    >
    >
    > Code:
    > --------------------
    > zypper addrepo http://tinyurl.com/ya692xd7
    > zypper refresh zypper install php7-apcu
    >

    Why do you not use package from serverhp:extensionshp7?
    This is also the package-/version-source for Tumbleweed.

    Regards
    Eric

  8. #8

    Default Re: How to install APCu on php7x

    Here is what I did. Got it working on 42.2.
    zypper addrepo https://download.opensuse.org/reposi...ions:php7.repo
    zypper refresh
    zypper install php7-APCu

    a2enmod php7-apcu

    systemctl restart apache2

    add memcache.local' => '\OC\Memcache\APCu', to owncloud/config/config.php

    fix permissions on config.php as I had edited with a different user account.

    Working great now. Thanks for this thread. It helped.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •