Symptoms
Unable to install a module using PECL
Description
When you attempt to install a module via PECL, the installation fails with this error:
ERROR: failed to run `phpize'
Workaround
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' is listed, it should be removed, as this function is required for PECL to install PHP modules.
Thedisable_functions
feature in PHP has changed as of version 8.0, which impacts all cPanel & WHM versions. Functions that have been disabled will behave as if they have not been declared, which means that theget_defined_functions()
will never include disabled functions. This causes an issue with PECL when the ’exec’ function has been added to thedisable_functions
list.