• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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