Reputation: 5418
When I wanted to show/hide PHP errors, in Apache, I changed the PHP configuration file that was under /etc/php5/apache2/php.ini
.
In Nginx I have no idea of where is the appropriate file, I'd only found this one: /etc/php5/fpm/php.ini
But the configuration there doesn't seems to be correct.
If I modify the /etc/php5/fpm/php.ini
file, the configuration declared there will take effects for all my Nginx *sites available*?
Upvotes: 2
Views: 671
Reputation: 66217
If I modify the /etc/php5/fpm/php.ini file, the configuration declared there will take effects for all my Nginx sites available?
To confirm, put the following in a web accessible location and request it via a browser:
<?= phpinfo();
The parsed ini files will be listed.
You may notice that restarting nginx
does not reflect changes made to php ini files, this is to be expected.
In contrast to using php with e.g. apache; be sure to restart php-fpm
for changes to take effect.
Upvotes: 1