Apache 2.4.4 - rotatelogs error - parameter is invalid

I searched all day for an answer to this question. I issue this directive in httpd.conf:

CustomLog "| bin / rotatelogs logs / access_log.% Y-% m-% d 86400" generic

This worked in 2.2. common is defined previously in the file.

I keep getting this error when I try to start the service:

AH00104: Cannot start the channel log program "bin / rotatelogs logs / access_log.% Y-% m-% d 86400": parameter is invalid.

Any help would be appreciated! Thanks!

+4
source share
2 answers

Ok, so I'm on Windows Server 2008. I had to add .exe to rotatelogs. I could have sworn I tried this before, but I think not. Everything is installed.

+6
source

On Windows, the path to rotatelogs must contain the .exe extension so as not to cause a "cannot open reliable channel" error in the error log. Example: CustomLog "| bin / rotatelogs.exe logs / access 15M" common

+1
source

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


All Articles