Unable to install a module using PECL
When you attempt to install a module via PECL, the installation fails with this error:
;ERROR: failed to run `phpize'
Check to see if the popen function is listed in the respective PHP version's "Disabled Functions":
grep disable_functions /opt/cpanel/ea-php*/root/etc/php.ini
If popen or exec is listed, it should be removed, as these functions are required for PECL to install PHP modules.
The disable_functions feature in PHP has changed as of version 8.0, which impacts all cPanel and WHM versions. Functions that have been disabled will behave as if they have not been declared, which means that the get_defined_functions() will never include disabled functions. This causes an issue with PECL when the ’exec function has been added to the disable_functions list.