Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache 2.4.4 - rotatelogs error - parameter is incorrect

Tags:

apache

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

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

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

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

AH00104: unable to start piped log program 'bin/rotatelogs logs/access_log.%Y-%m-%d 86400': The parameter is incorrect.

Any help will be most appreciated! Thank you!

like image 263
user2502969 Avatar asked Jan 13 '23 02:01

user2502969


2 Answers

Ok, so I'm on Windows Server 2008. I had to add .exe to rotatelogs. Could have sworn I tried that before but I guess not. All set.

like image 58
user2502969 Avatar answered Jan 22 '23 20:01

user2502969


On Windows OS path to rotatelogs have to contains .exe file extension to not produce error "could not open reliable pipe to" in error log. Example : CustomLog "|bin/rotatelogs.exe logs/access 15M" common

like image 20
user2896861 Avatar answered Jan 22 '23 20:01

user2896861