Modern DirectAdmin installations

The paths below are historical examples. Current installations may use several PHP versions and different handlers. Run php --ini with the exact PHP binary used by the application. For PHP-FPM, inspect the active version and pool configuration, or use a temporary access-restricted diagnostic to check php_ini_loaded_file(). Remove the diagnostic afterward. Do not assume CLI configuration matches the web runtime.
Original article (2013)
I always forget the location of the php.ini in DirectAdmin.
So I record down in here.
/usr/local/lib/php.ini
/usr/local/etc/php5/cgi/php.ini
/usr/local/etc/php4/cgi/php.ini
/usr/local/php54/lib/php.ini
You can show by using this command.
/usr/local/bin/php -i | grep 'Loaded Configuration File'
