Last active
December 18, 2018 09:31
-
-
Save coder4web/91a1b6f09867f10330f3 to your computer and use it in GitHub Desktop.
PHP 7 with Memcached from source
This file contains 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
# ------------------------------------------------------- | |
# STEP 1: install requirements | |
# ------------------------------------------------------- | |
# CentOS / RHEL / Amazon EC2 AMI: | |
# @see https://webtatic.com/packages/php70/ | |
sudo yum install php70w php70w-devel | |
sudo yum groupinstall "Development Tools" | |
sudo yum install libmemcached libmemcached-devel zlib zlib-devel | |
# ------------------------------------------------------- | |
# Debian | |
# ------------------------------------------------------- | |
# TODO | |
# ------------------------------------------------------- | |
# STEP 2: build php-memcached from sources | |
# Debian / CentOS / AMI (Amazon EC2) | |
# ------------------------------------------------------- | |
cd /usr/local/src | |
git clone https://github.com/php-memcached-dev/php-memcached.git | |
cd php-memcached | |
git checkout php7 | |
phpize | |
./configure --disable-memcached-sasl | |
make | |
# Libraries have been installed in: /usr/local/src/php-memcached/modules | |
#make test | |
make install | |
#Installing shared extensions: /usr/lib64/php/modules/ | |
nano /etc/php.d/20-memcached.ini | |
# | |
; configuration for php memcached module | |
; priority=20 | |
extension=memcached.so |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment