{"id":10298,"date":"2021-03-27T06:50:41","date_gmt":"2021-03-27T06:50:41","guid":{"rendered":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?p=10298"},"modified":"2025-04-15T09:42:20","modified_gmt":"2025-04-15T08:42:20","slug":"increase-wordpress-memory-limit","status":"publish","type":"post","link":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/increase-wordpress-memory-limit\/","title":{"rendered":"How to Update the WordPress Memory Limit from cPanel?"},"content":{"rendered":"\n<p>Have you ever encountered errors like \u201cAllowed memory size exhausted\u201d while working on the WordPress website? What does it mean? It means that your website has hit the default PHP memory limit set by your web hosting server. WordPress relies on PHP to function, and when your website grows through plugins, themes, or content, it requires more memory to function smoothly.&nbsp;<\/p>\n\n\n\n<p>Luckily, if your website is hosted on a cPanel-based server, increasing the WordPress memory limit is easier. With minor simple changes, you easily allocate more memory to the website and eliminate performance issues or errors caused by low PHP limits. In this guide, we\u2019ll show you exactly how to increase the memory limit using cPanel tools, without needing advanced coding knowledge.<\/p>\n\n\n\n<p>To Change\/Increase WordPress Memory Limit:<\/p>\n\n\n\n<p>1. Log in to your cPanel account.<\/p>\n\n\n\n<p>2. Go to the Files section and click on File Manager.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1897\" height=\"919\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/03\/click-on-file-manager.png\" alt=\"click on File Manager\" class=\"wp-image-16685\"\/><\/figure>\n\n\n\n<p>3. In File Manager, browse to your domain\u2019s root folder(which is generally public_html for the main domain and addondomain.tld for the addon domains). Choose the wp-config.php file and click the Edit button.<\/p>\n\n\n\n<p>4. A pop-up window will open, prompting you to select the encoding of the file. Click on Edit.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"631\" height=\"438\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/03\/select-the-encoding-of-the-file-1.png\" alt=\"select the encoding of the file\" class=\"wp-image-16692\"\/><\/figure>\n\n\n\n<p>5. The editing window will open. Add the following code:<\/p>\n\n\n\n<p>define( &#8216;WP_MEMORY_LIMIT&#8217;, &#8216;256M&#8217; );<\/p>\n\n\n\n<p>before the<\/p>\n\n\n\n<p>\/* That&#8217;s all, stop editing! Happy blogging. *\/<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1918\" height=\"660\" src=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/03\/editing-window.png\" alt=\"editing window\" class=\"wp-image-16694\"\/><\/figure>\n\n\n\n<p>You can assign any memory limit of your preference to replace \u2018256M\u2018 and click on Save Changes.<\/p>\n\n\n\n<p>A success message will flash, meaning the memory limit for WordPress is set.<\/p>\n\n\n\n<div class=\"vlt-box \">\n<div class=\"box-title\" style=\"background:#D5EAFF; color:#000\">Wrapping it Up<\/div>\n<div class=\"box-content\" >\n<p>Running a WordPress site shouldn&#8217;t mean dealing with frustrating memory errors or performance bottlenecks. By simply increasing the memory limit via cPanel, you&#8217;re giving your website the room it needs to operate efficiently\u2014especially as you install more plugins or experience higher traffic.<\/p>\n<p>This small but crucial change can make a noticeable difference in your site\u2019s reliability and user experience. Whether you&#8217;re managing a blog, online store, or business site, learning how to update the WordPress memory limit from cPanel is a smart step toward better site management and stability.<\/p>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever encountered errors like \u201cAllowed memory size exhausted\u201d while working on the WordPress website? What does it mean? It means that your website has hit the default PHP memory limit set by your web hosting server. WordPress relies on PHP to function, and when your website grows through plugins, themes, or content, it [&hellip;]<\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[41,17],"tags":[2069,2067,856,79,2068,178],"class_list":["post-10298","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-howtos","category-wordpress-faq","tag-how-to-update-the-wordpress-memory-limit","tag-increase-wordpress-memory-limit","tag-wordpress-files","tag-wordpress-hosting","tag-wordpress-memory-limit","tag-wordpress-website"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Update and Increase the WordPress Memory Limit?<\/title>\n<meta name=\"description\" content=\"If you don&#039;t have enough memory for your WordPress, you can increase its memory limit. This article shows you how to update the WordPress 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.co.uk\/hosting-faqs\/increase-wordpress-memory-limit\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Update and Increase the WordPress Memory Limit?\" \/>\n<meta property=\"og:description\" content=\"If you don&#039;t have enough memory for your WordPress, you can increase its memory limit. This article shows you how to update the WordPress Memory Limit.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/increase-wordpress-memory-limit\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-27T06:50:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-15T08:42:20+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/03\/click-on-file-manager.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1897\" \/>\n\t<meta property=\"og:image:height\" content=\"919\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Prasad Khartadkar\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prasad Khartadkar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/increase-wordpress-memory-limit\/\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/increase-wordpress-memory-limit\/\",\"name\":\"How to Update and Increase the WordPress Memory Limit?\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/increase-wordpress-memory-limit\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/increase-wordpress-memory-limit\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/03\/click-on-file-manager.png\",\"datePublished\":\"2021-03-27T06:50:41+00:00\",\"dateModified\":\"2025-04-15T08:42:20+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e\"},\"description\":\"If you don't have enough memory for your WordPress, you can increase its memory limit. This article shows you how to update the WordPress Memory Limit.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/increase-wordpress-memory-limit\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/increase-wordpress-memory-limit\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/increase-wordpress-memory-limit\/#primaryimage\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/03\/click-on-file-manager.png\",\"contentUrl\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/03\/click-on-file-manager.png\",\"width\":1897,\"height\":919,\"caption\":\"click on File Manager\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/increase-wordpress-memory-limit\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Update the WordPress Memory Limit from cPanel?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e\",\"name\":\"Prasad Khartadkar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g\",\"caption\":\"Prasad Khartadkar\"},\"description\":\"Prasad is a business grad specialized in Marketing. He has garnered experience as a technical content writer and a digital marketer that he brings out in his work. He likes reading classics and travel in his free time.\",\"url\":\"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/prasad-khartadkar\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Update and Increase the WordPress Memory Limit?","description":"If you don't have enough memory for your WordPress, you can increase its memory limit. This article shows you how to update the WordPress 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.co.uk\/hosting-faqs\/increase-wordpress-memory-limit\/","og_locale":"en_GB","og_type":"article","og_title":"How to Update and Increase the WordPress Memory Limit?","og_description":"If you don't have enough memory for your WordPress, you can increase its memory limit. This article shows you how to update the WordPress Memory Limit.","og_url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/increase-wordpress-memory-limit\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2021-03-27T06:50:41+00:00","article_modified_time":"2025-04-15T08:42:20+00:00","og_image":[{"width":1897,"height":919,"url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/03\/click-on-file-manager.png","type":"image\/png"}],"author":"Prasad Khartadkar","twitter_misc":{"Written by":"Prasad Khartadkar","Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/increase-wordpress-memory-limit\/","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/increase-wordpress-memory-limit\/","name":"How to Update and Increase the WordPress Memory Limit?","isPartOf":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/increase-wordpress-memory-limit\/#primaryimage"},"image":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/increase-wordpress-memory-limit\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/03\/click-on-file-manager.png","datePublished":"2021-03-27T06:50:41+00:00","dateModified":"2025-04-15T08:42:20+00:00","author":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e"},"description":"If you don't have enough memory for your WordPress, you can increase its memory limit. This article shows you how to update the WordPress Memory Limit.","breadcrumb":{"@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/increase-wordpress-memory-limit\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.co.uk\/hosting-faqs\/increase-wordpress-memory-limit\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/increase-wordpress-memory-limit\/#primaryimage","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/03\/click-on-file-manager.png","contentUrl":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-content\/uploads\/2021\/03\/click-on-file-manager.png","width":1897,"height":919,"caption":"click on File Manager"},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/increase-wordpress-memory-limit\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How to Update the WordPress Memory Limit from cPanel?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":"Person","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/c9138a9488172a8d0aa2d4f40878d83e","name":"Prasad Khartadkar","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/fafb102a39aa8f8d38a11f3e2dcfa746?s=96&d=blank&r=g","caption":"Prasad Khartadkar"},"description":"Prasad is a business grad specialized in Marketing. He has garnered experience as a technical content writer and a digital marketer that he brings out in his work. He likes reading classics and travel in his free time.","url":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/author\/prasad-khartadkar\/"}]}},"views":455,"_links":{"self":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/10298","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=10298"}],"version-history":[{"count":8,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/10298\/revisions"}],"predecessor-version":[{"id":16696,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/posts\/10298\/revisions\/16696"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=10298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=10298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.co.uk\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=10298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}