Home > Article > Backend Development > How to install yaf extension in php7
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.
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
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
4. Execute configuration file
[root@zixuephp yaf-3.0.6]# ./configure --with-php-config=/usr/local/php/bin/php-config
5. Compile And install
6. Reference the extension in the PHP configuration file
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:
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!