• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
NameHero Blog

NameHero Blog

Web Hosting Tips & Resources From NameHero

  • Hosting
    • Web Hosting
    • VPS Hosting
    • WordPress Hosting
    • WooCommerce Hosting
  • Reseller
  • Enterprise
  • Domains
  • Account
  • Blog Home
  • Categories

How To Enable PHP Error Log In cPanel

Kevin Richards

Published on: June 21, 2020

Categories: Web Hosting 0

An important component to troubleshooting code on your website is to check the PHP error log for errors. This is where PHP warnings and/or errors are displayed. One question we often get from clients is How do I enable the PHP error log in cPanel?

This simple process will allow you to monitor errors and allow you to troubleshoot them.

PHP errors are found in the system log, in an inline with program execution or by using error monitoring tools.

In this blog, I am going to show you how to enable PHP error logging in cPanel. This is a quick and easy way to ensure the PHP error log is enabled so you can track any problems. Enabling this feature literally takes less than 30 seconds.

Steps to Enable PHP Error Log

The first step will be to login to the Client Area. Once logged in, Access cPanel. After you are in cPanel, scroll down to Software and go to Select PHP version.

Select PHP Version

Left click on the option and your screen will look like this:

PHP Extensions

By default, you will be on the PHP Extensions screen, as seen in the image above. Tick the option next to “Extensions” where it says “Options.”

PHP Options

Left click this option and you will be on the PHP Options screen. Locate the error_reporting field and ensure this is set to E_ALL. If you left click this field, a drop down menu will populate and you will be given the following options:

Enable Error Reporting

Ensure E_All has a checkmark by it. Once selected, you will receive a green “Success” notification that your changes have been saved.

Error log reporting enabled

Once you have received the green “Success” notification, PHP error reporting has been enabled. Now, you will be able to view warnings and/or errors that are populated in the PHP error log.

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Follow & Subscribe

Exclusive promos, content and more!

Most Popular Posts

Speed up your site: solving the WordPress slowdown

NameHero’s Recommended WordPress Plugin and Theme Setup (2023)

How To Increase The InnoDB Buffer Pool Size

How To Fix A Stuck All-in-One WP Migration Import

How To Add A Subdomain In Cloudflare

Top Categories

  • WordPress
  • Website Performance
  • Web Hosting
  • Resellers
  • Website Development
  • Website Security
  • VPS Hosting
  • SEO Tips
  • Announcements
  • Domain Registration
NameHero

NameHero proudly provides web hosting to over 40,000 customers with 99.9% uptime to over 750,000 websites.

  • Master Card
  • Visa
  • American Express
  • Discover
  • Paypal
Products
  • Web Hosting
  • VPS Hosting
  • WordPress Hosting
  • WooCommerce Hosting
  • Reseller Hosting
  • Enterprise Hosting
  • Domains
Help & Support
  • NameHero Blog
  • Knowledgebase
  • Announcements
  • Affiliates
Company
  • About Us
  • Contact Sales
  • Reviews
  • Uptime
  • We're Hiring

Copyright © 2023 NameHero, LLC. All rights reserved.

  • Privacy Policy
  • Terms of Use
  • Acceptable Use Policy
  • Payment Policy
  • DMCA