---
title: How to Check for installed PHP extensions via ssh on a VPS server
description: "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`** ![](https://truehost.com/support/wp-content/uploads/2024/11/image-325.png) To check for…"
url: "https://truehost.com/support/knowledge-base/how-to-check-for-installed-php-extensions-via-ssh-on-a-vps-server/"
updated: "2024-11-15"
category: Cloud servers in Kenya
---

# 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`**

![](https://truehost.com/support/wp-content/uploads/2024/11/image-325.png)

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.

![](https://truehost.com/support/wp-content/uploads/2024/11/image-326.png)

Output.

![](https://truehost.com/support/wp-content/uploads/2024/11/image-327-1024x356.png)

That's it.

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