How to disable the creation of logs in the error_log file

To disable writing errors to the log file, add the following line to the .htaccess file:

php_value log_errors off

If you want to receive error messages again, then delete this line, or change its value to

php_value log_errors on