Question
How to View all PHP modules for a specific PHP version via CLI?
Answer
EA-PHP
To view the modules for the cPanel-provided ea-php, you can query the specific version directly.
# /opt/cpanel/ea-phpXX/root/usr/bin/php -m
Note: Replace ea-phpXX with the version you want to check. For example, for PHP 8.4 you would use ea-php84.
ALT-PHP
To view the modules for the CloudLinux-provided alt-php, you can query the specific version directly.
# /opt/alt/phpXX/usr/bin/php -m
Note: Replace phpXX with the version you want to check. For example, for PHP 8.4 you would use php84.
Comments
0 comments
Article is closed for comments.