how do i put a limit on the file size for files in
etc/httpd/logs
every time i remove those files to free up my space, they come back after 1-2 weeks and take up the entire EBS volume space
how do i put a limit on the file size for files in
etc/httpd/logs
every time i remove those files to free up my space, they come back after 1-2 weeks and take up the entire EBS volume space
The best thing to do is to use log rotation. You can swap out the log files hourly or daily, then delete the older ones.
With Apache you can use the rotatelogs program. Most Unix operating systems also have something like logrotate.d, which can easily be configured to rotate and then delete.