How to disable Apache logging?

Discussion in 'Installation/Configuration' started by karon, Apr 6, 2011.

  1. karon

    karon New Member

    I have several high traffic sites that put a considerable IO load on the sytem because of their access and error logging. I can't find any option in ISPConfig 3 to disable logging on a site or the entire server.

    How can this be done?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Edit the ispconfig.conf file in /etc/apache2/sites-available and comment out the customlog line, then restart apache.
     
  3. karon

    karon New Member

    The line in question looks like this:

    So if I comment this out, error logging (that's defined in the sites individual vhost files) will still be on, right?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    yes. the line above is the access.log and not the error.log.
     
  5. abubin

    abubin New Member

    how do is disable the access.log only? I don't see the customlog in the vhost file for the specified domain. Using ispconfig 3.0.2.2
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Just remove the line that is mentioned in post #3 from the apache config. It is in the ispconfig.conf file and not in a vhost as it is a global logging directive and not site specific.
     
  7. cypriot

    cypriot New Member

    Found an easy way of doing this :)

    go into website settings and options in admin of Ispconfig,
    and add this two line into Apache Directives

    CustomLog /dev/null Combined
    AccessLog /dev/null Combined

    you will see all logs will stop

    i guess you guys can add tick box on the setting page of the site to add this two line auto ?

    Regards
     

Share This Page