php cli – find which ini file is loaded

Command to find which ini file is loaded for php cli

$ php -i | grep "Loaded Configuration File"

Sample outcome on Ubuntu Linux

Loaded Configuration File => /etc/php5/cli/php.ini
Share this article: share on Google+ share on facebook share on linkedin tweet this submit to reddit

Comments

Click here to write/view comments