{"id":183,"date":"2012-08-09T17:36:43","date_gmt":"2012-08-09T17:36:43","guid":{"rendered":"http:\/\/www.milesweb.com\/hosting-faqs\/?p=183"},"modified":"2022-02-10T18:11:17","modified_gmt":"2022-02-10T12:41:17","slug":"how-to-increase-php-memory-limit-using-htaccess","status":"publish","type":"post","link":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-increase-php-memory-limit-using-htaccess\/","title":{"rendered":"How To Increase PHP Memory Limit Using htaccess?"},"content":{"rendered":"<p><strong>Watch this video for a step by step process on how to increase php memory limit using htaccess<\/strong><\/p>\n<div class=\"youtube-video\" style=\"border: 1px solid #ddd;\"><iframe src=\"https:\/\/www.youtube.com\/embed\/qX1oiyvHZs0\" allowfullscreen=\"allowfullscreen\"><span style=\"display: inline-block; width: 0px; overflow: hidden; line-height: 0;\" data-mce-type=\"bookmark\" class=\"mce_SELRES_start\">\ufeff<\/span><\/iframe><\/div>\n<p>When installing any CMS, eCommerce, chat, forum, gallery, blog software there is a need for few scripts with higher memory limit. On the <a href=\"https:\/\/www.milesweb.in\/hosting\/dedicated-servers\/\">server<\/a> memory limit is set to 8 to 12 MB &amp; is never recommended to be on the higher side.<\/p>\n<p>If any of your scripts under your hosting account requires a higher memory limit, you can increase it for your hosting account itself from .htaccess file which sits under public_html OR httpdocs directory.<\/p>\n<p>Create a .htaccess file under root directory &amp; add the code below. This is in case you need to increase it to 32MB. Make sure your webhost allows &#8220;AllowOverride On&#8221; in apache config file.<\/p>\n<p><strong>php_value memory_limit 32M<\/strong><\/p>\n<p>Once done, to test the memory limit for your account, create a phpinfo page. Browse the URL yourdomain.com\/phpinfo.php. See, it it has been increased according to the one you have set.<\/p>\n<p><strong>&lt;?php phpinfo(); ?&gt;<\/strong><\/p>\n<p>If you face any issues with memory limit, signup with our <a title=\"hosting plans\" href=\"https:\/\/www.milesweb.in\" target=\"_blank\" rel=\"noopener\">web hosting plans<\/a> &amp; increase it according to your needs.<\/p>\n<p><script type=\"application\/ld+json\">\n    {\n      \"@context\": \"http:\/\/schema.org\/\",\n      \"@type\": \"VideoObject\",\n      \"name\": \"How To Increase PHP Memory Limit Using htaccess? | MilesWeb\",\n      \"duration\": \"P05M02S\",\n      \"uploadDate\": \"2020-04-03\",\n      \"thumbnailUrl\": \"https:\/\/i.ytimg.com\/vi\/qX1oiyvHZs0\/default.jpg\",\n      \"description\": \"Few scripts with higher memory limits are required while installing any CMS, eCommerce, chat application, forum, gallery, or blog software. The server's memory limit is set to 8 to 12 MB and it shouldn't be more than that. But any of your scripts under your hosting account requires a higher memory limit then you can increase it from .htaccess file located in public_html or PHP editor.   There are three methods through which you can increase PHP memory limit: -  1. MultiPHP INI editor using basic mode  2. MultiPHP INI editor using editor mode  3. File manager using htaccess file.  We have shown all the three methods in this video.  Here's an in-depth guide on How to Increase PHP Memory Limit Using htaccess:  https:\/\/www.milesweb.in\/hosting-faqs\/how-to-increase-php-memory-limit-using-htaccess\/   0:09 - PHP Memory Limit 1:09 - MultiPHP INI Editor using Basic Mode 2:29 - MultiPHP INI Editor using Editor Mode  3:16 - File manager using htaccess file   Give a thumbs up \ud83d\udc4d if you liked this video.  Subscribe to our channel and get notified for all the latest videos.  To know more about web hosting visit our website- https:\/\/www.milesweb.in\",\n      \"contentUrl\": \"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-increase-php-memory-limit-using-htaccess\/\",\n      \"hasPart\": [{\n        \"@type\": \"Clip\",\n        \"name\": \"PHP Memory Limit\",\n        \"startOffset\": 09,\n        \"endOffset\": 68,\n        \"url\": \"https:\/\/www.youtube.com\/watch?v=qX1oiyvHZs0&t=9s\"\n      },\n      {\n        \"@type\": \"Clip\",\n        \"name\": \"MultiPHP INI Editor using Basic Mode\",\n        \"startOffset\": 69,\n        \"endOffset\": 148,\n        \"url\": \"https:\/\/www.youtube.com\/watch?v=qX1oiyvHZs0&t=69s\"\n      },\n      {\n        \"@type\": \"Clip\",\n        \"name\": \"MultiPHP INI Editor using Editor Mode \",\n        \"startOffset\": 149,\n        \"endOffset\": 195,\n        \"url\": \"https:\/\/www.youtube.com\/watch?v=qX1oiyvHZs0&t=149s\"\n      },\n      {\n        \"@type\": \"Clip\",\n        \"name\": \"File Manager using htaccess File\",\n        \"startOffset\": 196,\n        \"endOffset\": 280,\n        \"url\": \"https:\/\/www.youtube.com\/watch?v=qX1oiyvHZs0&t=196s\"\n      }]\n    }\n    <\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Watch this video for a step by step process on how to increase php memory limit using htaccess \ufeff When installing any CMS, eCommerce, chat, forum, gallery, blog software there is a need for few scripts with higher memory limit. On the server memory limit is set to 8 to 12 MB &amp; is never [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41],"tags":[],"class_list":["post-183","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-howtos"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How To Increase PHP Memory Limit Using htaccess?<\/title>\n<meta name=\"description\" content=\"When installing any CMS, eCommerce, chat, forum, gallery, blog software there is a need for few scripts with higher memory limit.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-increase-php-memory-limit-using-htaccess\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Increase PHP Memory Limit Using htaccess?\" \/>\n<meta property=\"og:description\" content=\"When installing any CMS, eCommerce, chat, forum, gallery, blog software there is a need for few scripts with higher memory limit.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-increase-php-memory-limit-using-htaccess\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2012-08-09T17:36:43+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-10T12:41:17+00:00\" \/>\n<meta name=\"author\" content=\"Admin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-increase-php-memory-limit-using-htaccess\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-increase-php-memory-limit-using-htaccess\/\"},\"author\":{\"name\":\"Admin\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69\"},\"headline\":\"How To Increase PHP Memory Limit Using htaccess?\",\"datePublished\":\"2012-08-09T17:36:43+00:00\",\"dateModified\":\"2022-02-10T12:41:17+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-increase-php-memory-limit-using-htaccess\/\"},\"wordCount\":199,\"commentCount\":2,\"articleSection\":[\"How-Tos\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-increase-php-memory-limit-using-htaccess\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-increase-php-memory-limit-using-htaccess\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-increase-php-memory-limit-using-htaccess\/\",\"name\":\"How To Increase PHP Memory Limit Using htaccess?\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\"},\"datePublished\":\"2012-08-09T17:36:43+00:00\",\"dateModified\":\"2022-02-10T12:41:17+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69\"},\"description\":\"When installing any CMS, eCommerce, chat, forum, gallery, blog software there is a need for few scripts with higher memory limit.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-increase-php-memory-limit-using-htaccess\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-increase-php-memory-limit-using-htaccess\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-increase-php-memory-limit-using-htaccess\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Increase PHP Memory Limit Using htaccess?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69\",\"name\":\"Admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/02\/MilesWeb-Logo-150x150.png\",\"contentUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/02\/MilesWeb-Logo-150x150.png\",\"caption\":\"Admin\"},\"description\":\"With over 10+ years of experience in the web hosting industry, I have achieved extensive exposure to result-oriented methodologies. And expertise in different domains like Datacentre Services, Cloud computing technology, Web hosting industry and many more.\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Increase PHP Memory Limit Using htaccess?","description":"When installing any CMS, eCommerce, chat, forum, gallery, blog software there is a need for few scripts with higher memory limit.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-increase-php-memory-limit-using-htaccess\/","og_locale":"en_US","og_type":"article","og_title":"How To Increase PHP Memory Limit Using htaccess?","og_description":"When installing any CMS, eCommerce, chat, forum, gallery, blog software there is a need for few scripts with higher memory limit.","og_url":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-increase-php-memory-limit-using-htaccess\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2012-08-09T17:36:43+00:00","article_modified_time":"2022-02-10T12:41:17+00:00","author":"Admin","twitter_misc":{"Written by":"Admin","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-increase-php-memory-limit-using-htaccess\/#article","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-increase-php-memory-limit-using-htaccess\/"},"author":{"name":"Admin","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69"},"headline":"How To Increase PHP Memory Limit Using htaccess?","datePublished":"2012-08-09T17:36:43+00:00","dateModified":"2022-02-10T12:41:17+00:00","mainEntityOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-increase-php-memory-limit-using-htaccess\/"},"wordCount":199,"commentCount":2,"articleSection":["How-Tos"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.milesweb.in\/hosting-faqs\/how-to-increase-php-memory-limit-using-htaccess\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-increase-php-memory-limit-using-htaccess\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-increase-php-memory-limit-using-htaccess\/","name":"How To Increase PHP Memory Limit Using htaccess?","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website"},"datePublished":"2012-08-09T17:36:43+00:00","dateModified":"2022-02-10T12:41:17+00:00","author":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69"},"description":"When installing any CMS, eCommerce, chat, forum, gallery, blog software there is a need for few scripts with higher memory limit.","breadcrumb":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-increase-php-memory-limit-using-htaccess\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.in\/hosting-faqs\/how-to-increase-php-memory-limit-using-htaccess\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/how-to-increase-php-memory-limit-using-htaccess\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.in\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How To Increase PHP Memory Limit Using htaccess?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.in\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/90143c7d8df4b4de36b3dbb0bb272f69","name":"Admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/02\/MilesWeb-Logo-150x150.png","contentUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/02\/MilesWeb-Logo-150x150.png","caption":"Admin"},"description":"With over 10+ years of experience in the web hosting industry, I have achieved extensive exposure to result-oriented methodologies. And expertise in different domains like Datacentre Services, Cloud computing technology, Web hosting industry and many more.","url":"https:\/\/www.milesweb.in\/hosting-faqs\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=183"}],"version-history":[{"count":18,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/183\/revisions"}],"predecessor-version":[{"id":15617,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/183\/revisions\/15617"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}