Pecl easy to install PHP extensions

Source: Internet
Author: User

When building a PHP environment, we usually do not install all the extensions, and as the requirements continue to increase, you may need to install new extensions, and here is an easy way to install them. Here is an example of the ev.so extension.

1. Go to the PHP installation directory Bin folder. Cd/applications/xampp/bin;

2. First we look for extensions that are not installed./pecl Serarch EV can see:


The latest available version from which EV can be found is 0.2.15

3. Then execute sudo./pecl install EV or sudo./pecl Install chanel://pecl.php.net/ev-0.2.15

Note the use of sudo to avoid permissions problems, the first way if there is no stable version, the general error, it is recommended to use the second type, ev-0.2.15 can replace the extension you want-version number

4. All the way to enter, the installation is successful, will show the location of the extension file ev.so

5. Configure PHP.ini, add extension=ev.so

6. It's done! It's that simple.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Pecl easy to install PHP extensions

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.