Skip to content

Instantly share code, notes, and snippets.

@anish-adm
Forked from icanhazstring/gist:71d974a58d2f35e8abc8
Last active October 28, 2020 00:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anish-adm/cb8d36c58d35db0d0322142b7624c908 to your computer and use it in GitHub Desktop.
Save anish-adm/cb8d36c58d35db0d0322142b7624c908 to your computer and use it in GitHub Desktop.
Install zmq centos 7

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)

Lastly, edit php.ini and add zmq.so as extension (typically located at /usr/local/php/php.ini)

Done!

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