Home > Backend Development > PHP Tutorial > Install memcache and php extensions

Install memcache and php extensions

WBOY
Release: 2016-08-08 09:29:14
Original
929 people have browsed it

Install memcache tar zxvf memcache-2.2.5.tgz cd memcache-2.2.5/ /usr/local/php/bin/phpize (?) ./configure --with-php-config=/usr/local/php/bin/php-config make sudo make install Install the Memcache PHP extension 1. at http://pecl .php.net/package/memcache Select the memcache version you want to download.2. Install PHP memcache extension tar vxzf memcache-2.2.1.tgz cd memcache-2.2.1 /usr/local/php/bin/phpize ./configure --enable-memcache --with-php-config=/usr/local/php/bin/php-config --with-zlib-dir make make installNote: After installation, it will Appears: Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/3. Add the following two lines at the end of php.ini, before END extension_dir = "/usr/local/php/lib/php/extensions/no-debug-non-zts-20090626/"extension=memcache.so4. Restart php5 .Use phpinfo(); to check whether memcache is installed successfully

The above introduces the installation of memcache and PHP extensions, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.

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