Centosphp installs memcached extension to support sasl

Source: Internet
Author: User
Centosphp install memcached extension support sasl 1. install sasl
yum install cyrus-sasl-lib.x86_64yum install cyrus-sasl-devel.x86_64

2. download libmemcached

wget https://launchpad.net/libmemcached/1.0/1.0.16/+download/libmemcached-1.0.16.tar.gz
3. Compile and install
tar zxvf libmemcached-1.0.16.tar.gzcd libmemcached-1.0.16./configure --prefix=/usr/local/libmemcached --enable-saslmakemake install
4. install memcached

wget http://pecl.php.net/get/memcached-2.1.0.tgztar zxvf memcached-2.1.0.tgzcd memcached-2.1.0
Obtain
Php-config directory whereis php-config
Phpize./configure -- with-php-config = php-config directory -- with-libmemcached-dir =/usr/local/libmemcached/-- enable-memcached-sasl

make
make install
5. modify the corresponding configuration

Add

Vi/etc/php. d/memcache. ini (previously installed memcache) or directly put it in the php. ini file
extension=memcached.somemcached.use_sasl = 1


Restart the web server nginx or apache

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.