Dude, where's my php.ini?
03/12/2018Ever need to adjust your php.ini file but never know which file to edit?
If you need to adjust the ini file for php-cli simply run:
php --ini
Unfortunately if you want to find the ini file for mod-php or php-fpm you will have to add
<?php phpinfo(); ?>
to a file and do a quick search.
Usually I find that you can get the location of the ini files using the cli command and go from there to find the mod/fpm files.