Hi everyone . Need some help I have apache running on FreeBSD . when trying to restart the web server I get /var : filesystem full. When doing a du I get that /var/log/httpd-access.log is 109% . My question is : how do you clear this , or should I just delete the file and create another one ? Please help
If you don't need it you can do just: > /var/log/httpd-access.log After that you might need to setup logs rotation.
Thx Supportex , but what does that command do , it looks like redirection? I do not need anything in that file. I just don't know if deleting that file will cause apache to stop working . I could delete it and create a blank file in its place . will that work ?
Hi there, You can use the echo command to clear it out: echo > /var/log/httpd-access.log Code (markup): This will clear out the log itself, and ensure the file and permissions for it stay the same. Regards, Chris
What "> /var/log/httpd-access.log" does is enter null value to that file .. which is equivalent to "create a blank file in its place"