Installing PHP-ZMQ
Estimated reading time:
This article will require login to your host provider server and apply SHELL command if you are not sure we advise to reach your host provider.
We use PHP-ZMQ extension to create live WebSocket seasons:
Installing PHP-ZMQ
If your host provider is using Cpanel you can install ZMQ from pear modules
Go to pear packages then search for "php-zmq" or "zmq" and click on the install button.
Installing PHP-ZMQ via Command
To install ZeroMQ with command log in to your server through Putty or any similar, We will start first with updating the repo with the following command:
Then install the require dependency:
You can now start installing ZeroMQ with pecl:
After installing ZMQ make sure to add the following line at your php.ini config file
Install ZMQ From Source
install the require dependency:
clone latest version from git
to install zmq run
To enable ZMQ you need to add the following at your php.ini file
or in file /etc/php/7.x/mods-available/zmq.ini, then run sudo phpenmod zmq
If the install was successful you should see green check icon next to PHP ZMQ at plugin settings > server status page