If you upgrade the PHP version on your site, you may suddenly see various error messages. DreamHost always recommends that you check each message, but if you’re sure they are not causing any issues with the functionality of your site, you can remove them.
Create a phprc file
View the following articles for instructions on how to create a phprc file.
If the file already exists, view the following articles for instructions on how to update it (depending on if you're using an FTP client or SSH):
To remove the error messages, add these lines to your phprc file.
display_errors = off error_reporting = E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
Kill off all running php processes
Make sure to kill running php processes to ensure your new settings take effect.
Confirming your changes
After you've edited the file and killed off all PHP processes, you should check to confirm the values have updated. You can do this by creating a phpinfo.php file.
If you do not see your changes have updated, try killing off your PHP processes again: