How to install yaf extension in php7

王林
Release: 2023-03-08 07:42:02
Original
2727 people have browsed it

How to install yaf extension in php7: 1. Download the yaf extension library source code installation package from the official website, and use the tar command to decompress it; 2. Generate and compile the configure configuration file; 3. Use "./configure --with- php-config=/usr/local/php/bin/php-config" command to execute the configuration file; 4. Use the make command to compile and install; 5. Reference the extension in the PHP configuration file; 6. Restart php-fpm.

How to install yaf extension in php7

The operating environment of this article: centos 7 system, php 7&&yaf 3.0.6, thinkpad t480 computer.

1. Download the yaf installation package

Download the yaf extension library source code installation package from the official website

How to install yaf extension in php7

wget -c http://pecl.php.net/get/yaf-3.0.6.tgz
Copy after login

2. Unzip the yaf extension yaf- 3.0.6.tgz package

tar -xzvf yaf-3.0.6.tgzcd yaf-3.0.6
Copy after login

3. Generate and compile configure configuration file

How to install yaf extension in php7

4. Execute configuration file

[root@zixuephp yaf-3.0.6]# ./configure --with-php-config=/usr/local/php/bin/php-config
Copy after login

5. Compile And install

How to install yaf extension in php7

6. Reference the extension in the PHP configuration file

How to install yaf extension in php7

7. Restart the php-fpm service extension Effective

service php-fpm restart
Copy after login

After installation, check the extension information by running phpinfo() in php, as shown in the figure:

How to install yaf extension in php7

Related recommendations: php tutorial

The above is the detailed content of How to install yaf extension in php7. 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 [email protected]
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!