Home  >  Article  >  Backend Development  >  How to install yaf extension in php7

How to install yaf extension in php7

王林
王林Original
2021-02-22 16:24:312905browse

How to install yaf extension in php7: 1. Download the yaf extension library source code installation package from the official website, and use the tar command to decompress it; 2. Generate and compile the configure configuration file; 3. Use "./configure --with- php-config=/usr/local/php/bin/php-config" command to execute the configuration file; 4. Use the make command to compile and install; 5. Reference the extension in the PHP configuration file; 6. Restart php-fpm.

How to install yaf extension in php7

The operating environment of this article: centos 7 system, php 7&&yaf 3.0.6, thinkpad t480 computer.

1. Download the yaf installation package

Download the yaf extension library source code installation package from the official website

How to install yaf extension in php7

wget -c http://pecl.php.net/get/yaf-3.0.6.tgz

2. Unzip the yaf extension yaf- 3.0.6.tgz package

tar -xzvf yaf-3.0.6.tgzcd yaf-3.0.6

3. Generate and compile configure configuration file

How to install yaf extension in php7

4. Execute configuration file

[root@zixuephp yaf-3.0.6]# ./configure --with-php-config=/usr/local/php/bin/php-config

5. Compile And install

How to install yaf extension in php7

6. Reference the extension in the PHP configuration file

How to install yaf extension in php7

7. Restart the php-fpm service extension Effective

service php-fpm restart

After installation, check the extension information by running phpinfo() in php, as shown in the figure:

How to install yaf extension in php7

Related recommendations: php tutorial

The above is the detailed content of How to install yaf extension in php7. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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