Skip to content

Instantly share code, notes, and snippets.

Created July 12, 2020 03:39
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Installing ev, event and libevent for PHP 7.4 on Ubuntu 20.04
cd /usr/src/
git clone
cd pecl-event-libevent
make && sudo make install
sudo apt update
sudo apt install php7.4-dev libevent-dev
# Install extensions
sudo pecl install ev
sudo pecl install event # at the 'Include libevent OpenSSL support [yes] :' prompt type "no".
sudo pecl install libevent
# Create configurations
echo '' | sudo tee /etc/php/7.4/mods-available/ev.ini
echo '' | sudo tee /etc/php/7.4/mods-available/event.ini
echo '' | sudo tee /etc/php/7.4/mods-available/libevent.ini
# Create symlinks
sudo phpenmod -v 7.4 ev
sudo phpenmod -v 7.4 event
sudo phpenmod -v 7.4 libevent
# Check modules are loaded
php -m | grep ev
Copy link

Vladislavik commented Jun 17, 2022

pecl-event-libevent not installing with this instruction, many errors when do make command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment