Last Updated: February 25, 2016
· sativaware

Find the location of the php ini file

Often when you need to edit or check the the php.ini file - you can't recall it's location.

If you are unsure of where the php.ini file is located - open a terminal and type the following:

php --ini

This command will list the path of the loaded configuration file(php.ini) - here is some sample output:

Configuration File (php.ini) Path: /etc/php5/cli
Loaded Configuration File:         /etc/php5/cli/php.ini
Scan for additional .ini files in: /etc/php5/cli/conf.d
Additional .ini files parsed:      /etc/php5/cli/conf.d/gd.ini,