In the examples shown, replace "X.Y" with your app's PHP version (for example, "5.6" or "7.0"). To install this extension for multiple PHP versions, repeat the installation for each PHP version.

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
Was this answer helpful? 0 Users Found This Useful (0 Votes)

Powered by WHMCompleteSolution