Skip to content

Instantly share code, notes, and snippets.

@calvimor
Forked from paul91/pecl-memcached.sh
Last active March 2, 2016 20:37
Show Gist options
  • Save calvimor/e26a872d3cd1a01d9160 to your computer and use it in GitHub Desktop.
Save calvimor/e26a872d3cd1a01d9160 to your computer and use it in GitHub Desktop.
How to install php memcached on CentOS 6.5
#!/bin/bash
# How to install PHP memcached on CentOS 6.5
# Install dependencies
yum install cyrus-sasl-devel zlib-devel gcc-c++
# Get the latest libmemcached
wget https://launchpad.net/libmemcached/1.0/1.0.16/+download/libmemcached-1.0.16.tar.gz
tar -xvf libmemcached-1.0.16.tar.gz
cd libmemcached-1.0.16
# Compile and install liblmemcached with sasl disabled
./configure --disable-memcached-sasl
make
make install
# After memcached's dependencies has been satisfied, install it with pecl
pecl install memcached
# Enable it for PHP
echo "extension=memcached.so" > /etc/php.d/memcached.ini
# Restart any PHP related daemons
service httpd restart
@calvimor
Copy link
Author

calvimor commented Mar 2, 2016

Se intala correctamente si tengo instalado phpsize

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment