When trying to install a PHP PECL module you may see an error of the following in WHM
Path Path not found.
or when trying to install using the command line you see
ERROR: The default config file is not a valid config file or is corrupted.
This typically occurs because the users PECL config file is incorrect or empty.
If /root/.pearrc is empty then remove or move the file so it gets recreated when pecl is executed again.
If the issue persists then check to make sure pecl exists for that PHP version.
# ls -ah /opt/*/*/root/usr/bin/pecl
If the module attempted to be installed was for PHP 8.0 then pecl is missing in this example.
Reinstall the RPM that provides that PHP version pecl.
In this example:
yum reinstall ea-php80-pear -y
Other possibilities to review are:
Unable to Install a Module Using PECL
Using the pecl interface in WHM Module Installers results in open_basedir or disable_functions errors