Introduction
With EasyApache 4, administrators can install multiple PHP versions on their server(s). Each version has its own compatible packages and it can be difficult keeping track of every extension and module that is installed.
The WHM > Software > EasyApache 4 interface offers a very global view on the packages that have been installed, as well as packages are available for installation. However, this is not ideal for users wanting a simpler preview of the installed PHP extensions.
Prodecure
From the command line, an administrator can quickly see which extensions are being loaded by calling each specific PHP binary directly. These exist in the following directory, where ea-php## correlates to a PHP version (ie - ea-php73 is for PHP 7.3).
/opt/cpanel/ea-php##/root/usr/bin/php -m
An example of this output can be found below:
# /opt/cpanel/ea-php73/root/usr/bin/php -m
[PHP Modules]
bcmath
calendar
Core
ctype
curl
date
dom
filter
ftp
gd
hash
iconv
imap
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
readline
Reflection
session
SimpleXML
sockets
SPL
sqlite3
standard
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
zlib