The PHP ZeroMQ extension provides PHP functions for using the ZeroMQ communication library.
The ZeroMQ extension supports PHP 5.4, 5.5, 5.6, 7.0, and 7.1.
Install the PHP ZeroMQ Extension
To install this extension, SSH in to your server as root and run the following commands:
sudo apt-get install gcc make autoconf pkg-config sudo apt-get install libzmq-dev sudo peclX.Y-sp install zmq-beta
Press enter when prompted with Please provide the prefix of libzmq installation [autodetect] :.
Finally, complete the installation by running these commands as root:
sudo bash -c "echo extension=zmq.so > /etc/phpX.Y-sp/conf.d/zmq.ini" sudo service phpX.Y-fpm-sp restart
Verify the Installation
You can verify the ZeroMQ extension is installed by running this command:
phpX.Y-sp -i | grep zmq
You should see the following output:
/etc/phpX.Y-sp/conf.d/zmq.ini zmq libzmq version => 2.2.0
Alert: For Control Panel Help & Tutorials, click here: Panel Tutorials