skip to Main Content

Hej!

So as you can read in the title, I have a problem with loading memcached on my server.
OS : Alpine Linux

I’ve seen that a lot of people have already had this issue but it’s always on other OS, and the solutions can’t seem to work for me.

There is the problem : I used the php -v command.

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php7/modules/memcached.so' (tried: /usr/lib/php7/modules/memcached.so (Error relocating /usr/lib/php7/modules/memcached.so: php_session_create_id: symbol not found), /usr/lib/php7/modules//usr/lib/php7/modules/memcached.so.so (Error loading shared library /usr/lib/php7/modules//usr/lib/php7/modules/memcached.so.so: No such file or directory)) in Unknown on line 0
PHP 7.3.17 (cli) (built: Apr 16 2020 23:18:12) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.17, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.3.17, Copyright (c) 1999-2018, by Zend Technologies

Memcached is supposedly installed here : /usr/lib/php7/modules/memcached.so and the .so.so file is also in that folder.

I runned memcached -d -u nextcloud to allow my Nextcloud server to use it, I do not know if it is the correct way, but I think it is.

Of course I added extension=/usr/lib/php7/modules/memcached.so in the /etc/php7/php.ini file.

I can answer at any question asked by persons who want to help me. In any case I will greatly appreciate any help.

Hej då!

2

Answers


  1. Have you installed the php7-pecl-memcached package via apk? I tried that and am able to see both the /usr/lib/php7/modules/memcached.so file and memcached when I run php -m.

    Login or Signup to reply.
  2. Have you tried apk add php7-memcached instead of php7-pecl-memcached?

    I just spun up a server on AWS and using that worked well:
    https://web.archive.org/web/20200528070633/http://75.101.221.6/

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search