Last Updated: 1/07/2015
This article applies to the following services:
- VPS with a cPanel license
- Dedicated servers with a cPanel license
From the command line, you can find all occurances along with their size by running the following command.
It is probably a good idea to make a note of the large ones and investigate why they are growing so large.
To delete all occurances of the error_log file on the servers, you can run the following command:
find /home -type f -name error_log -delete
You can setup a cron job to run this command nightly or weekly.
30 2 * * * /bin/find /home -type f -name error_log -delete
This will run every night at 2:30 am.