Question
Why doesn't PHPINFO show an installed PECL module?
Answer
In most cases, the reason a PECL module does not appear enabled in a phpinfo file is that the extension is not installed.
You can confirm if the extension is installed by using the PECL command-line tool, this is located at /opt/cpanel/phpXX/ where XX is the PHP version. In this example I am listing the currently installed modules for PHP version 7.3:
-bash-4.2# /opt/cpanel/ea-php73/root/usr/bin/pecl list
Installed packages, channel pecl.php.net:
=========================================
Package Version State
ps 1.4.1 stable
-bash-4.2#
If the module is not listed, you can install it using the pecl install command:
/opt/cpanel/ea-php73/root/usr/bin/pecl install ps
Most PECL modules require additional operating system packages. In this case, it was the pslib-devel package.
Comments
0 comments
Article is closed for comments.