Results 1 to 5 of 5

Thread: How to Disable and Turn Off Apache (httpd) Access and Error Log

  1. #1
    Join Date
    08 Jan 2010
    Location
    Okara
    Gender
    Male
    Posts
    5,760
    Threads
    529
    Credits
    531
    Thanked
    852

    Default How to Disable and Turn Off Apache (httpd) Access and Error Log

    Apache web server, which also commonly known as httpd process, has the ability to log comprehensive and detailed activity, performance and eror information about its operation. Apache logging capabilities allow webmaster to effectively manage a web server, analyze traffic statistics, and troubleshooting the errors that may occurred.

    Some system administrators may not requires the logs written and stored by Apache web server, either because seldom drill down into the log files, or the logs have grown too big and too large to be meaningful analyzed and studied. In the case, it’s possible to disable Apache log. Besides, some webmasters who want to optimize site speed by making HTTP serving by Apache faster also opt to disable and turn off Apache logging or log generation capabilities. Although Apache keeps its log files open so that writing information to the log files is blisteringly fast, but the writing log information process still take up a few processor power and hard disk activity, which slow down server speed, especially on busy server.

    In order to disable and turn off the Apache logging, just comment out the log lines in the Apache configuration file, httpd.conf, which normally located in /etc/httpd/conf, /etc/apache/conf, /etc/apache2/conf, \usr\local\apache\conf or \usr\local\apache2\conf directory.

    In httpd.conf, the logging is defined by a CustomLog directive for access logs and an ErrorLog directive for error logs. For example,

    CustomLog /usr/local/apache/logs/access_log common
    ErrorLog “logs/error_log”

    Commenting out the line by adding # (hash, pound or number sign) to the front of the line. To disable logging of access log, comment the line of CustomeLog, and likewise, comment the line of ErrorLog to disable logging of error log. Restart the Apache web server for the change to take effect.

    Note: CustomLog and ErrorLog are also been defined within VirtualHost declaration too for logging the activity of particular virtual host. Disabling logging for virtual hosts only may cause the log information been written to main Apache log files.

  2. #2
    FritZie's Avatar
    FritZie is offline Senior Member+
    Last Online
    5th March 2015 @ 01:46 AM
    Join Date
    21 Aug 2009
    Gender
    Male
    Posts
    21,919
    Threads
    377
    Credits
    935
    Thanked
    1803

    Default

    Nice SharinG.........
    Thanks For SharinG..

  3. #3
    Join Date
    08 Jan 2010
    Location
    Okara
    Gender
    Male
    Posts
    5,760
    Threads
    529
    Credits
    531
    Thanked
    852

    Default

    Quote Fritzie said: View Post
    Nice SharinG.........
    Thanks For SharinG..
    thanx 4 reply..........

  4. #4
    Trainerinit's Avatar
    Trainerinit is offline Advance Member
    Last Online
    31st October 2021 @ 07:45 PM
    Join Date
    12 Mar 2010
    Location
    Karachi, Pakistan. - PKT
    Age
    39
    Gender
    Male
    Posts
    5,159
    Threads
    170
    Credits
    315
    Thanked
    278

    Default

    Nice Sharing

  5. #5
    Join Date
    27 Dec 2009
    Location
    Karachi
    Age
    34
    Gender
    Male
    Posts
    349
    Threads
    57
    Credits
    0
    Thanked
    7

    Default

    NIce sharing

Similar Threads

  1. apache 2 test page error
    By niceadeel in forum Ask an Expert
    Replies: 9
    Last Post: 12th September 2013, 11:23 PM
  2. Replies: 0
    Last Post: 18th February 2013, 05:51 PM
  3. How to Disable and Turn Off Windows 7 Gadget Platform (Sidebar)
    By naeemprince in forum English IT Zone
    Replies: 3
    Last Post: 23rd April 2010, 02:09 PM
  4. !*! Disable Error Reporting !*!
    By imran_8585 in forum Tips and Tricks
    Replies: 11
    Last Post: 11th June 2009, 12:18 PM
  5. Add on Disable. Solve This Error Plz?
    By Enter in forum Ask an Expert
    Replies: 3
    Last Post: 6th March 2009, 02:39 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •