Forked from ivankristianto/install_memcache_docker.txt
Created
April 26, 2018 13:41
-
-
Save malitov/def226c19dd40df369e9360b40f6bffb to your computer and use it in GitHub Desktop.
Install PHP Memcache in docker php
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PHP 5.6: | |
RUN apt-get update \ | |
&& apt-get install -y libmemcached11 libmemcachedutil2 build-essential libmemcached-dev libz-dev \ | |
&& pecl install memcached \ | |
&& echo extension=memcached.so >> /usr/local/etc/php/conf.d/memcached.ini \ | |
&& apt-get remove -y build-essential libmemcached-dev libz-dev \ | |
&& apt-get autoremove -y \ | |
&& apt-get clean \ | |
&& rm -rf /tmp/pear | |
PHP 7: | |
git clone https://github.com/php-memcached-dev/php-memcached /usr/src/php/ext/memcached \ | |
&& cd /usr/src/php/ext/memcached && git checkout -b php7 origin/php7 \ | |
&& docker-php-ext-configure memcached \ | |
&& docker-php-ext-install memcached |
I don't remember what we did with my colleague, but I would suggest to look into the configuration of your httpd
server.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I got the same error as @StEvUgnIn . Tried a view variations of the compression libraries but still no success...