I have three sites on my server and their logs (Apache logs) are in their root folder not in /var/log. I need a script that rotates the access_log and error_log base on their file size for example rotates them when their file size exceeds 1G .
Server's OS is Ubuntu.
I have a basic skill of shell programing but good talent in learing ;) would you help me in this issue?