CentOS PHP installation memcached extension support SASL

Source: Internet
Author: User
1. Installing 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, compiling and installing
Tar zxvf libmemcached-1.0.16.tar.gzcd libmemcached-1.0.16./configure--prefix=/usr/local/libmemcached-- Enable-saslmakemake Install
4. Installing memcached Installation

wget Http://pecl.php.net/get/memcached-2.1.0.tgztar zxvf MEMCACHED-2.1.0.TGZCD memcached-2.1.0
 get 
php-config directory Whereis make 
make Install 
5. Modify the corresponding configuration

Add

vi/etc/php.d/memcache . INI (previously installed memcache) or directly in the php.ini file 
extension=memcached.somemcached.use_ SASL = 1 


last reboot Web server nginx or Apache
  • Related Article

    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.