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