{"id":428,"date":"2017-02-19T14:19:34","date_gmt":"2017-02-19T14:19:34","guid":{"rendered":"https:\/\/chemicloud.com\/kb\/?post_type=article&#038;p=428"},"modified":"2021-05-05T16:45:34","modified_gmt":"2021-05-05T16:45:34","slug":"how-to-edit-the-php-ini-file-cpanel","status":"publish","type":"ht_kb","link":"https:\/\/chemicloud.com\/kb\/article\/how-to-edit-the-php-ini-file-cpanel\/","title":{"rendered":"How to Edit the php.ini File 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, which usually holds a set of PHP directives.<\/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    \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\tThe\u00a0<strong>PHP Selector<\/strong>\u00a0is 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\u2019s cPanel.    \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\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/W3z-CbxXpiA\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/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<figure id=\"attachment_1996\" aria-describedby=\"caption-attachment-1996\" style=\"width: 723px\" 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-1024x191.png\" alt=\"cPanel &gt; Software &gt; Select PHP Version\" width=\"723\" height=\"135\" srcset=\"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-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-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, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/cPanel-Software-Select-PHP-Version.png 2048w\" sizes=\"auto, (max-width: 723px) 100vw, 723px\" \/><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>button.<\/p>\n<figure id=\"attachment_2276\" aria-describedby=\"caption-attachment-2276\" style=\"width: 723px\" 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=\"723\" height=\"187\" 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: 723px) 100vw, 723px\" \/><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 PHP directive you wish to amend and click the value. A dropdown menu or text input box will appear, allowing you to change the value as required. Check your script, plugin, or theme\u2019s documentation (or an on-screen error message) to find the correct value.<\/p>\n<p><strong>5)<\/strong> Once you&#8217;ll do any change, please do a left-hand side click anywhere outside the dropdown or text input box. 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 edit the php.ini file 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, which usually holds a set of PHP directives. 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-428","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\/428","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=428"}],"version-history":[{"count":10,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/428\/revisions"}],"predecessor-version":[{"id":5379,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/428\/revisions\/5379"}],"wp:attachment":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/media?parent=428"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=428"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}