How to disable notifications in Apache?

I am new to the project and after cloning the code I see several notifications about each HTTP request. I always include notifications in the apache development environment and, of course, it is disabled on the production server and is not logged in the apache error log

error_reporting(E_ALL ^ E_NOTICE) , apparently as the default php configuration.

So how can I do the following in Apache:

  • ignore 100% of these notifications and actions do not affect

  • process all notifications as a development environment without registering them.

I keep looking in the Apache documentation.

+4
source share
1 answer

Error notifications are internal to PHP - all Apache sees is the arrival and departure of data. Performance only improves if you send less data.

You will be better off watching which modules you download using apache and how apache is configured - prefork or worker and how you have these settings. http://httpd.apache.org/docs/2.2/mod/prefork.html or http://httpd.apache.org/docs/2.2/mod/worker.html

+1
source

Source: https://habr.com/ru/post/1445009/


All Articles