Home > Article > Backend Development > How to compile and install php memcached
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".
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!