Submitted by RedKnot on Tue, 12/22/2009 - 03:30
Since some time the log rotation config which are created with a new virtual server are wrong. The ' Post-rotation command' changed and I don't know why. In the apache module config everything seams ok. Where can I configure this setting?
Correct config:
/home/bromalux.com/logs/access_log
/home/bromalux.com/logs/error_log Weekly svcadm refresh cswapache2
Wrong config:
/home/cariola.nl/logs/access_log
/home/cariola.nl/logs/error_log Weekly graceful
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Tue, 12/22/2009 - 11:13 Comment #1
The fix is to go to Webmin -> Servers -> Apache Webserver -> Module Config, and set the "Command to re-read configuration" to "svcadm refresh cswapache2" .
The underlying issue is that the apachectl and apache2ctl commands were not found ... where are they located on your system?
Submitted by RedKnot on Tue, 12/22/2009 - 11:17 Comment #2
The' Command to re-read configuration' is set to 'Same as apply command' and that is set to 'svcadm refresh cswapache2'. It is never changed after initial configuration. The logrotate command used to set the post-rotation command correct. I don't want to use apachectl because that can confuse svcadm.
Submitted by JamieCameron on Tue, 12/22/2009 - 13:48 Comment #3
Ok, I see the bug - Virtualmin isn't respecting the "Command to apply configuration" in this case - I'll fix that in the next release.
The work-around till then is to set the "Command to apply configuration" to "svcadm refresh cswapache2"
Submitted by Issues on Wed, 01/06/2010 - 01:21 Comment #4
Automatically closed -- issue fixed for 2 weeks with no activity.