Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    151
    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%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20

    What shall i do?
     
  2. WebScHoLaR

    WebScHoLaR Well-Known Member

    Joined:
    Dec 14, 2005
    Messages:
    511
    Likes Received:
    3
    Trophy Points:
    168
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice