The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Disable apache logs

Discussion in 'EasyApache' started by ASTRAPI, Mar 5, 2010.

  1. ASTRAPI

    ASTRAPI Well-Known Member

    Joined:
    Jul 8, 2008
    Messages:
    321
    Likes Received:
    0
    Trophy Points:
    16
    Hello

    How can i disable apache logs in my cpanel server?

    Thank you
     
  2. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    You can disable the apache error logs from the httpd configuration file. If you have an access to your server then you can login to your SSH and edit the httpd configuration file and comment it the below mentioned line and restart the apache server:

    ErrorLog "logs/error_log"
     
  3. ASTRAPI

    ASTRAPI Well-Known Member

    Joined:
    Jul 8, 2008
    Messages:
    321
    Likes Received:
    0
    Trophy Points:
    16
    Remind me please where is located the httpd configuration file and the exact line that i must comment.

    Thank you
     
  4. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    The httpd configuration file is located at /usr/local/apache/conf/httpd.conf and comment out the line 47 (ErrorLog "logs/error_log").
     
  5. ASTRAPI

    ASTRAPI Well-Known Member

    Joined:
    Jul 8, 2008
    Messages:
    321
    Likes Received:
    0
    Trophy Points:
    16
    Thank you :)
     
Loading...

Share This Page