I am setting up a LEMP server (Ubuntu/Nginx/PHP) with PHP-FPM, and I was wondering what is the best practice for modifying global PHP settings? There seems to be a few options:
- Edit
/etc/php/8.3/fpm/php.ini
directly. - Edit
/etc/php/8.3/fpm/php-fpm.conf
directly. - Edit
/etc/php/8.3/fpm/pool.d/www.conf
directly (although this is normally per site files). - Create a file
/etc/php/8.3/fpm/conf.d/GLOBAL.ini
.
I did some research, but couldn’t find any useful suggestions. I am guessing it’s not that important, but surely there are some strong opinions? I am inclined to use the last option #4, because that seems the most tidy. Thanks for suggestions.