Rapid installation of php-memcached extensions via PECL

Source: Internet
Author: User

Rapid installation of php-memcached extensions via PECL

Previously installed php-memcached is always through the source code compile way, that dependency, compile speed let you wait ah, not annoying ah. Inadvertently learned from the Internet can use PECL to quickly install the extension, here to organize and record it.


System Environment: CentOS-7.1


1, installation libmemcached

# yum-y Install libmemcached-devel Loaded plugins:langpacksresolving dependencies--> Running Transaction Check--- ; Package libmemcached-devel.x86_64 0:1.0.16-3.el7 'll be installed--> processing dependency:cyrus-sasl-devel ( x86-64) for package:libmemcached-devel-1.0.16-3.el7.x86_64--> Running transaction Check---> Package Cyrus-sasl-devel.x86_64 0:2.1.26-17.EL7 would be installed--> processing DEPENDENCY:CYRUS-SASL (x86-64) = 2.1.26-17. EL7 for package:cyrus-sasl-devel-2.1.26-17.el7.x86_64--> Running transaction Check---> Package cyrus-sasl.x86_ 0:2.1.26-17.el7 'll be installed ....... Omit a number of lines ..... Installed:  libmemcached-devel.x86_64 0:1.0.16-3.el7                                                                             Dependency installed:  cyrus-sasl.x86_64 0:2.1.26-17.el7                       cyrus-sasl-devel.x86_64 0:2.1.26-17.el7                      complete!

2. Install php-memcached Extension

3. Append module to php.ini file

# extension=memcached.so

Tips: If you use pecl install memcached to install successfully, you can use the following methods-

# pecl Download memcached# tar zxvf memcached-xxx# cd memcached-xxx# phpize#./configure--with-libmemcached-dir=/xxxx/xx X/xxx
  • 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.