{"id":2398,"date":"2019-07-24T15:46:29","date_gmt":"2019-07-24T15:46:29","guid":{"rendered":"https:\/\/chemicloud.com\/kb\/?post_type=ht_kb&#038;p=2398"},"modified":"2021-05-05T16:51:39","modified_gmt":"2021-05-05T16:51:39","slug":"how-to-enable-or-disable-php-error-logging-in-cpanel","status":"publish","type":"ht_kb","link":"https:\/\/chemicloud.com\/kb\/article\/how-to-enable-or-disable-php-error-logging-in-cpanel\/","title":{"rendered":"How to enable or disable PHP error logging 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 logging.<\/p>\n<p>PHP error logging tells whether to log errors. By default, errors are logged in the server&#8217;s error_log file.<\/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: 784px\" 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=\"784\" 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: 784px) 100vw, 784px\" \/><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>log_errors<\/strong> and tick on the box next to it to enable it or un-tick the box to disable it.<\/p>\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 logging 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 logging. PHP error logging tells whether to log errors. By default, errors are&#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-2398","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\/2398","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=2398"}],"version-history":[{"count":5,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/2398\/revisions"}],"predecessor-version":[{"id":5390,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/2398\/revisions\/5390"}],"wp:attachment":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/media?parent=2398"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=2398"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=2398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}