To check which PHP and Apache Modules are installed on Linux, you can follow these steps –
Log in via SSH to your server to run the following commands –
1. Check Apache modules –
apachectl -M
2. Check PHP Modules –
php -m
3. Check the PHP version –
php -v