{"id":50486,"date":"2026-11-20T05:24:10","date_gmt":"2026-11-20T05:24:10","guid":{"rendered":"https:\/\/kickhost.com\/guides\/how-to-enable-or-disable-phps-display_errors-via-cloudlinux-selector-in-cpanel\/"},"modified":"2026-11-28T09:13:20","modified_gmt":"2026-11-28T09:13:20","slug":"how-to-enable-or-disable-phps-display_errors-via-cloudlinux-selector-in-cpanel","status":"publish","type":"kickhost_tutorial","link":"https:\/\/kickhost.com\/en-ke\/guides\/how-to-enable-or-disable-phps-display_errors-via-cloudlinux-selector-in-cpanel\/","title":{"rendered":"How to Enable or Disable PHP&#8217;s display_errors via CloudLinux Selector in cPanel"},"content":{"rendered":"<p>The display_errors option shows PHP error messages in the browser. It helps when you debug a problem, but it should be off on a live website.<\/p>\n<p>Sometimes, we need to debug PHP. Hence, we need to enable <strong>display_errors<\/strong> or disable them for security reasons. You can do this using the CloudLinux Selector to enable or disable PHP&#8217;s display_errors in cPanel.<\/p>\n<p><strong>1<\/strong>. Log in to your cPanel account.<\/p>\n<p><strong>2<\/strong>. In the <strong>Software<\/strong> section, click on <strong>Select PHP Version<\/strong>.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/kickhost.com\/img\/cp-cl-select-php-version-icon.gif\" loading=\"lazy\" alt=\"\"><\/p>\n<p><strong>3<\/strong>. Click on the <strong>Options<\/strong> menu.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/kickhost.com\/img\/cl-options-menu.gif\" loading=\"lazy\" alt=\"\"><\/p>\n<p><strong>Note<\/strong>: If the <strong>Options<\/strong> page shows an error related to the native PHP version, change it to a non-native version first.<\/p>\n<p><strong>4<\/strong>. For enabling <strong>display_errors<\/strong>, tick mark it. For disabling it, uncheck it.<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/kickhost.com\/img\/cl-enable-or-disable-error.gif\" loading=\"lazy\" alt=\"\"><\/p>\n<h2>Turn it off on live websites<\/h2>\n<p>Error messages can reveal file paths and other details that attackers can use. Keep display_errors off in production and read errors from logs instead.<\/p>\n<h2>Use it for short debugging<\/h2>\n<p>Enable it, reproduce the problem, copy the error, then switch it off again. If the Options page shows an error, change to a non-native PHP version first.<\/p>\n<h2>Frequently asked questions<\/h2>\n<p><strong>Where can I see errors if it is off?<\/strong> Check the error_log file in your website folder or the Errors page in cPanel.<\/p>\n<p><strong>Why do I see a white screen?<\/strong> A fatal error may be hidden. Turn on display_errors briefly to see it.<\/p>\n<h2>Related guides<\/h2>\n<ul>\n<li><a href=\"https:\/\/kickhost.com\/en-ke\/guides\/how-to-increase-or-decrease-php-memory-limit-via-cloudlinux-selector-in-cpanel\/\">Change the PHP memory limit<\/a><\/li>\n<li><a href=\"https:\/\/kickhost.com\/en-ke\/guides\/how-to-check-the-disk-usage-and-the-bandwidth-usage-of-directories\/\">Check disk and bandwidth usage<\/a><\/li>\n<\/ul>\n<p>Need cPanel hosting in Kenya? <a href=\"https:\/\/kickhost.com\/en-ke\/web-hosting\/\">See KickHost hosting plans<\/a> or <a href=\"https:\/\/kickhost.com\/en-ke\/contact\/\">contact our team<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Enable or disable PHP display_errors using CloudLinux Select PHP Version in cPanel. Steps for KickHost customers in Kenya.<\/p>\n","protected":false},"featured_media":0,"template":"","class_list":["post-50486","kickhost_tutorial","type-kickhost_tutorial","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial\/50486","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial"}],"about":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/types\/kickhost_tutorial"}],"version-history":[{"count":3,"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial\/50486\/revisions"}],"predecessor-version":[{"id":53398,"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/kickhost_tutorial\/50486\/revisions\/53398"}],"wp:attachment":[{"href":"https:\/\/kickhost.com\/en-ke\/wp-json\/wp\/v2\/media?parent=50486"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}