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

php中世界最好的语言
Release: 2023-03-26 11:22:01
Original
2655 people have browsed it

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/
Copy after login

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
Copy after login

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"
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!