Contributor(s): THDL Staff
As we develop the THDL site, we should periodically check the server's error logs, as per the good suggestions of Guy Mengel. The logs record where errors are occurring that may not be causing noticeable problems on-line but are wasting CPU resources and generally slowing things down.
There are two main logs we should check
Both are text files, even though "error_log" has no extension.
The "tail" ends of these files can be copied to a file on the THDL site, through the following command which uses the "error_log" file as an example:
This command copies the last 1000 lines from the error_log to the "error-log.txt" file in the test folder. To simply look at the last 100 lines in your CRT screen, you can simply type "tail -n### and the name of the file". Thus, the two commands would be:
Tail can be done in real time using the "-f" option. Thus:
These commands will show the last few lines of the error file and then display new errors in real time as they occur. You can thus do this command in your terminal window and go and test out pages that might be causing errors.