Monthly Archives: 6 月 2018

[PHP]DirectAdmin PHP5.6安装swoole

Leave a comment

客户要求安装swoole,也不知道什么鬼用途。记一下笔记。

yum install gcc make autoconf pcre -y
cd ~
wget http://pecl.php.net/get/swoole-1.10.5.tgz
tar -zxvf swoole-1.10.5.tgz
cd swoole-1.10.5
export PHP_PREFIX="/usr/local"
$PHP_PREFIX/php56/bin/phpize
./configure --with-php-config=$PHP_PREFIX/php56/bin/php-config
make -j 2
make install

echo "extension=swoole.so" >> /usr/local/php56/lib/php.conf.d/20-custom.ini
service httpd restart
php -i | grep "swoole"