### memcached3.13 on PHP7.2 in centos style
wget
http://pecl.php.net/get/memcached-3.1.3.tgz# tar -zxf memcached-3.1.3.tgz
# cd memcached-3.1.3
# /usr/local/apps/php72/bin/phpize
# LDFLAGS="-L/usr/local/apps/lib" CPPFLAGS="-I/usr/local/apps/include" ./configure --with-php-config="/usr/local/apps/php72/bin/php-config" --with-zlib-dir="/usr/local/apps" --disable-memcached-sasl && make && make install
# cd
# cp /root/memcached-3.1.3/modules/memcached.so /usr/local/apps/php72/ext
2. Open the PHP 72 extra.ini file by executing the following command as root:
# vi /usr/local/apps/php72/etc/php.d/extra.ini
3. Add the following statement to the end of the file:
extension=memcached.so
4. Restart the PHP72 service from commandline as root:
# service php-fpm72 restart
Once done, you will find the memcached extension loaded in PHP 72 using following command:
# php -m | grep memcached