How to determine which php.ini file PHP is using

The following command will list all of the PHP *.ini configuration files it is using. This is for php-cli.

me@box:~$ php --ini
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/curl.ini,

Do this with Apache:

Leave a Reply

Your email address will not be published.