I found this strange error in my freebsd Apache error log: ”mod_rewrite: could not init rewrite log lock in child”. The same error was logged every second and was filling up my disk with junk. This should not happen because I have a fresh installation of Apache from the Freebsd ports tree and no strange configuration.
After some google-time I found the ”RewriteLog directive” at the mod_rewrite page. It says: ”To disable logging either remove or comment out the RewriteLog directive or use RewriteLogLevel 0! ”
I set ”RewriteLogLevel 0” in my apache conf-file and restarted apache. The problem was now gone! I do not know which file or directory that mod_rewrite tries to write to however i am pleased to know that the problem was solved.
Thank you, Marcus!
My server is having the same problem. Hope your advise will help.
— Lena Karpinsky
This appears to fix the problem, thank you for your post.
As far as I can see, you will have to set ”RewriteLogLevel 0” to _every_ Virtualhost container in your config file. It’s a bummer. I wonder if this will be fixed in the next Apache version?