Find PHP (php.ini) Configuration File on Linux
Quote from HeelpBook on February 5, 2021, 5:45 pmPHP can be controlled from the terminal using php command line utility, in conjunction with the -i switch which enables showing of PHP information and configurations and used together with the grep command this will help us to can find the PHP configuration file location like so:
$ php -i | grep "Loaded Configuration File"
The ouput will be something like the following:
Loaded configuration file => /etc/php.ini
PHP can be controlled from the terminal using php command line utility, in conjunction with the -i switch which enables showing of PHP information and configurations and used together with the grep command this will help us to can find the PHP configuration file location like so:
$ php -i | grep "Loaded Configuration File"
The ouput will be something like the following:
Loaded configuration file => /etc/php.ini