An error log is a record of critical errors that are encountered by a website while in operation. Some of the common entries in the PHP error log include table and configuration corruption. By default, PHP errors and warnings generated by your website are logged in error_log file. The error_log file is useful when debugging scripts and finding missing files or broken links you may not be aware of.
The PHP error_log file can grow to a large size, thus consuming a big chunk of your disk usage and physical memory usage (RAM). This in turn will cause exhaustion of your hosting resources leading to degradation, slowing down and fatal errors to your website. If you do not need the error_log file you can disable PHP error logging using any of the methods listed below.
Note:
Many shared hosting providers restrict you from accessing the php.ini file. This method is only applicable in case you have direct access to your php.ini file or if you are running your WordPress on a local host.
Victor Mochere is an award winning blogger, social media influencer, literati savant, altruistic, and a netpreneur creating and marketing digital content.
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Permission to use quotation from any article is granted subject to full credit of the source being given by referencing the direct link of the article on Victor Mochere. However, reproducing any content on this site without explicit permission is strictly prohibited.
We are committed to upholding our editorial standards, including accuracy. Our policy is to review each issue on a case by case basis, immediately upon becoming aware of a potential error or need for clarification, and to resolve it as quickly as possible. If you notice an error or typo that needs correction, please don’t hesitate to contact us for immediate action.
Victor Mochere brings you a daily dose of well curated up to date facts, news, opinions and important updates from Kenya, Africa and around the World.
Copyright © 2021 Victor Mochere. All rights reserved.
Copyright © 2021 Victor Mochere. All rights reserved.