See: https: //zixuephp.net/article-430.html
1, compile and install the source code, PHP version 7.1.33
2, installation swoole extensions php7.1 have compiled installation.
First, download swoole extension
Download: http://pecl.php.net/package/swoole
- wget -c http://pecl.php.net/get/swoole-4.4.4.tgz
- Or ftp last source packet, tar -xzvf swoole-4.4.4.tgz
Second, unzip the package swoole
bash
- xzvf swoole tar - Over 4.2 . 1.tgz
- cd swoole-4.2.1
Third, generate configure profiles
/usr/local/php/bin/phpize
Fourth, specify the php configuration file precompiled
./configure --with-php-config=/usr/local/php/bin/php-config
Fifth, build and install
the make
the make the Test - error proc_open not open, modify disable_functions php.ini, the release function proc_open
make install
Compile the installation:
Sixth, compiled the php.ini file, add swoole.so
bash
- vim /usr/local/php/etc/php.ini
Seven, to take effect restart php-fpm
bash
- service php-fpm restart