Skip to main content
Inspiring
January 5, 2012
Question

FMS 4.5 Apache Log Rotation

  • January 5, 2012
  • 1 reply
  • 1179 views

Does anybody know what the log rotation setup is for the default Apache installed by FMS?

In the documentation it states that FMS will look after log rotation for Apache.

http://help.adobe.com/en_US/flashmediaserver/configadmin/WS5b3ccc516d4fbf351e63e3d119f29260bd-7ffa.html

"Flash Media Server handles log rotation for the Apache logs."

In a default install this does not appear to be the case. My /opt/adobe/fms/Apache2.2/logs/access_log is just one big file, ever increasing in size from teh day it was installed. Restarting fms or Apache does not seem to do anything. I have some log files several years old, and they have never rotated.

Any ideas what is meant to happen here?

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    December 7, 2012

    Apache FMS installation logs are not rotated for me also.

    You ca do it like this:

    1. create file /etc/logrotate.d/fms-httpd

    2. paste in it :

    /opt/adobe/fms/Apache2.2/logs/*log {

        daily

        missingok

        notifempty

        sharedscripts

        delaycompress

        size=50M

        rotate=10

        postrotate

        /opt/adobe/fms/Apache2.2/bin/httpd -f /opt/adobe/fms/Apache2.2/conf/httpd.conf -d /opt/adobe/fms/Apache2.2/ -k stop  > /dev/null 2>/dev/null || true

        sleep 10

        /opt/adobe/fms/Apache2.2/bin/httpd -f /opt/adobe/fms/Apache2.2/conf/httpd.conf -d /opt/adobe/fms/Apache2.2/ -k start  > /dev/null 2>/dev/null || true

        endscript

    }

    3.  cp /opt/adobe/fms/Apache2.2/lib/libexpat.so.0 /lib64/libexpat.so.0

    4. test like this : logrotate /etc/logrotate.d/fms-httpd