Are you using any PHP or Perl scripts to program your site? Having trouble with WordPress? In that case, creating error log files is important. Very Important!
Whenever there is an error or warning generated by PHP or Perl, for example, if there is a syntax error in your code that is causing your script to fail the error is written to the file error_log. These logs can help you debug errors in your script more quickly than reviewing every line of your code.
If your scripts are generating any errors, the error_log file will be created automatically in the directory that contains the script. The most recent errors will be at the bottom of the error log.
Here's an example of how error logs can be used to identify errors in your script. In the sample code below, you can see that there is an error in line 9 of your PHP script.
[26-Jun-2004 22:35:14\ PHP Parse error: parse error in /php/bug.php on line 9
Your error log file can reach a maximum size of 10MB: If your file exceeds this size, your error output will no longer be recorded, and you could encounter errors Learn how to rename or delete your error log file.
See Also: