How to install extended php instances by using pecl and how to install pecl instances
1. Install pecl and create a shortcut key (skip this step if php is installed)
# Cd/usr/local/php/bin // you can check whether it has been with pecl # wget http://pear.php.net/go-pear.phar-O go-pear.php # php go-pear.php # ln-s/usr/local/php/bin /pecl/usr/bin/pecl
2. Check whether the extension is included.
# Pecl search swoole // swoole indicates the name extension to be queried (take swoole extension as an example) // query result: Retrieving data... 0%. matched packages, channel pecl.php.net: ==================================================== Package stable/(Latest) local swoole 1.9.23 (stable) Event-driven asynchronous and concurrent networking engine with high performance for PHP. swoole_serialize 0.1.1 (beta) the fastest and smallest serialize fucntion bound for php7
3. Install configuration Extension
# Pecl install swoole // output result: Build process completed successfully Installing '/usr/lib64/php/modules/swoole. so 'Install OK: channel: // pecl.php.net/swoole-1.9.23 configuration option "php_ini" is not set to php. ini location You shoshould add "extension = swoole. so "to php. ini # configure php. ini references swoole. so, restart php.
Note:Compared with the phpize method, the pecl method is easier to install, saving you the trouble of manually adding it to php. ini.
The above example of php extension installation through pecl is all the content shared by the editor. I hope you can give us a reference and support the help house.