Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Install zmq centos 7 and PHP Extension
## install
yum install zeromq-devel
## install zmq.so
cd ~
git clone https://github.com/zeromq/php-zmq.git
cd php-zmq
phpize && ./configure
make && make install
## add extension to php
cd ~/php-zmq
mv modules/zmq.so /usr/lib64/php/modules
vim /etc/php.d/20-zmq.ini (extension=zmq.so)
## restart fpm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment