1. Apache won't create those files unless you have defined somewhere in your websites configuration files. It is good to have error been logged somewhere to investigate in case any issues occur. You can set a cronjob to delete/empty those error_log files on a weekly basis.

2. Yes, you can. You have to check your websites configuration files.

3. Yes, it is safe but as said in the first point they are good to have incase any issues arise.

The command you used is correct, the incorrect part was the 'exe' part. It should be 'exec' and not 'exe'

find . -name error_log -exec rm -f {} \;
madaboutlinux Reviewed by madaboutlinux on . error_log How to delete all via SSH? Hello, Today I check few of my websites folder under my web server I found that most of the folders contains the file "error_log" at some folders it is in smaller size but in others its around 600-900 MB in size per file. My question is 1. Whether its wise to stop creation of that file by Apache? If yes then how to stop it? 2. Second question is can we stop it for only few websites? 3. And is that safe to delete error_log file? If yes how to search that file in SSH and how to Rating: 5