1. Download Extension official address HTTP://pecl.php.net/package/libevent Please select the appropriate version according to your PHP script
Such as
wget http://pecl.php.net/get/libevent-0.0.4.tgz
2.Download wget http://pecl.php.net/get/libevent-0.0.4.tgzUnzip Tar-ZXVF libevent-0.0.4.TGZCD libevent-0.0.4phpize./configure--with-php-config=/local/php/bin/php-Config found error displayed as RE2C version too low from HTTP://www.re2c.org/Download and install thecontinue to./configure--with-php-config=/local/php/bin/php-Config error cannot find libevent headers need to install libevent Download Libevent official website http://libevent.org/wget HTTPS://github.com/downloads/libevent/libevent/libevent-2.0.20-stable.tar.gzTar-ZXVF Libevent-2.0.20-stable.tar.GZ CD libevent-2.0.20-Stable./configure--prefix=/local/libevent-2.0.20-stable/ Make&&Make install installs the extension again, joins--with-libevent
./configure--with-php-config=/home/users/suqian/.jumbo/php/bin/php-config--with-libevent=/local/ libevent-2.0.20-stable/
Make && make install
After you configure PHP.ini to move the generated. So files to the extensions_dir configured in php.ini
and add the configuration
extension= "Libevent.so"