BuycPanel Blog

BuycPanel Blog

Latest news and updates

Error Logs: What You Need to Know About Them

Posted by Jamison on 30 08 2016.

Error logs are not just annoying messages that you can get while you make use of your cPanel account. These logs can actually tell you a lot of interesting things about your account. This is the primary reason you should make it a habit to check your logs from time to time. And with cPanel, as always, tasks like these are simplified.

 

Where to Find Error Logs

 

Log in to your cPanel account. Once you are there, you will see a link on the main screen that says “Error log.” Just click on this link and a window will come up with a list of the last error log messages you have encountered. The maximum is 300, and keep in mind the list is in reverse order.

 

Most likely, the list will comprise a range of entries. Those you should not worry about include logs that say “file not found.” Search engines generate…

Error logs are not just annoying messages that you can get while you make use of your cPanel account. These logs can actually tell you a lot of interesting things about your account. This is the primary reason you should make it a habit to check your logs from time to time. And with cPanel, as always, tasks like these are simplified.

 

Where to Find Error Logs

 

Log in to your cPanel account. Once you are there, you will see a link on the main screen that says “Error log.” Just click on this link and a window will come up with a list of the last error log messages you have encountered. The maximum is 300, and keep in mind the list is in reverse order.

 

Most likely, the list will comprise a range of entries. Those you should not worry about include logs that say “file not found.” Search engines generate these errors when they cannot find or when they search robots.txt files. These logs also appear whenever the system cannot find a favicon.ico file.

 

The errors you should worry about are those that you can and should correct as soon as possible. The sad thing about these mistakes is that most of them are just due to lack of thinking of correct decision making. For instance, mistyping an HREF link or making a typo on an include file’s name will already produce these error logs.

 

Overview of the cPanel Error Logs Tool

 

Thanks to the cPanel Error Logs tool, you will find it a lot easier to determine if there is something wrong with your account. For instance, it is very nifty when it comes to debugging scripts. You can also use it to find missing files or damaged links that you actually do not know are already in existence.

 

It definitely proves helpful when you encounter error messages relating to your website and you are unsure what they pertain to o how you can fix the problems. When this happens, just contact your script developer for more advice and assistance.

 

Main Error Logs

 

When you head to the main error logs, the last few lines you will find are related to the main error logs of your server. You will see these in chronological arrangement, together with the time they occurred, the IP address of the person who visited and encountered the error, and the message itself.

 

PHP Error Logs

 

The PHP Error Logs display errors that have something to do with PHP scripts. However, these only apply to your account. Sorted by directory, they do not disappear automatically unlike the main error logs. You will find these errors in the directory called: error_log file, which is basically present in every directory you have.

 

In order to clear all the php error_logs, you just have to use the File Manager or the FTP to delete the error_log files in each and every directory you have.

 

As you can see, tracking errors through cPanel is quite easy, thanks to its Error Logs Tool. Take advantage of this nifty feature to correct errors as soon as possible.