{"id":15771,"date":"2026-03-03T16:14:05","date_gmt":"2026-03-03T07:14:05","guid":{"rendered":"https:\/\/hanami-web.tokyo.jp\/blog\/?p=15771"},"modified":"2026-03-03T16:14:06","modified_gmt":"2026-03-03T07:14:06","slug":"error-allowed-memory-size","status":"publish","type":"post","link":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/website-first\/server\/error-allowed-memory-size\/","title":{"rendered":"Error message: Allowed memory size of 268435456 bytes exhausted (tried to allocate 14684160 bytes) Error: On Lollipop"},"content":{"rendered":"<p>I had this error on my WordPress site, but I managed to resolve it, so I&#039;m writing this down as a memo.<br>Error message: Allowed memory size of 268435456 bytes exhausted (tried to allocate 14684160 bytes)<\/p>\n\n\n\n<p>The server environment is Lolipop. The error message is that PHP memory is insufficient and the page cannot be displayed.<\/p>\n\n\n\n<p>This is the procedure if you are using the &quot;module version.&quot; First, change to the &quot;CGI version&quot; and then proceed.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 ez-toc-wrap-center counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">table of contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #000000;color:#000000\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #000000;color:#000000\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/hanami-web.tokyo.jp\/blog\/en\/website-first\/server\/error-allowed-memory-size\/#%e3%83%ad%e3%83%aa%e3%83%9d%e3%83%83%e3%83%97%e3%81%b8%e3%83%ad%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%97%e3%80%81php%e8%a8%ad%e5%ae%9a%e3%81%b8%e7%a7%bb%e5%8b%95\" >Log in to Lolipop and go to PHP settings<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/hanami-web.tokyo.jp\/blog\/en\/website-first\/server\/error-allowed-memory-size\/#phpini%e8%a8%ad%e5%ae%9a%e3%82%92%e9%96%8b%e3%81%8f\" >Open php.ini settings<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/hanami-web.tokyo.jp\/blog\/en\/website-first\/server\/error-allowed-memory-size\/#php_valuephp_flag%e3%82%92%e5%88%a9%e7%94%a8%e5%8f%af%e8%83%bd%e3%81%ab%e3%81%99%e3%82%8b\" >Enable php_value and php_flag<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/hanami-web.tokyo.jp\/blog\/en\/website-first\/server\/error-allowed-memory-size\/#htaccess%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92%e7%b7%a8%e9%9b%86\" >Edit the .htaccess file<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"%e3%83%ad%e3%83%aa%e3%83%9d%e3%83%83%e3%83%97%e3%81%b8%e3%83%ad%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%97%e3%80%81php%e8%a8%ad%e5%ae%9a%e3%81%b8%e7%a7%bb%e5%8b%95\"><\/span>Log in to Lolipop and go to PHP settings<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>First, log in to Lolipop and go to PHP settings.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"562\" height=\"640\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-29.png\" alt=\"\" class=\"wp-image-15772\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-29.png 562w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-29-263x300.png 263w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-29-11x12.png 11w\" sizes=\"(max-width: 562px) 100vw, 562px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"phpini%e8%a8%ad%e5%ae%9a%e3%82%92%e9%96%8b%e3%81%8f\"><\/span>Open php.ini settings<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>This explanation will be for the CGI version, so please make sure that the version you are currently using is CGI before proceeding.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"408\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-30-1024x408.png\" alt=\"\" class=\"wp-image-15773\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-30-1024x408.png 1024w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-30-300x120.png 300w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-30-768x306.png 768w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-30-18x7.png 18w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-30.png 1182w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"php_valuephp_flag%e3%82%92%e5%88%a9%e7%94%a8%e5%8f%af%e8%83%bd%e3%81%ab%e3%81%99%e3%82%8b\"><\/span>Enable php_value and php_flag<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Turn on Enable php_value and php_flag to prioritize the .htaccess settings.<br>Once you turn it ON, click the button to set [php.ini].<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"633\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-31-1024x633.png\" alt=\"\" class=\"wp-image-15774\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-31-1024x633.png 1024w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-31-300x185.png 300w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-31-768x475.png 768w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-31-18x12.png 18w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-31.png 1281w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"htaccess%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92%e7%b7%a8%e9%9b%86\"><\/span>Edit the .htaccess file<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Next, access Lolipop FTP and edit the .htaccess file.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"1024\" height=\"465\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-32-1024x465.png\" alt=\"\" class=\"wp-image-15775\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-32-1024x465.png 1024w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-32-300x136.png 300w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-32-768x349.png 768w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-32-18x8.png 18w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-32.png 1257w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Here is the .jhtaccess file. Click on it to open it for editing.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"417\" height=\"452\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-33.png\" alt=\"\" class=\"wp-image-15776\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-33.png 417w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-33-277x300.png 277w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-33-11x12.png 11w\" sizes=\"(max-width: 417px) 100vw, 417px\" \/><\/figure>\n\n\n\n<p>This is a very important file, so please [download] it before touching it.<br>If your site no longer displays after editing, please upload the downloaded file and restore it.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"895\" height=\"692\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-34.png\" alt=\"\" class=\"wp-image-15777\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-34.png 895w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-34-300x232.png 300w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-34-768x594.png 768w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-34-16x12.png 16w\" sizes=\"(max-width: 895px) 100vw, 895px\" \/><\/figure>\n\n\n\n<p>Add this code to the top and save it.<br>This time, since the site was heavy, I added code to increase it to 1024M.<br>Change the numbers depending on your environment.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>php_value memory_limit 1024M<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"780\" height=\"576\" src=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-35.png\" alt=\"\" class=\"wp-image-15778\" srcset=\"https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-35.png 780w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-35-300x222.png 300w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-35-768x567.png 768w, https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/image-35-16x12.png 16w\" sizes=\"(max-width: 780px) 100vw, 780px\" \/><\/figure>","protected":false},"excerpt":{"rendered":"<p>WordPress\u30b5\u30a4\u30c8\u3067\u3053\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u306e\u3067\u3059\u304c\u3001\u89e3\u6c7a\u3057\u305f\u306e\u3067\u5099\u5fd8\u9332\u3002Error message: Allowed memory size of 268435456 bytes exhausted (tried  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":15779,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"content-type":"","_uag_custom_page_level_css":"","footnotes":""},"categories":[6,4],"tags":[],"class_list":["post-15771","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-website-running","category-server"],"blocksy_meta":[],"aioseo_notices":[],"uagb_featured_image_src":{"full":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/Other.png",720,540,false],"thumbnail":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/Other-150x150.png",150,150,true],"medium":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/Other-300x225.png",300,225,true],"medium_large":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/Other.png",720,540,false],"large":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/Other.png",720,540,false],"1536x1536":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/Other.png",720,540,false],"2048x2048":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/Other.png",720,540,false],"trp-custom-language-flag":["https:\/\/hanami-web.tokyo.jp\/blog\/wp-content\/uploads\/2026\/03\/Other-16x12.png",16,12,true]},"uagb_author_info":{"display_name":"\u682a\u5f0f\u4f1a\u793eHanamiWEB \u4ee3\u8868\u53d6\u7de0\u5f79 \u677e\u6d66\u307f\u3055","author_link":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/author\/hanami\/"},"uagb_comment_info":0,"uagb_excerpt":"WordPress\u30b5\u30a4\u30c8\u3067\u3053\u306e\u3088\u3046\u306a\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u306e\u3067\u3059\u304c\u3001\u89e3\u6c7a\u3057\u305f\u306e\u3067\u5099\u5fd8\u9332\u3002Error message: A&hellip;","brizy_media":[],"_links":{"self":[{"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/posts\/15771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/comments?post=15771"}],"version-history":[{"count":1,"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/posts\/15771\/revisions"}],"predecessor-version":[{"id":15780,"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/posts\/15771\/revisions\/15780"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/media\/15779"}],"wp:attachment":[{"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/media?parent=15771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/categories?post=15771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hanami-web.tokyo.jp\/blog\/en\/wp-json\/wp\/v2\/tags?post=15771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}