What is the method to install memcache extension in php

王林
Release: 2023-03-07 12:54:02
Original
1412 people have browsed it

How to install memcache extension in php: 1. Download and decompress the extension file; 2. Compile and install the extension; 3. Open the php.ini configuration file and add the configuration [extension=memcache.so]; 4. Restart php-fpm.

What is the method to install memcache extension in php

The installation steps are as follows:

(Learning video recommendation: java course)

1. Download and decompress

wget http://pecl.php.net/get/memcache-2.2.7.tgz
tar zxvf memcache-2.2.7.tgz
Copy after login

2, compile

Use phpize and php-config according to the actual situation

[root@www memcache-2.2.7]# /usr/local/php/bin/phpize
Configuring for:
PHP Api Version:     20131106
Zend Module Api No:   20131226
Zend Extension Api No:  220131226
Copy after login

3, install

[root@www memcache-2.2.7]# make install
Installing shared extensions:   /usr/local/php/lib/php/extensions/no-debug-non-zts-20131226/
Copy after login

4, modify php .ini file

Add extension=memcache.so

5. Restart php-fpm

Related recommendations: php training

The above is the detailed content of What is the method to install memcache extension in php. 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