Just migrated to a new server, and its error reporting level for PHP is higher than the server we migrated from. It's showing warnings and notes about deprecated PHP.
While obviously, the long term solution is to address the warnings, in the short term, I need to silence them from echoing from the server.
I've tried editing /etc/php.ini and restarting apache
display_startup_errors = Off
Also tried adding it to the domain's root .htaccess file. Neither place seemed to do the trick:
# supress php errors
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_value docref_root 0
php_value docref_ext 0
Hosting is with Media Temple (dv 4.0), if that matters.
Do I need to change or create a php.ini somewhere else?
<?php phpinfo(); ?>to phpinfo.php the same place as your domain's document root and view it in your browser. You can then see how PHP is being executed (whether as CGI or module), what php.ini configuration files are being included, including their path. It's possible you may have another php.ini overwriting /etc/php.ini, or /etc/php.ini isn't being included at all. – laebshade Jan 7 '12 at 3:57