In this post we will learn how to check installed PHP extensions. The most easiest way to check is via phpinfo(); function, but at times you want to check it instantly on a remove server.

Before you can run any php command from command line make sure you have php5-cli installed on your server. If it is not available, you can install it with the following command.

Open the terminal and type the following.

sudo apt-get install php5-cli

Now next step is to see the lists of extensions installed, type the following command in the terminal.

php –me

This show you the list of the extension installed.

Hope that helps.

Stay Digified !!
Sachin Khosla

Share this post: