• Dear Pleskians! The Plesk Forum will be undergoing scheduled maintenance on Monday, 7th of July, at 9:00 AM UTC. The expected maintenance window is 2 hours.
    Thank you in advance for your patience and understanding on the matter.

Resolved How to install Zeromq

I understand that,
even thought it has been installed accessing a script over browser gives
Class 'ZMQContext' not found
 
So I was trying same on Ubuntu20.04 for PHP8.
This git://github.com/mkoppanen/php-zmq.git does not seem to exist any more.
Please suggest
 
I found a solution. You have to compile PHP module from the master branch:

# apt-get install --yes git libzmq3-dev
# git clone git://github.com/mkoppanen/php-zmq.git
# cd php-zmq/
# /opt/plesk/php/7.3/bin/phpize
# ./configure --with-php-config=/opt/plesk/php/7.3/bin/php-config
# make
# make install
# echo "extension=zmq.so" > /opt/plesk/php/7.3/etc/php.d/zmq.ini
# plesk bin php_handler --reread

As result:

# /opt/plesk/php/7.3/bin/php -m | grep zmq
zmq
This works for Debian 10.13, Plesk 18.0.52. You need to follow this tutorial if 4 line is giving you an a error: How to install the OAuth PHP extension for PHP versions provided by Plesk - Support Cases from Plesk Knowledge Base

Also you need to change from php 7.3 to 7.4 in lines above.
 
Back
Top