You can't have two sets of configuration inside the same php.ini
file.
But you can have multiple sites in Apache
.
In each of those sites you can configure environment-dependent settings.
For example, in prod.conf
:
php_value error_reporting 0
And, in dev.conf
:
php_value error_reporing -1
You can also throw in other stuff like display_errors
and error_log
definitions like that.
Then, you switch on prod.conf
site on production server, and dev.conf
on the development one.