Created
October 1, 2018 16:21
-
-
Save Mecanik/b66241c9fa17cd888e77dc9b630741ab to your computer and use it in GitHub Desktop.
Install PHP EV, EVENT, LIBEVENT on Ubuntu 17.10 for PHP 7.1 (FPM, CLI)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Please use with caution, if you do not understand what these extensions are for, then document yourself first. | |
PHP LIBEVENT | |
WARNING: CAUSES SEGEMENTATION FAULT ON PHP 7.0 ! | |
------------------------------------------ | |
cd /usr/src/ | |
git clone https://github.com/expressif/pecl-event-libevent.git | |
cd pecl-event-libevent | |
phpize | |
./configure | |
make && sudo make install | |
sudo echo 'extension=libevent.so' > /etc/php/7.1/mods-available/libevent.ini | |
sudo ln -s /etc/php/7.1/mods-available/libevent.ini /etc/php/7.1/fpm/conf.d/20-libevent.ini | |
sudo ln -s /etc/php/7.1/mods-available/libevent.ini /etc/php/7.1/cli/conf.d/20-libevent.ini | |
sudo service php7.1-fpm restart | |
------------------------------------------ | |
PHP EVENT - RECOMMENDED! | |
------------------------------------------ | |
pecl -d php_suffix=7.1 install event | |
sudo echo 'extension=event.so' > /etc/php/7.1/mods-available/event.ini | |
sudo ln -s /etc/php/7.1/mods-available/event.ini /etc/php/7.1/fpm/conf.d/20-event.ini | |
sudo ln -s /etc/php/7.1/mods-available/event.ini /etc/php/7.1/cli/conf.d/20-event.ini | |
sudo service php7.1-fpm restart | |
------------------------------------------ | |
PHP EV - PHP DOES NOT SEE IT PROPERLY | |
------------------------------------------ | |
pecl -d php_suffix=7.1 install ev | |
sudo echo 'extension=ev.so' > /etc/php/7.1/mods-available/ev.ini | |
sudo ln -s /etc/php/7.1/mods-available/ev.ini /etc/php/7.1/fpm/conf.d/20-ev.ini | |
sudo ln -s /etc/php/7.1/mods-available/ev.ini /etc/php/7.1/cli/conf.d/20-ev.ini | |
sudo service php7.1-fpm restart | |
------------------------------------------ | |
Enjoy! ( give me a coffee? ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment