• 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
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

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