• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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