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.

How to delete all error_log, But!

Discussion in 'General Discussion' started by tatweer, Dec 31, 2007.

  1. tatweer

    tatweer Member

    Joined:
    Dec 15, 2005
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Hello

    I want delete all "error_log" files from the whole server using ssh,

    The problem i faced is:

    I tried:
    find /home/*/public_html -name 'error_log*' | xargs rm
    AND:
    find /home/*/public_html -name 'error_log*' | xargs rm -rf

    The Result:
    rm: cannot remove `/home/*/public_html/error_log': No such file or directory

    i Put the * after the name bcz i found in the URL of the files (cPanel->File Manager)
    the name of error_log is:
    http://www.******.com/error_log

    What shall i do?
     
  2. WebScHoLaR

    WebScHoLaR Well-Known Member

    Joined:
    Dec 14, 2005
    Messages:
    511
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    Planet Earth
    Do you actually see error log in the account? If yes, then do a ls -la error_log and paste the output.
     
Loading...

Share This Page