php5.6 installation swoole extension
Download
compiled
modify the php.ini to load extension swoole
restart the server
to verify that the installation was successful?
download
https://pecl.php.net/package/swoole
Find the corresponding version
Here swoole-1.10.5 version installed
php version 5.6.9
Linux system centos7.5
wget https://pecl.php.net/get/swoole-1.10.5.tgz
zxvf swoole-1.10.5.tgz tar
cd swoole-1.10.5
compiler
/usr/local/php56/bin/phpize
编译
./configure --with-php-config=/usr/local/php56/bin/php-config
安装
make && make install
Successful display:
the Installing Shared Extensions: / usr / local / php56 / lib / PHP / Extensions / non-NO-Debug-ZTS-20,131,226 /
the Installing header Files: / usr / local / php56 / the include / PHP /
Modify load php.ini swoole extension
[Extension]
Extension = '/ usr / local / php56 / lib / PHP / Extensions / non-NO-Debug-ZTS-20,131,226 / swoole.so'
restart the server
service nginx restart
service php-fpm restart
php -m | grep swoole
Successful installation