Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memcached support ? #19

Open
MixMe opened this issue Jun 12, 2018 · 4 comments
Open

memcached support ? #19

MixMe opened this issue Jun 12, 2018 · 4 comments

Comments

@MixMe
Copy link

MixMe commented Jun 12, 2018

No description provided.

@MixMe
Copy link
Author

MixMe commented Jun 14, 2018

how can i add additional: "apt-get -y install php7.1-memcache memcached" to php-fpm container ?

@MixMe
Copy link
Author

MixMe commented Jun 14, 2018

I add this:

RUN apk add cyrus-sasl-dev libmemcached-dev \
    && git clone "https://github.com/php-memcached-dev/php-memcached.git" \
    && cd php-memcached \
    && phpize \
    && ./configure --disable-memcached-sasl \
    && make \
    && make install \
&& docker-php-ext-enable memcached

to dockerfile from yiidock/php-fpm folder, but not help.
I still get:
Error: MemCache requires PHP memcached extension to be loaded.

@MixMe
Copy link
Author

MixMe commented Jun 14, 2018

Solution:
Add on php-fpm/dockerfile and workspace/dockerfile

RUN apk add cyrus-sasl-dev libmemcached-dev \
    && git clone "https://github.com/php-memcached-dev/php-memcached.git" \
    && cd php-memcached \
    && phpize \
    && ./configure --disable-memcached-sasl \
    && make \
    && make install \
&& docker-php-ext-enable memcached

Add on docker-composer:

  memcached:
    image: memcached:alpine
    ports:
      - "11211:11211"

@metalagman
Copy link
Contributor

metalagman commented Jun 15, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants