phperror_log or error_log file fills up the disk space.

Started by Dipak Bhoi, December 23, 2014, 03:20:22 PM

Previous topic - Next topic

Dipak Bhoi

Hello Guys,

Sometimes a repeated error logging fills up the disk size of your cPanel account and due to this you might face the quota issue with your account. Or you might face issue like not able to change files, not able to receive emails, and not able to access webmail and so on.

To avoid such issues and prevent phperror_log or error_log file from fills up the disk space, below are the two ways to achieve this by disabling repeated error.

Via php.ini configuration file:

Open your php.ini configuration with your favorite editor and edit/add below two lines.

Quoteignore_repeated_errors = true
ignore_repeated_source = true

Save configuration file and restart the apache service.

Via .htaccess file:

Open .htaccess file and add belwo tow lines.

Quotephp_flag ignore_repeated_errors off
php_flag ignore_repeated_source off

Save and close the file.

That's all, Enjoy !!
MilesWeb - 30-Day Money Back
cPanel Web Hosting - cPanel Hosting in India
Grab a Free SSL for your website.  WordPress Optimized Solution.