How to compile and install php memcached

藏色散人
Release: 2023-03-04 09:42:02
Original
1928 people have browsed it

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
Copy after login

Configure php.ini

extension=memcache.so
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template