Home  >  Article  >  Backend Development  >  How to compile and install php memcached

How to compile and install php memcached

藏色散人
藏色散人Original
2020-08-11 10:52:411878browse

How to compile and install php memcached: First install the memcache extension of php through the "make && make install" command; then configure "php.ini" as "extension=memcache.so".

How to compile and install php memcached

Recommended: "PHP Video Tutorial"

CentOS6.3 Compile and install Memcached PHP client memcache

Before installing Memcached's PHP client memcache, you can read the previous work notes:

How to install uninstalled extensions that come with PHP5, such as soap extensions, without recompiling?

Install PHP memcache extension

cd /usr/local/src
wget -c http://pecl.php.net/get/memcache-3.0.8.tgz
tar -xzvf ./memcache-3.0.8.tgz
mkdir /usr/local/memcache
cd ./memcache-3.0.8
/usr/local/php/bin/phpize
./configure --prefix=/usr/local/memcache --enable-memcache --with-php-config=/usr/local/php/bin/php-config --with-zlib-dir
make && make install

Configure php.ini

extension=memcache.so

In addition, we recommend a lightweight Memcached management and monitoring tool-- MemAdmin (Memcached management and monitoring tool based on PHP5 & jQuery)

The above is the detailed content of How to compile and install php memcached. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn