• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Resolved Cannot install any pecl module PHP 8.0

netesi365

New Pleskian
Server operating system version
Obsidian
Plesk version and microupdate number
Web Host Edition
Hello Everyone,
I need to install mongodb php extension into my pesk with different PHP version. Here is the problem:

Launch the command:
# /opt/plesk/php/8.0/bin/pecl version

PEAR Version: 1.10.13
PHP Version: 8.0.25
Zend Engine Version: 4.0.25
Running on: Linux vps-db****** 4.19.0-21-cloud-amd64 #1 SMP Debian 4.19.249-2 (2022-06-30) x86_64

Now, trying to install mongodb:

# /opt/plesk/php/8.0/bin/pecl install mongodb

running: phpize
sh: 1: phpize: not found
ERROR: `phpize' failed

Check for phpize if present:

# /opt/plesk/php/8.0/bin/phpize --version

Configuring for:
PHP Api Version: 20200930
Zend Module Api No: 20200930
Zend Extension Api No: 420200930


I cannot figure out what is the problem. Maybe pecl uses wrong configuration bug when I use /opt/plesk/php/8.0/bin/pecl config-show everything seems fine.
 
Since Plesk 18.0.48 version, you can install PHP modules (extensions) with the following simple method:

~# plesk bin php_handler --extension-install mongodb -id plesk-php80-fpm
The PHP extension 'mongodb' was successfully installed.

~# /opt/plesk/php/8.0/bin/php -m | grep mongo
mongodb


To see the exact commands, run plesk bin php_handler –-help.
 
Since Plesk 18.0.48 version, you can install PHP modules (extensions) with the following simple method:

~# plesk bin php_handler --extension-install mongodb -id plesk-php80-fpm
The PHP extension 'mongodb' was successfully installed.

~# /opt/plesk/php/8.0/bin/php -m | grep mongo
mongodb


To see the exact commands, run plesk bin php_handler –-help.

This should be the default guide on how to install extensions instead of this https://support.plesk.com/hc/en-us/...emcached-PHP-extension-for-Plesk-PHP-handlers
I was facing an issue that /opt/plesk/php/8.2/bin/pecl install memcached was installing the memcached extension for wrong php version and nothing seemed to help. Running plesk bin php_handler --extension-install memcached -id plesk-php82-fpm installed the extension properly.
 
Back
Top