{"id":2234,"date":"2019-07-12T11:55:38","date_gmt":"2019-07-12T11:55:38","guid":{"rendered":"https:\/\/chemicloud.com\/kb\/?post_type=ht_kb&#038;p=2234"},"modified":"2023-01-16T11:09:32","modified_gmt":"2023-01-16T11:09:32","slug":"how-to-increase-the-php-memory-limit-in-cpanel","status":"publish","type":"ht_kb","link":"https:\/\/chemicloud.com\/kb\/article\/how-to-increase-the-php-memory-limit-in-cpanel\/","title":{"rendered":"How to Increase the PHP Memory Limit in cPanel"},"content":{"rendered":"<p>There are specific scenarios when you may be asked to change your PHP configuration. Specifically, you may be directed to edit a file on your server called php.ini and to increase the <strong>PHP Memory limit<\/strong> (memory_limit)<\/p>\n<h3 id=\"what-is-the-memory_limit-php-setting\">What is the memory_limit PHP setting?<\/h3>\n<p>The <strong>memory_limit<\/strong> is a setting managed through the PHP Options, which max the amount of memory a script may consume. This value should be set at least as big as <a href=\"https:\/\/chemicloud.com\/kb\/article\/how-to-increase-the-post_max_size-limit-in-cpanel\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>post_max_size<\/strong><\/a>.<\/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<h3 id=\"how-to-increase-the-php-memory-limit-in-cpanel\">How to Increase the PHP Memory Limit in cPanel<\/h3>\n    \t\t<div class=\"hts-messages hts-messages--alert  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\"><strong>PHP Selector<\/strong><\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tThe PHP Selector is omitted 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.    \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>1)\u00a0<\/strong><a href=\"https:\/\/chemicloud.com\/kb\/article\/how-to-login-cpanel-whm\/\" target=\"_blank\" rel=\"noopener noreferrer\">Log into cPanel<\/a>.<br \/>\n<strong>2)<\/strong> Look for the <em>SOFTWARE<\/em> section and click on\u00a0<strong>Select PHP version<\/strong><\/p>\n<figure id=\"attachment_7674\" aria-describedby=\"caption-attachment-7674\" style=\"width: 643px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-7674\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/Software-Select-PHP-Version-783x298.png\" alt=\"PHP Version\" width=\"643\" height=\"245\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/Software-Select-PHP-Version-783x298.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/Software-Select-PHP-Version-300x114.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/Software-Select-PHP-Version-768x292.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/Software-Select-PHP-Version-50x19.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/Software-Select-PHP-Version-1536x584.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/Software-Select-PHP-Version-60x23.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/Software-Select-PHP-Version-100x38.png 100w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/05\/Software-Select-PHP-Version.png 1740w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><figcaption id=\"caption-attachment-7674\" class=\"wp-caption-text\">Software &gt; Select PHP Version<\/figcaption><\/figure>\n<p><strong>3)<\/strong> Click on the <strong>Options<\/strong> link in the new window.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-7720\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/PHP-Selector-Options-783x246.png\" alt=\"\" width=\"643\" height=\"202\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/PHP-Selector-Options-783x246.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/PHP-Selector-Options-300x94.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/PHP-Selector-Options-768x242.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/PHP-Selector-Options-50x16.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/PHP-Selector-Options-1536x483.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/PHP-Selector-Options-2048x644.png 2048w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/PHP-Selector-Options-60x19.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/PHP-Selector-Options-100x31.png 100w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><br \/>\n<strong>4)<\/strong> Here, you can locate the <strong>memory_limit<\/strong> and click on the value.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-7738\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/memory_limit-783x106.png\" alt=\"memory_limit\" width=\"643\" height=\"87\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/memory_limit-783x106.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/memory_limit-300x40.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/memory_limit-768x104.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/memory_limit-50x7.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/memory_limit-1536x207.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/memory_limit-2048x276.png 2048w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/memory_limit-60x8.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2019\/07\/memory_limit-100x13.png 100w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/p>\n<p>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\u2019ll do the change, the new value will be automatically updated. If the change was successful, you will see a green box with a message confirming that the change has been applied.<\/p>\n<p>That&#8217;s all! Now you know how to increase the PHP Memory Limit in cPanel.<\/p>\n<p class=\"p1\">If you enjoyed this tutorial, then you\u2019ll love our support! All ChemiCloud\u2019s hosting plans include 24\/7 support from our fantastic support team. Check out our\u00a0<a href=\"https:\/\/chemicloud.com\/pricing#60b65e4e63b58\"><span class=\"s1\"><b>web hosting<\/b><\/span><\/a>\u00a0plans and have your website migrated for free today!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are specific scenarios when you may be asked to change your PHP configuration. Specifically, you may be directed to edit a file on your server called php.ini and to increase the PHP Memory limit (memory_limit) What is the memory_limit PHP setting? The memory_limit is a setting managed through the&#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-2234","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\/2234","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=2234"}],"version-history":[{"count":11,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/2234\/revisions"}],"predecessor-version":[{"id":7739,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/2234\/revisions\/7739"}],"wp:attachment":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/media?parent=2234"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=2234"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=2234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}