Home>Article>Backend Development> How to install php7 yaf extension
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.
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 packagewget -c http://pecl.php.net/get/yaf-3.2.5.tgz
3. Unzip the yaf extension yaf-3.2.5.tgz packagetar -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 installmake && 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 effectsystemctl 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!