{"id":184,"date":"2016-09-19T10:40:16","date_gmt":"2016-09-19T10:40:16","guid":{"rendered":"https:\/\/hostduplex.com\/kb\/?p=184"},"modified":"2016-09-19T10:40:16","modified_gmt":"2016-09-19T10:40:16","slug":"php-error-allowed-memory-size-of-x-bytes-exhausted","status":"publish","type":"post","link":"https:\/\/www.hostduplex.com\/kb\/php-error-allowed-memory-size-of-x-bytes-exhausted\/","title":{"rendered":"PHP error: Allowed memory size of x bytes exhausted"},"content":{"rendered":"<p><span style=\"font-size: medium;\">If you are getting an error like &#8220;<strong>Allowed memory size of&#8230; in file \/directory\/folder\/yourscript.php<\/strong>&#8220;, then you can use a .htaccess trick to resolve this problem. If this error does not go away even after applying this .htaccess code, you should contact us, and we will help you.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-size: medium;\">Place this code in the .htaccess file of your main domain and if this error persists even after you have used the code, enter it in a directory where you are receiving an error, such as example.com\/directory\/folder\/<strong>.htaccess<\/strong> and place the code in the \/directory folder.<\/span><\/p>\n<p><span style=\"font-size: medium; background-color: #c0c0c0; color: #ff0000;\">RLimitMem max<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are getting an error like &#8220;Allowed memory size of&#8230; in file \/directory\/folder\/yourscript.php&#8220;, then you can use a .htaccess trick to resolve this problem. If this error does not go away even after applying this .htaccess code, you should contact us, and we will help you. &nbsp; Place this&#8230;<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[78],"tags":[],"class_list":["post-184","post","type-post","status-publish","format-standard","hentry","category-others-cpanel"],"_links":{"self":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/posts\/184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/comments?post=184"}],"version-history":[{"count":0,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/posts\/184\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/media?parent=184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/categories?post=184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostduplex.com\/kb\/wp-json\/wp\/v2\/tags?post=184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}