{"id":32517,"date":"2020-12-11T07:16:20","date_gmt":"2020-12-11T07:16:20","guid":{"rendered":"https:\/\/hostduplex.com\/kb\/?p=32517"},"modified":"2020-12-11T07:16:20","modified_gmt":"2020-12-11T07:16:20","slug":"how-to-enable-or-disable-phps-display_errors-via-cloudlinux-selector-in-cpanel","status":"publish","type":"post","link":"https:\/\/www.hostduplex.com\/kb\/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><span style=\"font-size: Medium;\">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.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: Medium;\"><strong>1<\/strong>. Log into your cPanel account.<\/span><\/p>\n<p><span style=\"font-size: Medium;\"><strong>2<\/strong>. In the <strong>Software<\/strong> section, click the <strong>Select PHP Version<\/strong>.<\/span><\/p>\n<p><span style=\"font-size: Medium;\"><img decoding=\"async\" src=\"\/kb\/img\/cP-CL-Select-PHP-Version-icon.gif\" \/><\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: Medium;\"><strong>3<\/strong>. Click on the <strong>Options<\/strong> menu.<\/span><\/p>\n<p><span style=\"font-size: Medium;\"><img decoding=\"async\" src=\"\/kb\/img\/CL-options-menu.gif\" \/><\/span><\/p>\n<p><span style=\"font-size: Medium;\"><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.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: Medium;\"><strong>4<\/strong>. For enabling display_errors, tick mark it. For disabling it, uncheck it.<\/span><\/p>\n<p><span style=\"font-size: Medium;\"><img decoding=\"async\" src=\"\/kb\/img\/CL-enable-or-disable-error.gif\" \/><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes, we need to debug PHP. Hence, we need to enable display_errors 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. &nbsp; 1. Log into your cPanel account. 2. In the Software section, click the Select PHP&#8230;<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[53],"tags":[],"class_list":["post-32517","post","type-post","status-publish","format-standard","hentry","category-cloudlinux-cpanel"],"_links":{"self":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/posts\/32517","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/comments?post=32517"}],"version-history":[{"count":0,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/posts\/32517\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/media?parent=32517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/categories?post=32517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/tags?post=32517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}