How to Check Error_log to Find the Error Messages of Your Site Using cPanel

In a while, you should look for errors on your website. While managing a WordPress website, checking the error logs is one of the best practices to keep it running smoothly.

It’s possible that a visitor’s browser sends a request to access a page of your site, but it shows an error. There is a chance that you can’t come to know for a long time.

To make everything accessible, you must check error logs from your cPanel provided by the web hosting company. There are two different kinds of error logs. PHP and cPanel Error Logs.

In this tutorial, you’re going to learn about checking both error logs without requiring any coding skills. The biggest fear comes into the light when people deal with technical things.

Well, I am going to walk you through a simple process you can use any time.

Check for cPanel Error_log

Before we start, you should know the reasons for such errors.

  • Old URLs
  • Missing Error Pages
  • Blocked pages
  • Renamed files
  • Deleted files
  • Permalinks change

Your site may have errors due to many other reasons. Let me walk you through finding those errors.

Note: It’s essential to enable error_log to see the list.

Most of the people follow the steps before even realizing that to see error_log, and you need to enable using the .htaccess file or any other method.

For now, follow the steps to check the list.

Login to your cPanel account and search for the Metrics‘ section. Depending on your web hosting company, the design template may vary.

How to Check Error_log to Find the Error Messages of Your Site Using cPanel

But you shouldn’t worry about anything. Try to find an Errors option and click to open. It’s possible that your web hosting company may provide an Account Management System to access cPanel.

Here are some best small business web hostings you may like.

When you open the page, you can see 300 previous errors which consist of the Date, IP, Type, Location, etc.

You can detect the user’s location from its IP address. Using the type, you can try to find the error page and fix it. To see the cPanel error logs, this is it.

Next, you need to understand PHP errors.

Search for PHP Error_log

As I have mentioned before, if you have enabled PHP error_log, only then you can see the list. Let me mention a few PHP errors.

  • Syntax Error
  • Parse Error
  • PHP Fatal Error

To find the list, you need to look for the error_log file in the main directory. Follow the steps.

Step 1:

As you’re already logged in to your cPanel account, open the file manager from Files‘ section. This is one of the most common things you can come across while using cPanel.

How to Check Error_log to Find the Error Messages of Your Site Using cPanel

You may find the file manager icon independent or under any particular section depending on which web hosting company you have.

Click to open.

Step 2:

On this page, you have to make sure you see the public_html directory. By default, many web hostings display the home directory.

How to Check Error_log to Find the Error Messages of Your Site Using cPanel

Navigate to public_html from the left-hand sidebar.

Step 3:

By default, the name of the error log file is error_log, but it can be php_errorlog or something similar. Scroll down and look for it.

How to Check Error_log to Find the Error Messages of Your Site Using cPanel

Once you find it, you can download it by double-clicking or decide to see the data by accessing the code editor. Depending on your choice, go ahead.

The best thing is that PHP errors are easy to troubleshoot because of their precise location. If a plugin is conflicting, you can quickly figure it out because the error message will consist of the folder location.

You require WordPress error solving expertise. I hope it’s not a big deal.

Can You Now Locate the Error Logs

Now and then, people ask as is it’s hard to maintain an error-free WordPress site. Well, I always say, you need to learn the basics of WordPress.

Most of the WordPress errors can be solved within a few minutes. Checking the error_log can help you find out the errors you can can’t find out on your own.

Your visitors may see some errors pages, which can affect the user experience. You need to take care of such errors.

Conclusion

In most of the cases, you may ask for someone’s help. But as I have mentioned, PHP errors are easy to diagnose and fix.

Try checking the error_log file and learn more. I hope you can accomplish such a task in no time.

Check out these top 3 WordPress hosting services:

HostArmada
$1.79 /mo
Starting price
Visit HostArmada
Rating based on expert review
  • User Friendly
    4.5
  • Support
    4.5
  • Features
    4.5
  • Reliability
    4.5
  • Pricing
    4.0
IONOS
$1.00 /mo
Starting price
Visit IONOS
Rating based on expert review
  • User Friendly
    4.5
  • Support
    4.0
  • Features
    4.5
  • Reliability
    4.5
  • Pricing
    4.3
Ultahost
$2.03 /mo
Starting price
Visit Ultahost
Rating based on expert review
  • User Friendly
    4.3
  • Support
    4.8
  • Features
    4.5
  • Reliability
    4.0
  • Pricing
    4.8

How to Fix an HTTP Error Appearing in the WordPress Media Library

This is an article which will help you solve the HTTP error you get in the media
3 min read
Eliran Ouzan
Eliran Ouzan
Web Designer & Hosting Expert

How to Solve a “Warning: Error While Sending QUERY Packet” Error

This is one of the rarest errors people come across. The article will cover all
3 min read
Arvind Singh
Arvind Singh
Hosting Expert

How to Solve "Maximum Execution Time Exceeded" Error of a WordPress Website

This how-to guide provides the solution to fix Maximum Execution Time Exceeded e
3 min read
Arvind Singh
Arvind Singh
Hosting Expert

How to Fix Image Upload Issue of Your WordPress Website Using FTP

This how-to guide explains the cause and solution of image upload error for a Wo
3 min read
Arvind Singh
Arvind Singh
Hosting Expert
HostAdvice.com provides professional web hosting reviews fully independent of any other entity. Our reviews are unbiased, honest, and apply the same evaluation standards to all those reviewed. While monetary compensation is received from a few of the companies listed on this site, compensation of services and products have no influence on the direction or conclusions of our reviews. Nor does the compensation influence our rankings for certain host companies. This compensation covers account purchasing costs, testing costs and royalties paid to reviewers.
Click to go to the top of the page
Go To Top