• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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 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.
 
Back
Top