• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved Install php8-zqm on ubuntu

harpreetsb

Basic Pleskian
trying to install ZMQ module for PHP8 with following command
/opt/plesk/php/8.0/bin/pecl install zmq-beta
It failed with errors (including last 2 lines only)

Code:
checking libzmq installation... configure: error: Unable to find libzmq installation
ERROR: `/tmp/zmq/configure --with-php-config=/opt/plesk/php/8.0/bin/php-config --with-zmq' failed
 
UPDATE: after this I installed package libzmq
and then running
/opt/plesk/php/8.0/bin/pecl install zmq-beta

Selection_008.png
 
This instruction looks a bit outdated but can be used as an example.

 
This instruction looks a bit outdated but can be used as an example.

Stuck after
/opt/plesk/php/8.0/bin/pecl install zmq-beta
same error as previous screenshot.
 
I have compiled it for CentOS (Pease adapt it for Ubuntu):

# wget https://github.com/zeromq/php-zmq/archive/refs/heads/master.zip
# unzip master.zip
# cd php-zmq-master/
# /opt/plesk/php/8.0/bin/phpize
# ./configure --with-php-config=/opt/plesk/php/8.0/bin/php-config
# make
# make install
# echo "extension=zmq.so" > /opt/plesk/php/8.0/etc/php.d/zmq.ini
# cp /usr/lib/libzmq.so.5 /usr/lib64/
# plesk bin php_handler --reread
# /opt/plesk/php/8.0/bin/php -m | grep zmq
zmq
 
I have compiled it for CentOS (Pease adapt it for Ubuntu):

# wget https://github.com/zeromq/php-zmq/archive/refs/heads/master.zip
# unzip master.zip
# cd php-zmq-master/
# /opt/plesk/php/8.0/bin/phpize
# ./configure --with-php-config=/opt/plesk/php/8.0/bin/php-config
# make
# make install
# echo "extension=zmq.so" > /opt/plesk/php/8.0/etc/php.d/zmq.ini
# cp /usr/lib/libzmq.so.5 /usr/lib64/
# plesk bin php_handler --reread
# /opt/plesk/php/8.0/bin/php -m | grep zmq
zmq
Thank you so much. this worked
 
Back
Top