Home > Backend Development > PHP Tutorial > How to install yaf extension in PHP7.1

How to install yaf extension in PHP7.1

不言
Release: 2023-03-22 17:06:02
Original
1826 people have browsed it

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!

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