1 download yaf extensions source installation package.
Official website download page: HTTP: // pecl.php.net/package/yaf
2 download yaf extensions source installation package.
Wget -c HTTP: // pecl.php.net/get/ 3.0.7.tgz-YAF
. 3 . YAF decompression expansion yaf- 3.0 . . 6 .tgz package
the tar -xzvf yaf- 3.0 . . 6 .tgz
CD YAF - 3.0 . . 6
. 4 . compiler generates the configuration file configure
the sudo / usr / local / PHP7 .2 / bin / phpize
If multiple php environment, yaf noted above is mounted which extend in the php;
5 . profile execute
the sudo ./configure - with PHP-- config = / usr /local / PHP7 .2 / bin / PHP- config
6. Compile and install
let shell_exec, proc_get_status, proc_open open, delete a few words at this /etc/php.ini
sudothe make && sudo the make install
- After the installation is complete you will be prompted #
- Installing shared extensions: /usr/local/php/lib/php/extensions/no-debug-non-zts-20160303/
7 A reference extension in PHP's configuration file
vim php.ini
content # file to the end of the
Extension = yaf.so
8 . Restart PHP- FPM service extensions take effect
sudo Service php -fpm restart
9. Check extension in the php version installed
/ usr / local / php7.2 / bin / php -m
Note: not necessarily the view of php -m
command line to see the expansion yaf, but phpinfo (); not necessarily the view!