Linux under LAMPP (XAMPP) installation memcached extensions

Source: Internet
Author: User
Tags install php memcached zts

Principle: According to the PHP version in Lampp, compile memcache, reference the corresponding downloaded PHP version, and install the php_config to generate memcache.so file, then put the so file to lamppp corresponding location, and then modify the PHP extension configuration

Next with your own LAMPP version of the same PHP source, my PHP version is 5.6.30,http://hk2.php.net/get/php-5.6.30.tar.gz/from/this/mirror

Install PHP First

./configure--prefix=/usr/local/php-5.6.30makemake Install

Then install the memcache PHP extension

First unzip the memcache-2.2.6.tgz and use the terminal to enter the extracted directory

Sudo/opt/lampp/bin/phpize

Compiling and installing Memcache

After the compilation succeeds, memcache.so will be generated, but not in the Lampp directory, and we'll copy it to LAMPP.

cp/usr/local/php-5.6.30/lib/php/extensions/no-debug-non-zts-20131226/memcache.so/opt/lampp/lib/php/extensions/ no-debug-zts-20131226/

Then modify the PHP configuration file for Lampp

sudo vim/opt/lampp/etc/php.ini

Plus extension= "memcache.so"

Finally restart Lampp, check the phpinfo, if the inside can find memcache to prove the installation is successful

Linux under LAMPP (XAMPP) installation memcached extensions

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.