NewExtra server protection with Measured Boot & UKI images.View Measured Boot
BlogDocumentationFAQNo Third-Party CookiesContact Us
  • Pricing
Log inSign up
Cloud VPSVDSMemory-Optimized VDSStorage-Optimized VDSWindows VPSBitcoin VPSDDoS ProtectionPrivate Networking (VPC)Floating IPsAdditional Server SupportMicrosoft LicensesDatacenterNetworkDocumentationFAQNo Third-Party CookiesConfidential ComputingSelf-Hosted VPNBlogAboutBrand GuidelinesAffiliatesContact UsLegal & Compliance

Products

  • Pricing
  • Cloud VPS
  • VDS
  • RAM-Optimized VDS
  • Storage-Optimized VDS
  • Windows VPS
  • Bitcoin VPS
  • DDoS Protection
  • Private Networking (VPC)
  • Floating IPs
  • Microsoft Licenses
  • Additional Server Support

Explore

  • Documentation
  • Developers API Docs
  • FAQ
  • Datacenter
  • Network
  • Looking Glass
  • Confidential Computing
  • Cookie Policy
  • Self-Hosted VPN

Company

  • Blog
  • Contact Us
  • About Us
  • Brand Guidelines
  • Affiliates

Legal & Compliance

  • Terms of Service
  • Privacy Policy
  • Data Processing Agreement
  • Acceptable Use Policy
  • Microsoft Software Terms of Use
  • Refund Policy
  • Report Abuse

Products

  • Cloud VPS
  • VDS
  • RAM-Optimized VDS
  • Storage-Optimized VDS
  • Windows VPS
  • Bitcoin VPS
  • DDoS Protection
  • Private Networking (VPC)
  • Floating IPs
  • Microsoft Licenses
  • Additional Server Support
Pricing

Explore

  • Documentation
  • Developers API Docs
  • FAQ
  • Datacenter
  • Network
  • Looking Glass
  • Confidential Computing
  • Cookie Policy
  • Self-Hosted VPN

Company

  • Blog
  • Contact Us
  • About Us
  • Brand Guidelines
  • Affiliates

Legal & Compliance

  • Terms of Service
  • Privacy Policy
  • Data Processing Agreement
  • Acceptable Use Policy
  • Microsoft Software Terms of Use
  • Refund Policy
  • Report Abuse

© VPS.BG Ltd. 2026 · All rights reserved!

Made with passion in Bulgaria · VAT ID: BG203144520

Contents

  • How to enable PHP error logging
  • How to review the collected PHP errors

Subscribe to Our Newsletter

Join 5000+ subscribers and receive helpful content, deals and more! We promise no spam - 100% great content. Unsubscribe anytime.

Share Article

#Tutorial
  1. Documentation
  2. /
  3. #Tutorial
  4. /
  5. How to enable PHP error logging and review the errors

How to enable PHP error logging and review the errors

Published: 05 February 2020 • Updated: 27 May 2026 • 1 min read

#Tutorial

Is your website not working? Are you getting an ‘Error 500’, but you don’t know why? In this tutorial, we are going  to show you how to enable PHP error logging as well as how to review any errors that you might encounter.

How to enable PHP error logging

First, you will need to log into your cPanel account. Next, click on the ‘Select PHP Version’ button and once there, select the ‘Switch to PHP Options’ button as illustrated below:

select PHP version

From here, you want to check the ‘error_reporting’ line. In order to enable PHP error logging, you need to change the value to ‘E_ALL’ like this:

enable error reporting

All changes that you make are automatically saved, meaning that you don’t need to click anything else. Once you have enabled the error logging, all of your errors will be written and stored into the ‘error_log’ file, which is located in your project’s home directory, which is in most cases the ‘public_html’ folder. 

IMPORTANT: Some PHP applications can override the value of the error logging variable. Because of this, make sure to check it from time to time when installing new plugins or making changes to your cPanel account!

How to review the collected PHP errors

As mentioned previously, all errors will be stored in the ‘error_log’ file. We don’t recommend opening this file in your browser if you notice that it is too large. Instead, we suggest you download it onto your machine and then open it with an editor that can manage large log files in order to avoid crashes and in order to have a better visual presentation as well, which can help you spot given errors faster.

Subscribe to Our Newsletter

Join 5000+ subscribers and receive helpful content, deals and more! We promise no spam - 100% great content. Unsubscribe anytime.

Share Article

Related Content

23 September 2021

What is an addon domain and how to add one to your shared hosting account using cPanel

In this tutorial you will learn what an addon domain is, how to create it using cPanel and when it is appropriate to make use of one.

#Tutorial#CPanel
23 February 2021

What is DKIM and how to create a DKIM record

DKIM records are a method used to secure your emails, increasing your domain reputation and reducing the chances of your emails being flagged as SPAM.

#Tutorial#Email
14 September 2022

How to set a specific PHP version for different directories

Learn how to set custom PHP versions and options for different directories or folders on your website or application using cPanel.

#Tutorial#CPanel

Privacy-First Cloud Hosting

Looking for a powerful and secure cloud server that respects your privacy? Take a look at our SEV-SNP powered virtual machines!

View PricingContact Us