Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In apache [authz_core:debug] [pid 21412] mod_authz_core.c(802): [client 66.249.74.22:39835] AH01626: authorization result of <RequireAny

Tags:

apache

I am getting this error message in apache erro_log

[authz_core:debug] [pid 21412] mod_authz_core.c(802): [client 66.249.74.22:39835] AH01626: authorization result of <RequireAny>: granted

How can I fix this error?

like image 753
Rajaraman Avatar asked Sep 21 '13 07:09

Rajaraman


2 Answers

this is no error it is a debug level message. It just says that the authorisation has ben granted for a request.

Your LogLevel variable in your apache or virtualhost configuration is set to debug. To fix this find in your config files

LogLevel debug

and change it to

LogLevel notice

If you want you can also use warn or error instead of notice. All possible levels are debug, info, notice, warn, error, crit, alert, emerg

As you can see debug is the lowest setting and logs the most actions. For production environement you don't want that. You need it only if you are debugging a particular apache module or your apache configuration.

like image 84
Gregor Avatar answered Oct 03 '22 04:10

Gregor


This answer is similar to Gregor's answer, which states that you need to reduce the verbosity of your logs.

But as of Apache 2.3.6, you have the ability to set a different LogLevel for each Apache module. So, in this case, you can keep the default LogLevel to debug, and just reduce the LogLevel of the authz_core module to info or anything else less verbose. To achieve that, in your configuration, change

LogLevel debug

to

LogLevel debug authz_core:info

This is the list of available log levels in order of verbosity: http://httpd.apache.org/docs/current/mod/core.html#loglevel

like image 37
Dan Avatar answered Oct 03 '22 04:10

Dan