PHP 7.1 Method for Installing yaf Extensions
- 2021-09-12 00:36:16
- OfStack
Add the PHP command 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 a time
ln /usr/local/webserver/php/bin/* /usr/bin/
Download the Yaf expansion pack
Download the corresponding extension package. PHP7 is the version above Yaf3.0. If it is the version under PHP71, 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
Installation
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" Under 1 Row addition
extension = "yaf.so"