{"id":2393,"date":"2019-07-24T15:38:32","date_gmt":"2019-07-24T15:38:32","guid":{"rendered":"https:\/\/chemicloud.com\/kb\/?post_type=ht_kb&#038;p=2393"},"modified":"2021-05-05T16:51:18","modified_gmt":"2021-05-05T16:51:18","slug":"enable-or-disable-php-error-reporting-in-cpanel","status":"publish","type":"ht_kb","link":"https:\/\/chemicloud.com\/kb\/article\/enable-or-disable-php-error-reporting-in-cpanel\/","title":{"rendered":"How to enable or disable PHP error reporting in cPanel"},"content":{"rendered":"<p>There are certain scenarios when you may be asked to make changes to your PHP configuration. Specifically, you may be directed to edit a file on your server called php.ini, and to enable or disable PHP error reporting.<\/p>\n<p>While do not allow direct changes to PHP.ini on our servers. However, PHP configuration changes can be made from cPanel by following these steps:<\/p>\n<p><strong>1)\u00a0<\/strong><a href=\"https:\/\/chemicloud.com\/kb\/article\/how-to-login-cpanel-whm\/\" target=\"_blank\" rel=\"noopener noreferrer\">Log into cPanel<\/a>.<\/p>\n<p><strong>2)<\/strong> Look for the <em>SOFTWARE<\/em> section and click on\u00a0<strong>Select PHP version<\/strong><\/p>\n    \t\t<div class=\"hts-messages hts-messages--alert   hts-messages--withicon \"   >\r\n    \t\t\t    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\t\n<p>PHP Selector<\/p>\n<p>The PHP Selector is not included by default in cPanel and might be missing from your account if you are hosting with a different web host. All ChemiCloud customers should see the Select PHP Version section in their hosting account&#8217;s cPanel.<\/p>\n    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/W3z-CbxXpiA\" title=\"YouTube video player\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<figure id=\"attachment_1996\" aria-describedby=\"caption-attachment-1996\" style=\"width: 783px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-1996\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/cPanel-Software-Select-PHP-Version.png\" alt=\"cPanel &gt; Software &gt; Select PHP Version\" width=\"783\" height=\"146\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/cPanel-Software-Select-PHP-Version.png 2048w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/cPanel-Software-Select-PHP-Version-300x56.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/cPanel-Software-Select-PHP-Version-768x143.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/cPanel-Software-Select-PHP-Version-1024x191.png 1024w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/cPanel-Software-Select-PHP-Version-50x9.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/cPanel-Software-Select-PHP-Version-60x11.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/cPanel-Software-Select-PHP-Version-100x19.png 100w\" sizes=\"auto, (max-width: 783px) 100vw, 783px\" \/><figcaption id=\"caption-attachment-1996\" class=\"wp-caption-text\">cPanel &gt; Software &gt; Select PHP Version<\/figcaption><\/figure>\n<p><strong>3)<\/strong> In the new window click on the <strong>Switch To PHP Options <\/strong>link.<\/p>\n<figure id=\"attachment_2276\" aria-describedby=\"caption-attachment-2276\" style=\"width: 783px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-2276\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/02\/cPanel-PHP-Options-1024x265.png\" alt=\"cPanel PHP Options\" width=\"783\" height=\"203\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/02\/cPanel-PHP-Options-1024x265.png 1024w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/02\/cPanel-PHP-Options-300x78.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/02\/cPanel-PHP-Options-768x199.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/02\/cPanel-PHP-Options-50x13.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/02\/cPanel-PHP-Options-60x16.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2017\/02\/cPanel-PHP-Options-100x26.png 100w\" sizes=\"auto, (max-width: 783px) 100vw, 783px\" \/><figcaption id=\"caption-attachment-2276\" class=\"wp-caption-text\">Select PHP Version &gt; Switch to PHP Options<\/figcaption><\/figure>\n<p><strong>4)<\/strong> Here you can locate the <strong>error_reporting<\/strong> and click on the drop-down menu next to it to choose the option you want.<\/p>\n    \t\t<div class=\"hts-messages hts-messages--info    \"   >\r\n    \t\t\t    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tE_ALL : Everything<br \/>\nE_ALL &amp; ~E_NOTICE : Report all errors except E_NOTICE<br \/>\n~E_ALL : Disable all    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<p><strong>5)<\/strong> If the change was successful, you will see a green box with a message which will confirm that the change has been applied.<\/p>\n<p>That&#8217;s all! Now you know how to enable or disable PHP error reporting in cPanel<\/p>\n<p><strong>For further questions, or if you need help, please open a support ticket from your Client Area&#8217;s Dashboard.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are certain scenarios when you may be asked to make changes to your PHP configuration. Specifically, you may be directed to edit a file on your server called php.ini, and to enable or disable PHP error reporting. While do not allow direct changes to PHP.ini on our servers. However,&#8230;<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"ht-kb-category":[173],"ht-kb-tag":[],"class_list":["post-2393","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-php-configuration"],"_links":{"self":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/2393","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/comments?post=2393"}],"version-history":[{"count":8,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/2393\/revisions"}],"predecessor-version":[{"id":5389,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/2393\/revisions\/5389"}],"wp:attachment":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/media?parent=2393"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=2393"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=2393"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}