Joomla Error Log Size
Contents |
root directory (e.g. directly under public_html). For some websites, the error_log file is a several hundred megabytes in size and it grows by a few megabytes everyday. So what is this file and is it
Joomla Error Log Location
necessary to have it? Let's start with explaining what this file is. The error_log file joomla error log too big contains all the errors that happen on your Joomla website. Some of these errors are visible to your users, such as fatal errors, disable error_log joomla and some aren't, such as missing an Apache module (quick note: Apache modules are not the same as Joomla modules - they are completely different things). The error_log file contains every error, the time it happened, and
Joomla 3 Error Log
the page where that error happened (again, it might be that the error is invisible to the end user, in other words a system error). So, what's the point of having this file? This file is extremely helpful - it contains every error that happened on the Joomla website, where it happened, and when it happened. The purpose of having this file is to help you fix the errors that occur on your Joomla
Joomla Enable Error Reporting
website. It is also very helpful to catch some potential exploits before the real exploit, since malicious attacks generate a lot of errors before they succeed. But, won't others be able to read/download that file file by just going to http://yourjoomlawebsite.com/error_log? Unfortunately they can, but there are several ways to address that, one of them is just to block access to that file in the .htaccess file:
Order allow,deny Deny from all
But what if I don't want to have that file at all? Disabling error logging to the error_log file is a very simple task, all you need to do is to add the following line to the beginning of your .htaccess file: php_flag log_errors Off So what's the best practice? Is it to have this file or not to have it? We think that having this file on your production website, but with disabled access to the public, is best practice. It'll record all the errors that happen on your Joomla website giving you a chance to fix them, ultimately making your website better. And what if I want to name that file something else? Easy peasy! All you need to do is to add the following line to your htaccess file: php_flag error_log /home/[website]/public_html/my_error_log.txt Note that the above assumes that you are using WHM/cPanel a
General Discussion Topic Joomla error log Last Post Search Topic Adrian Cooper Elite Rocketeer Posts: 531 Thanks: 0 Technologist, Published Author Joomla error log Posted 4 php error log years 7 months ago The Joomla 2.51 error log on my development site which is not even live yet, is nearly 10GB in size, increasing at 2GB per day now, and fast consuming all my storage space. I just updated Mission Control at that alone added and least 2GB to the log size. The log is so large in fact http://www.itoctopus.com/the-error_log-file-in-the-root-of-some-joomla-websites-what-is-it that I cannot even load it from root in Linux to view it. The site itself is functioning flawlessly. Can I just delete this file and switch off error reporting - or at least make it less space consuming? Thanks. www.ourultimatereality.com #779126 Adrian Cooper Elite Rocketeer Posts: 531 Thanks: 0 Technologist, Published Author Re: Joomla error log Posted 4 years 7 http://www.rockettheme.com/forum/general-discussion/158273-joomla-error-log months ago The php 2.51 error log on my development site which is not even live yet, is nearly 10GB in size, increasing at 2GB per day now, and fast consuming all my storage space. The log is so large in fact that I cannot even load it from root in Linux to view it. Joomla is the only php based resource on my server and mustr be where the errors are originating. I just updated Mission Control at that alone added and least 2GB to the log size. The site itself is functioning flawlessly. Can I delete this file and switch off error reporting - or at least make it less demanding? Thanks. www.ourultimatereality.com #779146 Who? Preeminent Rocketeer Posts: 25562 Thanks: 610 Joomla freelancer Re: Joomla error log Posted 4 years 7 months ago You can disable error reporting in the Joomla global configuration but I don't believe that it will turn of php error reporting. You will have to disable it in php.ini file Check my services at: Mihha-Vision #779343 Adrian Cooper Elite Rocketeer Posts: 531 Tha
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss http://stackoverflow.com/questions/17833987/huge-error-log-filled-with-zeros-at-joomla-site-in-public-html-directory-causing the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow https://forum.virtuemart.net/index.php?topic=105706.0 Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each error log other. Join them; it only takes a minute: Sign up Huge error_log filled with zeros at Joomla site in public_html directory causing server hang up vote 0 down vote favorite I am not sure if this is related with PHP code/Joomla plugin/component or server issue so to go and post my question at serverfault. I have a dedicated joomla error log server running CentOS release 6.4 (Final) and CPanel 11.38.1 (build 15) with [Apache/2.2.24 (Unix) PHP/5.2.17] and recently we had brute force attacks which were causing system hangs with messages like "HANG: chkservd on server". After setting up a DenyHosts and changing ssh default port the server stabilized for some days until it started to suddenly hang with no specific errors in logs nor any email notifications. The server runs just one website but with some traffic (about 2000 visitor per day) and a large Joomla database. The site was up and running flawless since March 2013, until two weeks ago. After investigating, I have noticed that the error_log under the public_html (default joomla site directory) size was over 200MB but with no specific error messages but just lines with date/time and zeros "0"! [24-Jul-2013 12:09:18] 0 [24-Jul-2013 12:09:18] 0 [24-Jul-2013 12:09:18] 0 [24-Jul-2013 12:09:19] 0 [24-Jul-2013 12:09:19] 0 [24-Jul-2013 12:09:19] 0 [24-Jul-2013 12:09:19] 0 [24-Jul-2013 12:09:20] 0 [24-Jul-2013 12:09:26] 0 [24-Jul-2013 12:09:26] 0 [24-Jul-2013 12:09:30] 0 Almost every second, thousand lines