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.

question related to log file

Discussion in 'General Discussion' started by ljwhite, Oct 24, 2006.

  1. ljwhite

    ljwhite Well-Known Member

    Joined:
    Jun 20, 2005
    Messages:
    363
    Likes Received:
    0
    Trophy Points:
    16
    I found this log file: /usr/local/apache/logs/error_log used around 200MB space. Could i delete/clear this file?
     
  2. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    You can safely delete that file, but you need to restart apache to properly restart a new one.
     
  3. angelina_holy

    angelina_holy Well-Known Member

    Joined:
    Aug 6, 2006
    Messages:
    113
    Likes Received:
    0
    Trophy Points:
    16
    /usr/local/apache/logs/error_log is log file related to errors accessing the website. Do not delete it .If you delete it then youwill not receive any log

    you can empty the file using . go to /usr/local/apache/logs/

    echo > error_log
     
  4. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    That's why I said apache would have to be restarted.

    It can be emptied this way too.
     
Loading...

Share This Page