Home > Backend Development > PHP7 > What should I do if php7 cannot install swoole?

What should I do if php7 cannot install swoole?

藏色散人
Release: 2023-02-17 14:12:02
Original
2832 people have browsed it

What should I do if php7 cannot install swoole?

php7 cannot be installed swoole What should I do?

Install the swoole extension in the compiled and installed php7.1.

1. Download the swoole extension

Download address: http://pecl.php.net/package/swoole

What should I do if php7 cannot install swoole?

bash
wget -c http://pecl.php.net/get/swoole-4.2.1.tgz
Copy after login

2 , Unzip the swoole package

bash
tar xzvf swoole-4.2.1.tgz
cd swoole-4.2.1
Copy after login

3. Generate the configure configuration file

/usr/local/php/bin/phpize
Copy after login

4. Specify the php configuration file for pre-compilation

./configure --with-php-config=/usr/local/php/bin/php-config
Copy after login

5. Compile and install

make && make install
Copy after login

Compilation and installation results:

What should I do if php7 cannot install swoole?

##6. Compile the php.ini file and add swoole.so

bash
vim /usr/local/php/etc/php.ini
Copy after login

What should I do if php7 cannot install swoole?

7 , restart php-fpm to take effect

bash
service php-fpm restart
Copy after login

What should I do if php7 cannot install swoole?

The above is the detailed content of What should I do if php7 cannot install swoole?. 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