How to find php.ini file from command line

How to find php.ini file from command line

I find myself searching for the php.ini file from shell frequently. There are several methods to search and I thought I would quickly share a quick command I use:

php -i | grep php.ini

The output is easily readable.

 Configuration File (php.ini) Path => /usr/local/lib
 Loaded Configuration File => /usr/local/lib/php.ini

There you go; easy as that.  You can now find your php.ini file using shell ( or find any other file for that matter ).

Leave a Reply

Schedule a Virtual Meeting To Find The Best Plans For You

Let’s have a chat about how we can help you improve your business, reach more customers online, generate more leads and make more sales.

Our services are tailored and customized specifically for you; guaranteeing the best results possible.