How to Check for installed PHP extensions via ssh on a VPS server

After installing PHP and it’s extensions, you may want to check if the extensions are working and are available A quick way to check is per the command below. First check all php extensions php -m To check for a Specific Extension. Command to use. php -i|grep -i mysqli This checks if mysqli extensio

Last updated 30 Nov 2026Also in: Web Hosting, Remote Access

After installing PHP and it’s extensions, you may want to check if the extensions are working and are available

A quick way to check is per the command below.

First check all php extensions

php -m

To check for a Specific Extension.

Command to use.

php -i|grep -i mysqli

This checks if mysqli extension required for connecting to a mysql database is installed.

Output.

That’s it.

You can check for other extensions as well using the command above.

Was this article helpful?