• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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