How to install extended php instances by using pecl and how to install pecl instances

Source: Internet
Author: User
Tags pear

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.