[SOLVED] logrotate: error creating state file /var/lib/logrotate.status: permission denied

June 14th, 2019

TipWhile there are many possible reasons for this error message, here’s why I was getting it. The logrotate utility writes status data to a state file. By default it writes to /var/lib/logrotate.status. My account was on a shared web host, and I didn’t have permission to modify that file. The solution was to specify a local state file via the ‘-s’ parameter. Problem solved.

Leave a Reply

 [login]

HTML: You can use these tags.

Please answer this simple math question: * Time limit is exhausted. Please reload the CAPTCHA.