How to Find If an Extension Exists in the PHP Configuration Through Terminal


This article will show you how to search for functions inside the PHPinfo through a terminal or console. I will show you a simple line to execute that finds if a certain word is found in the PHP info. This is useful for searching for functions.

1. Open up a terminal or console.

2. Let’s say if you want to know if GD libraries are installed, you’d search for ‘gd’ with the code like this:

php -i | grep gd

3. It will tell you if it was found or not. This way you won’t have to be checking with a phpinfo(); every time you do changes to the php.ini

If you have any question, please let me know and I’ll be more than glad to assist you.

Best Regards,


Owner of

Looking for quality Linux Web Hosting? Try out Arvixe web hosting and you won’t be disappointed.
Tags: , , , , , , , , , , , , | Posted under Linux Server Admin, Linux Usability | RSS 2.0

Author Spotlight

Richi González

I started programming when I was 12. I'm a Developer and have been working with the Clip-Bucket script since it came out. I'm the Liaison between Arvixe and Clip-Bucket, so anything you need regarding Clip-Bucket or any particular computer-related subject you need, let me know so I can assist you.

Leave a Reply

Your email address will not be published. Required fields are marked *