Recover Space Used by PHP error logs in cPanel

cpanel

If you are using cPanel based server you may notice invariably that most of the cPanel accounts will have accumulated error logs within their home directories by using the file having name error_log. These error_log files may be generated due to PHP errors caused by PHP scripts.

Some of these error_log files may using huge amount of disk space & we need Recover Space used by PHP error logs in cPanel.

Here’s a quick way to remove these error_log files from root to recover space used by these files.

Just run the bellow command at root SSH:

find /home -name error_log -exec rm -vf {} \;

Done.

Leave a Reply

Your email address will not be published. Required fields are marked *