In this tutorial:

cPanel comes with an error log section that allows you to view errors generated by your website. In this article, we will review how to view your error logs for both Apache and PHP from within cPanel.

What is the Error Log?

cPanel states, "This function will display the last 300 errors for your site. This can be very useful for finding broken links or problems with missing files. Checking this log frequently can help keep your site running smoothly." What this means is when your site is visited by someone, the server receives a request from that visitors browser and location to your server. When the visitor hits a section of your website and they cause an error, the error log will log the date, time, IP , page the error occurred and so forth. These errors could be caused for a number of reasons. Below are a few reasons why errors would be thrown.

There are many reasons your site could have errors. Its a good idea to check you error log frequently to fix web crawler problems that effect your search engine ranking and website functionality.

cPanel Error log

You can find your cPanel Error log by following the steps below.

  1. Login into your cPanel.
  2. cPanel Error logGo to Logs > Error log.

    cPanel Error log viewYour error log will display in the box. See the image to the right.

    Cpanel will display the last 300 errors through the Error log interface.

How do I read error log?

Below is an excerpt of a typical error in the cPanel Error log. There are many different error types you may receive. The below is an error on a missing file with a brief description.

Date and Time logged          Type      Visitor IP Address
[Fri May 17 21:07:47 2013]   [error]   [client 122.96.59.103] 

Location of the Error
File does not exist: /home/userna5/public_html/400.shtml, 

Domain Referrer
referer: http://your-domain.com/?m=200911

PHP Error Logging

Just as your Apache errors are logged within cPanel, your PHP errors are also logged. To view them, you will need to do so via the cPanel File Manager. Once you're in the cPanel File Manager, any errors will be logged within a file labeled error_log in the same directory that the script produced the error.

Within the file, you will see each error that was logged on a separate line. First, it will list the date and time that the error was produced, then the actual error. Reviewing this periodically will help you provide the best experience possible for your visitors to ensure that they are not seeing repeat errors on your website.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address
Name

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Like this Article?

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

News / Announcements

WordPress wp-login.php brute force attack
Updated 2014-07-17 06:43 pm EST
Hits: 201633

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!