• 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.

Issue Trying to add pecl_http but its failing

Steg

New Pleskian
Server operating system version
CentOS 7
Plesk version and microupdate number
Plesk Obsidian Web Pro Edition 18.0.57 Update #4
I'm trying to install a new PHP module using the following command

plesk bin php_handler --extension-install mongodb -id plesk-php80-fpm
But I'm getting the following error:
configure: error: please install and enable pecl/raphf
ERROR: `/tmp/pecl_http/configure --with-php-config=/opt/plesk/php/8.0/bin/php-config --with-http-zlib-dir=/usr --with-http-libcurl-dir=/usr --with-http-libevent-dir=/usr --with-http-libicu-dir=/usr --with-http-libidn2-dir=/usr --with-http-libidn-dir=/usr --with-http-libidnkit2-dir=/usr --with-http-libidnkit-dir=/usr' failed

I initially followed the walkthrough here (which didn't work either), so I think I have everything installed. What am I missing?
 
Whatever that is, it needs to be installed first. I think it is another PECL package, so maybe try to install that "raphf" first? PECL :: Package :: raphf
Have you considered using the built-in PECL package installer that you can use from the GUI's PHP page?
Ahhh! I have now, but it still fails to install.

Code:
WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update
downloading pecl_http-4.2.4.tgz ...
Starting to download pecl_http-4.2.4.tgz (224,933 bytes)
..............................................checking for libidn... no
checking whether/where to check for libicu... /usr
checking for icu-config... false
checking for icu-i18n... no
checking for uidna_IDNToASCII... no
checking for uidna_nameToASCII_UTF8... no
checking whether/where to check for libidnkit2... /usr
checking for libidnkit2... no
checking whether/where to check for libidnkit... /usr
checking for libidnkit... no
checking whether ext/raphf is enabled... no
configure: error: please install and enable pecl/raphf
ERROR: `/tmp/pecl_http/configure --with-php-config=/opt/plesk/php/8.0/bin/php-config --with-http-zlib-dir=/usr --with-http-libcurl-dir=/usr --with-http-libevent-dir=/usr --with-http-libicu-dir=/usr --with-http-libidn2-dir=/usr --with-http-libidn-dir=/usr --with-http-libidnkit2-dir=/usr --with-http-libidnkit-dir=/usr' failed

If it matters, I did try to run 'pecl channel-update pecl.php.net' but the install still failed.

edit: And from the UI, raphf (2.0.1) shows a green checkmark, suggesting its already installed.
 
It may be available for another PHP version, but not for the one you are trying to add the other PECL package to.
 
I only see the packages installed after selecting a PHP version, so it has to be for that version, right?
 
I mean the installation. You are installing a package for which PHP version? Is the pecl/raphf already present for that very PHP version? The installation routine says: No, it is not. Where do you see that it is? On the phpinfo() page?
 
I think this needs checking by an engineer. If the PHP reports that the package is installed it cannot at the same time report it is not installed when a PECL package is added that requires it. I suggest to submit a support request so that it can be checked on your server.

To sign-in to support please go to https://support.plesk.com

If you experience login issues, please see this KB article:
https://support.plesk.com/hc/en-us/...rt-plesk-com-and-password-reset-does-not-work

If you bought your license from a reseller, your reseller should provide support for you. If the reseller does not provide support, here is an alternative:
https://support.plesk.com/hc/en-us/articles/12388090147095-How-to-get-support-directly-from-Plesk-
(use 30 days free trial)
 
Back
Top