PHP memcache and memcached cache modules

Source: Internet
Author: User

installing PHP's memcache extensionDownload Http://pecl.php.net/package/memcache

TAR-ZXVF memcache-3.0.8.tgz

CD memcache-3.0.8.tgz

/usr/bin/phpize

./configure--enable-memcache

Make && make install

Display complete: Installing Shared extensions:/usr/lib/php/modules/

Add PHP Extension file

Vim/etc/php.ini

Extension=memcache.so

Memcache to install PHPDExtended

Download https://launchpad.net/libmemcached/+download

Download http://pecl.php.net/package/memcached

TAR-ZXVF libmemcached-1.0.18.tar.gz

CD libmemcached-1.0.18.tar.gz

Mkdir/usr/local/share/libmemcached

./configure--prefix=/usr/local/share/libmemcached

Make && make install

TAR-ZXVF memcached-2.2.0.tgz

CD memcached-2.2.0.tgz

/usr/bin/phpize

./configure--with-libmemcached-dir=/usr/local/share/libmemcached/

Make && make install

Add PHP Extension file

Vim/etc/php.ini

Extension=memcached.so

Re-start Nginx

The service Nginx Restart will be able to see the Memcache expansion module.


PHP memcache and memcached cache modules

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.