Q:

Is it possible to make php report errors only to the errorlog?

As title describes.
My sites have been moved to a newer environment, and some non-crititcal errors has come up.
I want to suppress all the warnings on the websites, but still want them to be logged to the standard error_log, so i can fix the errors without my sites looking non-functional.
Is there some easy way to do that?

A:

error_log = /var/log/php-scripts.log
display_errors = Off

Modify php.ini as shown above.
And restart apache to load the new php.ini

