Home >Backend Development >PHP Tutorial >How to install yaf extension in PHP7.1
This article shares with you how to install the yaf extension in PHP7.1. If necessary, you can refer to it
Add PHP commands to the system
My PHP installation directory is /usr /local/webserver/php, so phpize is /usr/local/webserver/php/bin/phpize, but considering that other commands may be used in the future, I made a soft link to all the files in this directory at once
ln /usr/local/webserver/php/bin/* /usr/bin/
Download the Yaf expansion package
Download the corresponding expansion package, Yaf3.0 The above version is for PHP7. If it is a version below PHP7, it is recommended to use version 2.3.5
mkdir -p /data/soft
cd /data/soft/
wget http:// pecl.php.net/get/yaf-3.0.4.tgz
Install
cd /data/soft/
tar zxvf yaf-3.0.4.tgz
cd yaf-3.0.4
phpize
./configure --with-php-config=/usr/local/webserver/php/bin/php-config
make && make install
vi /usr/local/webserver/php/etc/php.ini
#Find extension_dir = "ext" and add it on the next line
extension = "yaf.so"
Related recommendations:
How to install the yaf extension on Ubuntu
The above is the detailed content of How to install yaf extension in PHP7.1. For more information, please follow other related articles on the PHP Chinese website!