{"id":184,"date":"2016-09-19T10:40:16","date_gmt":"2016-09-19T10:40:16","guid":{"rendered":"https:\/\/wickedrobot.dev\/support\/?p=184"},"modified":"2025-10-08T06:14:32","modified_gmt":"2025-10-08T06:14:32","slug":"fix-php-error-allowed-memory-size-of-x-bytes-exhausted","status":"publish","type":"epkb_post_type_1","link":"https:\/\/wickedrobot.dev\/knowledge-base\/fix-php-error-allowed-memory-size-of-x-bytes-exhausted","title":{"rendered":"Fix PHP Error: Allowed Memory Size of X Bytes Exhausted"},"content":{"rendered":"<p><span style=\"font-size: 12pt;\">If you are getting an error such as &#8220;<strong>Allowed memory size of&#8230; in file \/directory\/folder\/yourscript.php<\/strong>&#8220;, you can use an htaccess file to resolve this problem. <\/span><\/p>\n<p><span style=\"font-size: 12pt;\">If the error does not go away even after applying the htaccess code, you should contact us. We will do our best to help you.<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">Place this code in the dot htaccess file of your primary domain. If the error persists after using the code, enter it in the directory where you are receiving the error, such as <code>cloudwafer.com\/blog\/directory\/folder\/<strong>.htaccess<\/strong><\/code>.<\/span><\/p>\n<p><span style=\"font-size: 12pt;\">Add this code to your htaccess file:<\/span><\/p>\n<p><code><span style=\"font-size: 12pt;\">RLimitMem max<\/span><\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are getting an error such as &#8220;Allowed memory size of&#8230; in file \/directory\/folder\/yourscript.php&#8220;, you can use an htaccess file to resolve this problem. If the error does not go away even after applying the htaccess code, you should contact us. We will do our best to help you. Place this code in the &#8230; <a title=\"Fix PHP Error: Allowed Memory Size of X Bytes Exhausted\" class=\"read-more\" href=\"https:\/\/wickedrobot.dev\/knowledge-base\/fix-php-error-allowed-memory-size-of-x-bytes-exhausted\" aria-label=\"Read more about Fix PHP Error: Allowed Memory Size of X Bytes Exhausted\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"epkb_post_type_1_category":[82],"epkb_post_type_1_tag":[],"class_list":["post-184","epkb_post_type_1","type-epkb_post_type_1","status-publish","hentry","epkb_post_type_1_category-others-cpanel"],"_links":{"self":[{"href":"https:\/\/wickedrobot.dev\/jipumel\/wp\/v2\/epkb_post_type_1\/184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wickedrobot.dev\/jipumel\/wp\/v2\/epkb_post_type_1"}],"about":[{"href":"https:\/\/wickedrobot.dev\/jipumel\/wp\/v2\/types\/epkb_post_type_1"}],"author":[{"embeddable":true,"href":"https:\/\/wickedrobot.dev\/jipumel\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wickedrobot.dev\/jipumel\/wp\/v2\/comments?post=184"}],"version-history":[{"count":0,"href":"https:\/\/wickedrobot.dev\/jipumel\/wp\/v2\/epkb_post_type_1\/184\/revisions"}],"wp:attachment":[{"href":"https:\/\/wickedrobot.dev\/jipumel\/wp\/v2\/media?parent=184"}],"wp:term":[{"taxonomy":"epkb_post_type_1_category","embeddable":true,"href":"https:\/\/wickedrobot.dev\/jipumel\/wp\/v2\/epkb_post_type_1_category?post=184"},{"taxonomy":"epkb_post_type_1_tag","embeddable":true,"href":"https:\/\/wickedrobot.dev\/jipumel\/wp\/v2\/epkb_post_type_1_tag?post=184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}