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