{"id":1004,"date":"2016-08-18T19:00:18","date_gmt":"2016-08-18T13:30:18","guid":{"rendered":"https:\/\/www.nettigritty.com\/kb\/?p=1004"},"modified":"2016-08-18T19:00:18","modified_gmt":"2016-08-18T13:30:18","slug":"increase-memory-for-php-using-htaccess","status":"publish","type":"post","link":"https:\/\/www.nettigritty.com\/kb\/website\/increase-memory-for-php-using-htaccess\/","title":{"rendered":"Increase memory for PHP using .htaccess"},"content":{"rendered":"<p>If you see the following error on a PHP script, you can easily fix it by increasing the allowed memory to your PHP script.<\/p>\n<p><code>Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 113 bytes) in <\/code><\/p>\n<p>To do that, simply add the line below to a .htaccess file in your public_html folder<\/p>\n<p>php_value memory_limit 256M<\/p>\n<p>You can then verify this using a test PHP file which should have the code below. The Local Value column will reflect the increased value that you set.<\/p>\n<p><code>< ?php phpinfo(); ?><\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you see the following error on a PHP script, you can easily fix it by increasing the allowed memory to your PHP script. Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 113 bytes) in To do that, simply add the line below to a .htaccess file in your public_html folder [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-1004","post","type-post","status-publish","format-standard","hentry","category-website"],"_links":{"self":[{"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/posts\/1004","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/comments?post=1004"}],"version-history":[{"count":1,"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/posts\/1004\/revisions"}],"predecessor-version":[{"id":1005,"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/posts\/1004\/revisions\/1005"}],"wp:attachment":[{"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/media?parent=1004"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/categories?post=1004"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nettigritty.com\/kb\/wp-json\/wp\/v2\/tags?post=1004"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}