Error_log
My error_log is now at 40MB. I would like to reduce this file size.
I'm trying to locate the error log so that I can edit and remove content of the file. But that's easier said than done.
In my httpd.conf file, the location of the log file is set to logs/error_log.
But I'm not able to locate any folder called logs.
I do have the folder var/log/httpd/, but the largest error_log file is only at 670KB.
So how can I reduce the filesize of my error_log?
Log Rotation
I discovered that Log Rotatio was switched off. So I switched this on and set the size to be about 4MB. But today, the log file was still at 40MB.
Now I have set it to log Weekly and maksimum of 52 files.
But when does this come in effect? When does it create a new log file? It obviously did not do that when I set it to maks 4MB.