{"id":30501,"date":"2021-04-21T07:00:00","date_gmt":"2021-04-21T14:00:00","guid":{"rendered":"https:\/\/dhblog.dream.press\/blog\/?p=30501"},"modified":"2025-05-22T00:00:37","modified_gmt":"2025-05-22T07:00:37","slug":"how-to-fix-wordpress-memory-limit-error","status":"publish","type":"post","link":"https:\/\/www-dev.dreamhost.com\/blog\/how-to-fix-wordpress-memory-limit-error\/","title":{"rendered":"How To Fix the WordPress Memory Exhausted Error by Increasing Your Site\u2019s PHP Memory Limit"},"content":{"rendered":"\n<p>As you may know, WordPress is built using <span style=\"text-decoration: underline;\"><a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/214202188-PHP-overview\">PHP<\/a><\/span>. This programming language is incredibly flexible, but it also has a few drawbacks. For example, if you don\u2019t allocate enough memory for your WordPress installation, you might start running into the occasional \u201cPHP Memory Exhausted\u201d error.<\/p>\n\n\n\n<p>In a nutshell, this error means your server isn\u2019t allocating enough resources <a href=\"https:\/\/www.dreamhost.com\/blog\/fix-wordpress-fatal-error-maximum-execution-time-exceeded\/\">for WordPress to execute the PHP scripts<\/a> it needs to function properly. This issue can negatively affect your site\u2019s functionality, but there are several ways you can fix and even prevent it.<\/p>\n\n\n\n<p>In this article, we\u2019ll show you how to fix the memory exhausted problem by increasing your PHP memory limit. However, first, let\u2019s talk about how to recognize this error and what it means!<\/p>\n\n\n\n<h2 id=\"h-why-you-re-seeing-a-wordpress-memory-limit-error-on-your-site\" class=\"wp-block-heading\"><span style=\"font-weight: bold;\">Why You\u2019re Seeing a WordPress Memory Limit Error on Your Site<\/span><\/h2>\n\n\n\n<p>As we mentioned earlier, the PHP memory limit error means you\u2019re not allocating enough resources for your WordPress installation to function correctly. The problem usually presents itself with a message such as:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" data-src=\"https:\/\/lh3.googleusercontent.com\/kxdR1fnI8Es2pw5xdkMpnDKamLDXHVakM691YqX5b7wr16_vo7oypdWWMmA22v7UB9KyLCBN5Mpxt54e-G-QhvoBREvsTlVc5_lMtbfcvgxt126iraO3bQM5Ot9kqOzS9UnIiuXi\" alt=\"The memory exhausted PHP fatal error.\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/figure><\/div>\n\n\n<p>Don\u2019t be scared by the word \u201cfatal,\u201d though. Your website isn\u2019t broken, but you will need to make some changes to your WordPress installation if you want it to work properly. Specifically, you\u2019ll want to increase your PHP memory limit.<\/p>\n\n\n\n<p>By \u201cPHP memory limit,\u201d we mean the amount of server memory that\u2019s allocated to run PHP scripts. By default, that number should be around 64 MB or higher. In most cases, 64 MB is more than enough, however.<\/p>\n\n\n\n<p>Most hosting servers provide you with far more memory than that, so increasing the PHP allowed memory size shouldn\u2019t negatively impact your website\u2019s performance whatsoever. In fact, unless you\u2019re using a cheap web host or you set up WordPress manually, your PHP memory limit shouldn\u2019t be an issue at all.<\/p>\n\n\n\n<p>You can easily check to see what your PHP memory limit is by <a href=\"https:\/\/www.dreamhost.com\/blog\/how-to-fix-wordpress-keeps-logging-out-error\/\">accessing your WordPress dashboard<\/a> and navigating to <span style=\"font-style: italic;\">Tools &gt; Site Health &gt; Info<\/span>. Next, you can click on the <span style=\"font-style: italic;\">Server <\/span>tab and look for the <span style=\"font-style: italic;\">PHP memory limit <\/span>entry.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" data-src=\"https:\/\/lh4.googleusercontent.com\/A_ybxsfGKRaiomhg0kMLfp96oJ9yRBmFNBxK-FJI_KwopiXv6fRORGsT6rTyxIlCXV7Z2twx5z5w8GMsQvvz8tGotdPSfIAmLrNlbEl1LgdXz5imsi6jXvT0n_3iCcvkIuA4zQkB\" alt=\"A website with a high PHP memory size.\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/figure><\/div>\n\n\n<p>Within the <span style=\"font-style: italic;\">Server <\/span>tab, you can also check other information such as your <span style=\"text-decoration: underline;\"><a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/215082337-What-versions-of-PHP-are-available-at-DreamHost-\">PHP version<\/a><\/span>&nbsp;and the <span style=\"font-style: italic;\">PHP time limit<\/span>. The latter variable, which is in seconds, defines how long PHP scripts have to execute before they time out.<\/p>\n\n\n\n<p>For now, let\u2019s focus on the PHP memory limit. As you can see, the above example has quite a high limit, which means that the website is unlikely to run into a WordPress Memory Exhausted error.<\/p>\n\n\n\n<p>If your site has a low memory limit (&lt;64 MB), it\u2019s in your best interests to increase it. There are a couple of ways you can do so.<\/p>\n\n\n\n<div class=\"article-newsletter article-newsletter--gradient\">\n\n\n<h2>Get Content Delivered Straight to Your Inbox<\/h2><p>Subscribe now to receive all the latest updates, delivered directly to your inbox.<\/p><form class=\"nwsl-form\" id=\"newsletter_block_\" novalidate><div class=\"messages\"><\/div><div class=\"form-group\"><label for=\"input_newsletter_block_\"><input type=\"email\"name=\"email\"id=\"input_newsletter_block_\"placeholder=\"Enter your email address\"novalidatedisabled=\"disabled\"\/><\/label><button type=\"submit\"class=\"btn btn--brand\"disabled=\"disabled\"><span>Sign Me Up!<\/span><svg width=\"21\" height=\"14\" viewBox=\"0 0 21 14\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n<path d=\"M13.8523 0.42524L12.9323 1.34521C12.7095 1.56801 12.7132 1.9304 12.9404 2.14865L16.7241 5.7823H0.5625C0.251859 5.7823 0 6.03416 0 6.3448V7.6573C0 7.96794 0.251859 8.2198 0.5625 8.2198H16.7241L12.9405 11.8535C12.7132 12.0717 12.7095 12.4341 12.9323 12.6569L13.8523 13.5769C14.072 13.7965 14.4281 13.7965 14.6478 13.5769L20.8259 7.39879C21.0456 7.17913 21.0456 6.82298 20.8259 6.60327L14.6477 0.42524C14.4281 0.205584 14.0719 0.205584 13.8523 0.42524Z\" fill=\"white\"\/>\n<\/svg>\n<\/button><\/div><\/form><\/div>\n\n\n<h2 id=\"h-how-to-resolve-the-wordpress-memory-limit-error-2-methods\" class=\"wp-block-heading\"><span style=\"font-weight: bold;\">How to Resolve the WordPress Memory Limit Error (2 Methods)<\/span><\/h2>\n\n\n\n<p>As far as <span style=\"text-decoration: underline;\"><a href=\"https:\/\/www.dreamhost.com\/blog\/common-wordpress-errors\/\">WordPress errors<\/a><\/span>&nbsp;go, this one has a clear-cut cause and solution. You\u2019re not allocating enough memory for your PHP installation, so you need to increase that number. In this section, we\u2019ll go over two methods you can use: one manual technique and one that requires your wallet.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-1-increase-the-php-memory-allocated-to-your-website-manually\"><span style=\"font-weight: bold;\">1. Increase the PHP Memory Allocated to Your Website Manually<\/span><\/h3>\n\n\n\n<p>WordPress enables you to declare your allowed memory size manually by modifying one of two files: <span style=\"text-decoration: underline; font-style: italic;\"><a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/216456227--htaccess-overview\">.htaccess<\/a><\/span><span style=\"font-style: italic;\">&nbsp;<\/span>and <span style=\"text-decoration: underline; font-style: italic;\"><a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/214693268-WordPress-wp-config-php-overview\">wp-config.php<\/a><\/span>. However, changing your WordPress installation\u2019s <span style=\"font-style: italic;\">.htaccess <\/span>file can lead to <a href=\"https:\/\/www.dreamhost.com\/blog\/how-to-fix-wordpress-error-sure-you-want-to-do-this\/\">site-wide errors<\/a> since that file governs how it interacts with your server.<\/p>\n\n\n\n<p>Increasing your PHP memory limit through <span style=\"font-style: italic;\">wp-config.php <\/span>is, in most cases, the safest option, and it\u2019s remarkably easy to do. All you need is a Secure File Transfer Protocol (SFTP) client <span style=\"text-decoration: underline;\"><a href=\"https:\/\/filezilla-project.org\/\">such as FileZilla<\/a><\/span>&nbsp;that you can use to connect to your website.<\/p>\n\n\n\n<p>Once you <span style=\"text-decoration: underline;\"><a href=\"https:\/\/help.dreamhost.com\/hc\/en-us\/articles\/115000675027-FTP-overview-and-credentials\">access your website via SFTP<\/a><\/span>, open the WordPress <span style=\"font-style: italic;\">root <\/span>folder and look for the <span style=\"font-style: italic;\">wp-config.php <\/span>file within it.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" data-src=\"https:\/\/lh6.googleusercontent.com\/p-rhXarESod5Qu3fbeIDeTGAiUnYdgM5A77w1mzGy0OWgHtW1hU6p7cpLVDK0BVTqXtOlAnsECe1dL5Bd1zW-4IydDa8L0ezEHxZbNGCG5LfLLHXo3WCGNF6FvlSmsPAWhplcA9Q\" alt=\"A WordPress wp-config.php file.\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/figure><\/div>\n\n\n<p>Open that file using a text editor, and you should see something like this:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" data-src=\"https:\/\/lh4.googleusercontent.com\/JlcWPl1chJyeMMN7TJZismhB5_XXIbI0MtobeoEffgzkLEopzxgim9Kqk5Wqbh7fnDluyxCB7t3QPs12MvAfnIHPYh_y4HOwEKnLHqMSpLxvH9zKdXX34KeVL_vrqeAgqeJd_dm9\" alt=\"Editing a wp-config.php file.\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" class=\"lazyload\" \/><\/figure><\/div>\n\n\n<p>To increase your PHP memory limit, you can simply add a single line of code anywhere after the &lt;?php<span style=\"font-style: italic;\">&nbsp;<\/span>tag and before the part of the file that reads \u201c\/* That&#8217;s all, stop editing! Happy blogging. *\/\u201d.<\/p>\n\n\n\n<p>This is the <span style=\"text-decoration: underline;\"><a href=\"https:\/\/wordpress.org\/support\/article\/editing-wp-config-php\/#increasing-memory-allocated-to-php\">line of code<\/a><\/span>&nbsp;to add:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">define( 'WP_MEMORY_LIMIT', 'XXXM' );<\/pre>\n\n\n\n<p>You\u2019ll need to replace the \u201cXXX\u201d<span style=\"font-style: italic;\">&nbsp;<\/span>variable within that line with the amount of memory you want to allocate to PHP. As we mentioned before, the absolute minimum you should settle for is 64 MB.<\/p>\n\n\n\n<p>However, you can also double the number to play it safe or increase it even further. For example, if you set a PHP memory limit of 256 MB, it would look like this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">define( 'WP_MEMORY_LIMIT', \u2018256M\u2019);<\/pre>\n\n\n\n<p>Once you\u2019re set on a number, save the changes to <span style=\"font-style: italic;\">wp-config.php <\/span>and close the editor. Now return to your WordPress dashboard and navigate to <span style=\"font-style: italic;\">Tools &gt; Site Health &gt; Info &gt; Server <\/span>to see if the changes went through.<\/p>\n\n\n\n<p>In some cases, declaring your PHP memory limit manually won\u2019t work because you don\u2019t have the necessary permissions to change that value. If you can\u2019t adjust your WordPress memory size manually, that leaves you with one other option.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-2-upgrade-your-website-s-hosting-plan\"><span style=\"font-weight: bold;\">2. Upgrade Your Website\u2019s Hosting Plan<\/span><\/h3>\n\n\n\n<p>Typically, if you use a decent WordPress hosting provider, you won\u2019t need to worry about increasing your PHP memory limit. One caveat is that if you\u2019re <span style=\"text-decoration: underline;\"><a href=\"https:\/\/www.dreamhost.com\/blog\/what-is-shared-hosting\/\">using shared hosting<\/a><\/span>, you\u2019ll likely face limited resources. So if you\u2019re encountering this error, it might be time to upgrade to a better hosting plan.<\/p>\n\n\n\n<p><span style=\"text-decoration: underline;\"><a href=\"https:\/\/www.dreamhost.com\/blog\/when-to-upgrade-your-hosting-plan\/\">Upgrading your hosting package<\/a><\/span>&nbsp;will usually result in an increase in available PHP memory. That means you\u2019re much less likely to run into a WordPress memory limit error. The only limiting factor is your budget.<\/p>\n\n\n\n<p>If you can\u2019t upgrade hosting plans right now, it might be worth contacting your provider\u2019s support team and seeing if they can increase your PHP memory limit on their end. If they can\u2019t, it might be time to <span style=\"text-decoration: underline;\"><a href=\"https:\/\/www.dreamhost.com\/wordpress\/\">switch to a better WordPress host<\/a><\/span>&nbsp;that offers high PHP memory limits on affordable plans.<\/p>\n\n\n\n\n\n<div\n\tclass=\"article-cta-shared article-cta-small\"\n>\n    <div class=\"tr-img-wrap-outer jsLoading\"><img decoding=\"async\" class=\"js-img-lazy \" src=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/themes\/blog2018\/assets\/img\/lazy-loading-transparent.webp\" data-srcset=\"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/themes\/blog2018\/assets\/img\/article-small-ad-cta-placeholder.webp 1x, https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/themes\/blog2018\/assets\/img\/article-small-ad-cta-placeholder-x2.webp 2x\"  alt=\"Ad background image\" \/><\/div>\n\n\n\n\n  <div class=\"content-btm\">\n    <h2\n      class=\"h2--md\"\n    >\n      Skip the Stress\n    <\/h2>\n    <p\n      class=\"p--md\"\n    >\n      Avoid troubleshooting when you sign up for DreamPress. Our friendly WordPress experts are available 24\/7 to help solve website problems \u2014 big or small.\n    <\/p>\n\n            <a\n            href=\"https:\/\/www.dreamhost.com\/wordpress\/\"\n                        class=\"btn btn--white-outline btn--sm btn--round\"\n                                    target=\"_blank\"\n            rel=\"noopener noreferrer\"\n            >\n                            Check Out Plans                    <\/a>\n\n  <\/div>\n<\/div>\n\n\n<h2 id=\"h-want-more-wordpress-error-tips\" class=\"wp-block-heading\"><strong>Want More WordPress Error Tips?<\/strong><\/h2>\n\n\n\n<p>Once you increase PHP memory on your WordPress website, we can help tackle <a href=\"https:\/\/www.dreamhost.com\/blog\/how-to-fix-wordpress-image-upload-issues\/\">other issues<\/a>. We&#8217;ve put together several tutorials to help you troubleshoot every error message:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><span style=\"text-decoration: underline;\"><a href=\"https:\/\/www.dreamhost.com\/blog\/common-wordpress-errors\/\">How to Fix Common WordPress Errors<\/a><\/span><\/li>\n\n\n\n<li><span style=\"text-decoration: underline;\"><a href=\"https:\/\/www.dreamhost.com\/blog\/troubleshooting-wordpress-white-screen-death\/\">How to Troubleshoot the WordPress White Screen of Death (WSoD)<\/a><\/span><\/li>\n\n\n\n<li><span style=\"text-decoration: underline;\"><a href=\"https:\/\/www.dreamhost.com\/blog\/how-to-fix-wordpress-internal-server-error\/\">How to Fix the 500 Internal Server Error in WordPress<\/a><\/span><\/li>\n\n\n\n<li><span style=\"text-decoration: underline;\"><a href=\"https:\/\/www.dreamhost.com\/blog\/how-to-fix-syntax-errors-wordpress\/\">How to Fix Syntax Errors in WordPress<\/a><\/span><\/li>\n\n\n\n<li><span style=\"text-decoration: underline;\"><a href=\"https:\/\/www.dreamhost.com\/blog\/how-to-fix-wordpress-not-sending-email\/\">How to Fix the WordPress Not Sending Email Issue<\/a><\/span><\/li>\n\n\n\n<li><span style=\"text-decoration: underline;\"><a href=\"https:\/\/www.dreamhost.com\/blog\/how-to-fix-wordpress-database-connection-error\/\">How to Fix the Error Establishing Database Connection in WordPress<\/a><\/span><\/li>\n\n\n\n<li><span style=\"text-decoration: underline;\"><a href=\"https:\/\/www.dreamhost.com\/blog\/how-to-fix-wordpress-404-error\/\">How to Fix WordPress Error 404 Not Found<\/a><\/span><\/li>\n\n\n\n<li><span style=\"text-decoration: underline;\"><a href=\"http:\/\/dreamhost.com\/blog\/how-to-fix-white-text-missing-buttons-wordpress\">How to Fix White Text and Missing Buttons in WordPress Visual Editor<\/a><\/span><\/li>\n\n\n\n<li><span style=\"text-decoration: underline;\"><a href=\"http:\/\/dreamhost.com\/blog\/wordpress-sidebar-below-content-error\/\">How to Fix the Sidebar Below Content Error in WordPress (In 3 Steps)<\/a><\/span><\/li>\n\n\n\n<li><span style=\"text-decoration: underline;\"><a href=\"https:\/\/www.dreamhost.com\/blog\/what-to-do-when-locked-out-wordpress\/\">What to Do When You\u2019re Locked Out of the WordPress Admin Area<\/a><\/span><\/li>\n\n\n\n<li><span style=\"text-decoration: underline;\"><a href=\"https:\/\/www.dreamhost.com\/blog\/how-to-fix-wordpress-login-page-redirect-issue\/\">How to Fix the WordPress Login Page Refreshing and Redirecting Issue<\/a><\/span><\/li>\n<\/ul>\n\n\n\n<p>Want more information on WordPress site management? Check out our<a href=\"https:\/\/www.dreamhost.com\/wordpress\/tutorials\/\">&nbsp;<\/a><span style=\"text-decoration: underline;\"><a href=\"https:\/\/www.dreamhost.com\/wordpress\/tutorials\/\">WordPress Tutorials<\/a><\/span>, a collection of guides designed to help you navigate the WordPress dashboard like an expert.<\/p>\n\n\n\n<h2 id=\"h-increasing-php-memory-limit\" class=\"wp-block-heading\"><strong>Increasing PHP Memory Limit<\/strong><\/h2>\n\n\n\n<p>Running into a <a href=\"https:\/\/www.dreamhost.com\/blog\/fix-wordpress-fatal-error-maximum-execution-time-exceeded\/\">PHP fatal error<\/a> can be worrying, but it\u2019s not necessarily a cause for concern. Learning how to increase your PHP memory limit is relatively simple if you don\u2019t mind using an SFTP client and adding a single line of code to one of WordPress\u2019 core files.<\/p>\n\n\n\n<p>The alternative is to upgrade your hosting plan or opt for a better provider. Most WordPress-friendly hosting options offer high limits by default, so you\u2019ll never run into a PHP memory exhausted error ever again.<\/p>\n\n\n\n<p>If you\u2019re ready to use a web host optimized for WordPress websites, check out our <span style=\"text-decoration: underline;\"><a href=\"https:\/\/www.dreamhost.com\/wordpress\/\">DreamPress hosting packages<\/a><\/span>! We offer optimized WordPress setups, so you spend less time troubleshooting errors and more time working on your website.<\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>As you may know, WordPress is built using PHP. This programming language is incredibly flexible, but it also has a few drawbacks. For example, if you don\u2019t allocate enough memory for your WordPress installation, you might start running into the occasional \u201cPHP Memory Exhausted\u201d error. In a nutshell, this error means your server isn\u2019t allocating [&hellip;]<\/p>\n","protected":false},"author":1056,"featured_media":30504,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_yoast_wpseo_metadesc":"A low PHP memory limit can severely impact your WordPress website\u2019s functionality and result in a \u201cPHP Memory Exhausted\u201d error. Learn how to increase your limit in this tutorial.","toc_headlines":"[[\"h-why-you-re-seeing-a-wordpress-memory-limit-error-on-your-site\",\"<span style=\\\"font-weight: bold;\\\">Why You\u2019re Seeing a WordPress Memory Limit Error on Your Site<\/span>\"],[\"h-how-to-resolve-the-wordpress-memory-limit-error-2-methods\",\"<span style=\\\"font-weight: bold;\\\">How to Resolve the WordPress Memory Limit Error (2 Methods)<\/span>\"],[\"h-want-more-wordpress-error-tips\",\"<strong>Want More WordPress Error Tips?<\/strong>\"],[\"h-increasing-php-memory-limit\",\"<strong>Increasing PHP Memory Limit<\/strong>\"]]","hide_toc":false,"footnotes":""},"categories":[13127,550,696],"tags":[],"class_list":["post-30501","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-errors-troubleshooting","category-tutorials","category-wordpress"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v26.3 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Fix the WordPress Memory Limit Error on Your Site - DreamHost<\/title>\n<meta name=\"description\" content=\"A low PHP memory limit can severely impact your WordPress website\u2019s functionality and result in a \u201cPHP Memory Exhausted\u201d error. Learn how to increase your limit in this tutorial.\" \/>\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-dev.dreamhost.com\/blog\/how-to-fix-wordpress-memory-limit-error\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Fix the WordPress Memory Exhausted Error by Increasing Your Site\u2019s PHP Memory Limit\" \/>\n<meta property=\"og:description\" content=\"A low PHP memory limit can severely impact your WordPress website\u2019s functionality and result in a \u201cPHP Memory Exhausted\u201d error. Learn how to increase your limit in this tutorial.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www-dev.dreamhost.com\/blog\/how-to-fix-wordpress-memory-limit-error\/\" \/>\n<meta property=\"og:site_name\" content=\"DreamHost Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/DreamHost\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-04-21T14:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-05-22T07:00:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2021\/04\/fix-memory-limit-issue.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"900\" \/>\n\t<meta property=\"og:image:height\" content=\"598\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Natasha K\u00f6stlin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@dreamhost\" \/>\n<meta name=\"twitter:site\" content=\"@dreamhost\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Natasha K\u00f6stlin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Fix the WordPress Memory Limit Error on Your Site - DreamHost","description":"A low PHP memory limit can severely impact your WordPress website\u2019s functionality and result in a \u201cPHP Memory Exhausted\u201d error. Learn how to increase your limit in this tutorial.","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-dev.dreamhost.com\/blog\/how-to-fix-wordpress-memory-limit-error\/","og_locale":"en_US","og_type":"article","og_title":"How To Fix the WordPress Memory Exhausted Error by Increasing Your Site\u2019s PHP Memory Limit","og_description":"A low PHP memory limit can severely impact your WordPress website\u2019s functionality and result in a \u201cPHP Memory Exhausted\u201d error. Learn how to increase your limit in this tutorial.","og_url":"https:\/\/www-dev.dreamhost.com\/blog\/how-to-fix-wordpress-memory-limit-error\/","og_site_name":"DreamHost Blog","article_publisher":"https:\/\/www.facebook.com\/DreamHost\/","article_published_time":"2021-04-21T14:00:00+00:00","article_modified_time":"2025-05-22T07:00:37+00:00","og_image":[{"width":900,"height":598,"url":"https:\/\/www.dreamhost.com\/blog\/wp-content\/uploads\/2021\/04\/fix-memory-limit-issue.jpg","type":"image\/jpeg"}],"author":"Natasha K\u00f6stlin","twitter_card":"summary_large_image","twitter_creator":"@dreamhost","twitter_site":"@dreamhost","twitter_misc":{"Written by":"Natasha K\u00f6stlin","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www-dev.dreamhost.com\/blog\/how-to-fix-wordpress-memory-limit-error\/#article","isPartOf":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/how-to-fix-wordpress-memory-limit-error\/"},"author":{"name":"Natasha K\u00f6stlin","@id":"https:\/\/www-dev.dreamhost.com\/blog\/#\/schema\/person\/a11265c416f588308d99b3c978da2448"},"headline":"How To Fix the WordPress Memory Exhausted Error by Increasing Your Site\u2019s PHP Memory Limit","datePublished":"2021-04-21T14:00:00+00:00","dateModified":"2025-05-22T07:00:37+00:00","mainEntityOfPage":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/how-to-fix-wordpress-memory-limit-error\/"},"wordCount":1314,"publisher":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/#organization"},"image":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/how-to-fix-wordpress-memory-limit-error\/#primaryimage"},"thumbnailUrl":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2021\/04\/fix-memory-limit-issue.jpg","articleSection":["Errors &amp; Troubleshooting","Tutorials","WordPress"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www-dev.dreamhost.com\/blog\/how-to-fix-wordpress-memory-limit-error\/","url":"https:\/\/www-dev.dreamhost.com\/blog\/how-to-fix-wordpress-memory-limit-error\/","name":"How to Fix the WordPress Memory Limit Error on Your Site - DreamHost","isPartOf":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/how-to-fix-wordpress-memory-limit-error\/#primaryimage"},"image":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/how-to-fix-wordpress-memory-limit-error\/#primaryimage"},"thumbnailUrl":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2021\/04\/fix-memory-limit-issue.jpg","datePublished":"2021-04-21T14:00:00+00:00","dateModified":"2025-05-22T07:00:37+00:00","description":"A low PHP memory limit can severely impact your WordPress website\u2019s functionality and result in a \u201cPHP Memory Exhausted\u201d error. Learn how to increase your limit in this tutorial.","breadcrumb":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/how-to-fix-wordpress-memory-limit-error\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www-dev.dreamhost.com\/blog\/how-to-fix-wordpress-memory-limit-error\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www-dev.dreamhost.com\/blog\/how-to-fix-wordpress-memory-limit-error\/#primaryimage","url":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2021\/04\/fix-memory-limit-issue.jpg","contentUrl":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2021\/04\/fix-memory-limit-issue.jpg","width":900,"height":598},{"@type":"BreadcrumbList","@id":"https:\/\/www-dev.dreamhost.com\/blog\/how-to-fix-wordpress-memory-limit-error\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dhblog.dream.press\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Fix the WordPress Memory Exhausted Error by Increasing Your Site\u2019s PHP Memory Limit"}]},{"@type":"WebSite","@id":"https:\/\/www-dev.dreamhost.com\/blog\/#website","url":"https:\/\/www-dev.dreamhost.com\/blog\/","name":"DreamHost Blog","description":"","publisher":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www-dev.dreamhost.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www-dev.dreamhost.com\/blog\/#organization","name":"DreamHost","url":"https:\/\/www-dev.dreamhost.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www-dev.dreamhost.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/dhblog.dream.press\/blog\/wp-content\/uploads\/2019\/01\/dh_logo-blue-2.png","contentUrl":"https:\/\/dhblog.dream.press\/blog\/wp-content\/uploads\/2019\/01\/dh_logo-blue-2.png","width":1200,"height":168,"caption":"DreamHost"},"image":{"@id":"https:\/\/www-dev.dreamhost.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DreamHost\/","https:\/\/x.com\/dreamhost","https:\/\/www.instagram.com\/dreamhost\/","https:\/\/www.linkedin.com\/company\/dreamhost\/","https:\/\/www.youtube.com\/user\/dreamhostusa"]},{"@type":"Person","@id":"https:\/\/www-dev.dreamhost.com\/blog\/#\/schema\/person\/a11265c416f588308d99b3c978da2448","name":"Natasha K\u00f6stlin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2020\/10\/Natasha-bio-pic-150x150.jpg","url":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2020\/10\/Natasha-bio-pic-150x150.jpg","contentUrl":"https:\/\/www-dev.dreamhost.com\/blog\/wp-content\/uploads\/2020\/10\/Natasha-bio-pic-150x150.jpg","caption":"Natasha K\u00f6stlin"},"description":"After joining the DreamHost team in 2018, Natasha discovered her talent for helping people achieve website success. Her superpower: a warm, energetic attitude! As a key player in DreamHost\u2019s international marketing efforts, Natasha is excited to help readers across the world build and grow an online presence.","url":"https:\/\/www-dev.dreamhost.com\/blog\/author\/natashakostlin\/"}]}},"lang":"en","translations":{"en":30501,"es":30506,"de":52234,"pl":53799,"pt":53834,"ru":53843,"uk":53882,"it":69046,"fr":71683,"nl":71711},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts\/30501","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/users\/1056"}],"replies":[{"embeddable":true,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/comments?post=30501"}],"version-history":[{"count":10,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts\/30501\/revisions"}],"predecessor-version":[{"id":61583,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/posts\/30501\/revisions\/61583"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/media\/30504"}],"wp:attachment":[{"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/media?parent=30501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/categories?post=30501"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www-dev.dreamhost.com\/blog\/wp-json\/wp\/v2\/tags?post=30501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}