Home  >  Article  >  Backend Development  >  Detailed explanation of the steps to install yaf extension in PHP7.1

Detailed explanation of the steps to install yaf extension in PHP7.1

php中世界最好的语言
php中世界最好的语言Original
2018-05-17 14:28:102594browse

This time I will bring you PHPinstallationyaf extension steps in PHP7.1. What are the precautions for installing yaf extension in PHP7.1, as follows This is a practical case, let’s take a look at 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 Yaf expansion package

Download the corresponding expansion package. The version of Yaf3.0 or above is PHP7. If it is a version of PHP7 or lower, 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
#找到extension_dir = "ext"在下一行添加
extension = "yaf.so"

I believe you have mastered the method after reading the case in this article. For more exciting information, please pay attention to other related articles on the php Chinese website!

Recommended reading:

Detailed explanation of the steps to display thinkPHP controller variables in the template

Detailed explanation of the steps to install php7 on mac

The above is the detailed content of Detailed explanation of the steps to install yaf extension in PHP7.1. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn