How to install pecl memcached on centos 6.x

# How to install PHP memcached on CentOS 6.5

# Install dependencies
yum install cyrus-sasl-devel zlib-devel gcc-c++

# Get the latest libmemcached
tar -xvf libmemcached-1.0.18.tar.gz
cd libmemcached-1.0.18

# Compile and install liblmemcached with sasl disabled
./configure –disable-memcached-sasl
make install

# After memcached’s dependencies has been satisfied, install it with pecl
pecl install memcached

# Enable it for PHP
echo “” > /etc/php.d/memcached.ini

# Restart any PHP related daemons
service httpd restart