Home > Article > Backend Development > Detailed explanation of the steps to install event extension in php7
This time I will bring you phpInstallationevent extension steps in php7. What are the precautions for installing event extension in php7? The following is the actual combat Let’s take a look at the case.
Download address: http://pecl.php.net/package/event
To install the support library libevent, you need to compile a higher version (the latest version release-2.1.8-stable is used here) Example)
wget -c https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/libevent-2.1.8-stable.tar.gz -P /usr/local/src cd /usr/local/src tar -zxvf libevent-2.1.8-stable.tar.gz && cd libevent-2.1.8-stable ./configure --prefix=/usr/local/libevent-2.1.8 make && make install
Install the event library (take event-2.3.0.tgz as an example)
wget -c http://pecl.php.net/get/event-2.3.0.tgz -P /usr/local/src cd /usr/local/src tar -zxvf event-2.3.0.tgz && cd event-2.3.0 /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config --with-event-libevent-dir=/usr/local/libevent-2.1.8/ make && make install
Add the following configuration in php.ini
extension=event.so
After restarting php-fpm, use php -m | grep event to check whether the event library plug-in is installed successfully
I believe you have mastered the method after reading the case in this article. For more exciting content, please pay attention to other related articles on the php Chinese website!
Recommended reading:
Detailed explanation of the steps for PHP RSA to generate a key with 1024 bits
PHP development api interface security Detailed explanation of verification steps
The above is the detailed content of Detailed explanation of the steps to install event extension in php7. For more information, please follow other related articles on the PHP Chinese website!