{"id":512,"date":"2020-06-03T11:59:33","date_gmt":"2020-06-03T18:59:33","guid":{"rendered":"https:\/\/SUMMALAI.COM\/?p=512"},"modified":"2020-06-03T12:00:10","modified_gmt":"2020-06-03T19:00:10","slug":"how-to-increase-the-wordpress-php-memory-limit","status":"publish","type":"post","link":"https:\/\/SUMMALAI.COM\/?p=512","title":{"rendered":"How to Increase the WordPress PHP Memory Limit"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\"><\/h1>\n\n\n\n<p>On many hosting providers the default&nbsp;<strong>PHP Memory<\/strong>&nbsp;is usually&nbsp;<strong>32<\/strong>&nbsp;or&nbsp;<strong>64 MB<\/strong>, however for&nbsp;<strong>WordPress<\/strong>&nbsp;that may not be enough sometimes, especially if you have a lot of plugins installed on your website.<\/p>\n\n\n\n<p>I recommend to increase the memory to\u00a0<strong>256 MB<\/strong> or more.<\/p>\n\n\n\n<p>How to change the WordPress Memory<\/p>\n\n\n\n<p>The most common solution to this problem is to edit the file \u201c<strong>wp-config.php<\/strong>\u201d from your WordPress directory and to add the following line somewhere at the end:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">define( 'WP_MEMORY_LIMIT', '256M' );<\/pre>\n\n\n\n<p>However, there is an easier method, by using the plugin&nbsp;<a href=\"https:\/\/wordpress.org\/plugins\/wp-config-file-editor\/\">WP Config File Editor<\/a>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/m8q2a8f3.stackpathcdn.com\/wp-content\/uploads\/2018\/06\/Pasted_Image_21_06_2018__12_07.png\" alt=\"\" class=\"wp-image-139062\"\/><\/figure><\/div>\n\n\n\n<p>Just install the plugin, activate it, and then go to the&nbsp;<strong>WPCF Editor<\/strong>&nbsp;page and simply change the value for&nbsp;<strong>Max Memory limit<\/strong>&nbsp;to&nbsp;<strong>256M<\/strong>:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/m8q2a8f3.stackpathcdn.com\/wp-content\/uploads\/2018\/06\/Pasted_Image_21_06_2018__12_14.png\" alt=\"\" class=\"wp-image-139063\"\/><\/figure><\/div>\n\n\n\n<p>That\u2019s all!<\/p>\n\n\n\n<p><strong>Note<\/strong>: If this solution does not work for you, then this means your web hosting service provider does not allow WordPress to increase PHP memory limit. You will need to ask your web hosting provider to increase your PHP memory limit manually.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>On many hosting providers the default&nbsp;PHP Memory&nbsp;is usually&nbsp;32&nbsp;or&nbsp;64 MB, however for&nbsp;WordPress&nbsp;that may not be enough sometimes, especially if you have a lot of plugins installed on your website. I recommend to increase the memory to\u00a0256 MB or more. How to change the WordPress Memory The most common solution to this problem is to edit the <a class=\"read-more\" href=\"https:\/\/SUMMALAI.COM\/?p=512\">Read More<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[],"class_list":["post-512","post","type-post","status-publish","format-standard","hentry","category-linux"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/512","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=512"}],"version-history":[{"count":0,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=\/wp\/v2\/posts\/512\/revisions"}],"wp:attachment":[{"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=512"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=512"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/SUMMALAI.COM\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=512"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}