Linux Install PHP extension memcache
PHP extension memcache to support the memcached Database cache server, the following is the installation method.
1. Download and unzip the memcache file
- Wget-c http://pecl.php.net/get/memcache-3.0.6.tgz
- Tar xzvf memcache-3.0.6.tgz
- CD memcache-3.0.6
2, the implementation of Phpize extension installation program, assuming that the path of Phpzie is/usr/local/php/bin/phpize, the specific path to be modified according to their own environment.
- /usr/local/php/bin/phpize
3. Start installing extension memcache
- ./configure--enable-memcache--with-php-config=/usr/local/php/bin/php-config--with-zlib-dir
- Make && make install
4, finally modify the php.ini file, add the following code before Zend.
- [Memcache]
- Extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20060613/"
- Extension=memcache.so
Reprint please indicate the article source: "https://www.centos.bz/2011/11/linux-install-php-memcache/"
Linux Install PHP extension memcache