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

How to install php7 yaf extension

藏色散人
藏色散人Original
2021-06-10 10:18:232562browse

php7 Installation method of yaf extension: 1. Download the yaf extension library source code installation package; 2. Download the yaf extension library source code installation package; 3. Unzip the yaf extension yaf package; 4. Generate and compile the configure configuration file; 5 , execute the configuration file; 6. Compile and install; 7. Just reference the extension in the PHP configuration file.

How to install php7 yaf extension

The operating environment of this article: linux5.9.8 system, PHP7.2.4&&yaf3.2.5 version, DELL G3 computer

php7 under linux Install yaf extension

1. Download the yaf extension library source code installation package

Official website download page: http://pecl.php.net/package/yaf
As shown:

2. Download the yaf extension library source code installation package
wget -c http://pecl.php.net/get/yaf-3.2.5.tgz

3. Unzip the yaf extension yaf-3.2.5.tgz package
tar -xzvf yaf-3.2.5.tgz
cd yaf-3.2 .5

4. Generate and compile configure configuration file

5.Execute configuration file
./configure --with-php- config=/usr/local/php/bin/php-config

6. Compile and install
make && make install

7. Reference the extension in the PHP configuration file

vim /usr/local/php/etc/php.ini
#文件内容末尾加入
extension=yaf.so

8. Restart the php-fpm service for the extension to take effect
systemctl restart php-fpm

9 , after installation, check the extended information by running phpinfo() in php, as shown in the figure:

[Recommended learning: PHP video tutorial]

The above is the detailed content of How to install php7 yaf extension. 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