{"id":905,"date":"2012-10-11T16:09:05","date_gmt":"2012-10-11T07:09:05","guid":{"rendered":"http:\/\/www.santoshkori.com\/blog\/?p=905"},"modified":"2012-10-11T16:12:00","modified_gmt":"2012-10-11T07:12:00","slug":"how-to-increase-wordpress-memory-limit","status":"publish","type":"post","link":"https:\/\/www.santoshkori.com\/blog\/how-to-increase-wordpress-memory-limit\/","title":{"rendered":"How to Increase WordPress Memory Limit"},"content":{"rendered":"<p><a href=\"https:\/\/www.santoshkori.com\/blog\/wp-content\/uploads\/2012\/10\/How-to-Increase-WordPress-Memory-Limit.gif\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-full wp-image-906\" title=\"How-to-Increase-WordPress-Memory-Limit\" src=\"https:\/\/www.santoshkori.com\/blog\/wp-content\/uploads\/2012\/10\/How-to-Increase-WordPress-Memory-Limit.gif\" alt=\"\" width=\"232\" height=\"192\"><\/a>A common error you can come across in\u00a0<strong><a href=\"https:\/\/www.santoshkori.com\/blog\/category\/wordpress\/\">WordPress<\/a> is a <a href=\"https:\/\/www.santoshkori.com\/blog\/wordpress\/how-to-increase-wordpress-memory-limit\/\">PHP memory limit error<\/a><\/strong>. This happens when <a href=\"https:\/\/www.santoshkori.com\/blog\/category\/wordpress\/\">WordPress<\/a> doesn&#8217;t have enough memory to achieve what you want. It can be caused by poorly written plugins that will continue to run a procedure until the installation runs out of memory.<\/p>\n<p>Since version 2.5 there is a wp-config.php option\u00a0<strong>WP_MEMORY_LIMIT<\/strong>\u00a0which allows you to configure the maximum amount of memory that can be used by PHP.<\/p>\n<p>When you change this option in the wp-config.php it will only affect your <a href=\"https:\/\/www.santoshkori.com\/blog\/category\/wordpress\/\">WordPress site<\/a> and not any other PHP sites.<\/p>\n<p>The default memory allocated to <a href=\"https:\/\/www.santoshkori.com\/blog\/category\/wordpress\/\">WordPress<\/a> is 32MB, if the value in the php.ini is more than the allocated <a href=\"https:\/\/www.santoshkori.com\/blog\/category\/wordpress\/\">WordPress<\/a> amount<a href=\"https:\/\/www.santoshkori.com\/blog\/category\/wordpress\/\"> WordPress<\/a> will use this value.<\/p>\n<p>For example if <a href=\"https:\/\/www.santoshkori.com\/blog\/category\/wordpress\/\">WordPress<\/a> has allocated 32MB of memory and php.ini is configured to 64MB then <a href=\"https:\/\/www.santoshkori.com\/blog\/category\/wordpress\/\">WordPress<\/a> will use 64MB.<\/p>\n<p><!--more--><\/p>\n<p>To change the <em><strong><a href=\"https:\/\/www.santoshkori.com\/blog\/wordpress\/how-to-increase-wordpress-memory-limit\/\">WordPress memory limit<\/a><\/strong><\/em> you just add the following into the wp-config.php.<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">define('WP_MEMORY_LIMIT', '64M');<\/pre>\n<p>If this doesn&#8217;t change your allocated <a href=\"https:\/\/www.santoshkori.com\/blog\/wordpress\/how-to-increase-wordpress-memory-limit\/\">wordpress memory limit<\/a> your hosts may not allow you change this setting, if this is the case you should contact your hosting company<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A common error you can come across in\u00a0WordPress is a PHP memory limit error. This happens when WordPress doesn&#8217;t have enough memory to achieve what you want. It can be caused by poorly written plugins that will continue to run a procedure until the installation runs out of memory. Since version 2.5 there is a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":906,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[428,429,725,430],"class_list":["post-905","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","tag-how-to-increase-wordpress-memory-limit","tag-increase-wordpress-memory-limit","tag-wordpress","tag-wordpress-memory-limit"],"_links":{"self":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/905","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/comments?post=905"}],"version-history":[{"count":4,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/905\/revisions"}],"predecessor-version":[{"id":910,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/posts\/905\/revisions\/910"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/media\/906"}],"wp:attachment":[{"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/media?parent=905"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/categories?post=905"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.santoshkori.com\/blog\/wp-json\/wp\/v2\/tags?post=905"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}