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.

remove all error log in host's

Discussion in 'General Discussion' started by morteza3245, Sep 30, 2013.

  1. morteza3245

    morteza3245 Well-Known Member

    Joined:
    Sep 16, 2013
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hello
    i want remove all error log in host's on our server Cpanel,

    how i can remove all error_log just for user's?

    Thanks!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. morteza3245

    morteza3245 Well-Known Member

    Joined:
    Sep 16, 2013
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Thanks
    i do That
    now all error log is removed and stoped for future?
    or old error_logs is in accounts and stop for future?, if yes how i can delete all them?

    Thanks!
     
    #3 morteza3245, Oct 1, 2013
    Last edited: Oct 1, 2013
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    653
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    There will be no new entries to the PHP error_log files within the accounts. However, you have to manually delete them if you want the files removed. You can try searching for them with a command such as:

    Code:
    find /home -name 'error_log'
    Thank you.
     
  5. morteza3245

    morteza3245 Well-Known Member

    Joined:
    Sep 16, 2013
    Messages:
    104
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Thanks, find all of them,
    how i can remove all them with a command?

    Thanks!
     
  6. quietFinn

    quietFinn Well-Known Member

    Joined:
    Feb 4, 2006
    Messages:
    998
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    Finland
    cPanel Access Level:
    Root Administrator
    Code:
    find /home -name 'error_log'  -exec rm {} \;
    
     
Loading...

Share This Page