{"id":9614,"date":"2026-06-03T07:33:26","date_gmt":"2026-06-03T05:33:26","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=9614"},"modified":"2026-06-08T09:34:36","modified_gmt":"2026-06-08T07:34:36","slug":"cum-se-mareste-limita-de-memorie-in-wordpress-folosind-fisierul-php-wp-config-php","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-increase-the-wordpress-memory-limit-using-the-wp-config-php-file\/","title":{"rendered":"Cum s\u0103 m\u0103ri\u021bi limita de memorie WordPress utiliz\u00e2nd fi\u0219ierul wp-config.php"},"content":{"rendered":"<div class=\"translation-block translation-block-merged\">\n<p class=\"wp-block-paragraph\">WordPress and some plugins may require more PHP memory than the default configuration provides. In some situations, even if the memory limit has been increased at the server level, a plugin or theme may still report that the available memory is too low.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In such cases, you can define the memory limit directly within the WordPress configuration file.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-increase-the-wordpress-memory-limit-using-the-wp-config-php-file\/#Before_You_Begin\" >Before You Begin<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-increase-the-wordpress-memory-limit-using-the-wp-config-php-file\/#Step_1_Locate_the_wp-configphp_File\" >Step 1: Locate the wp-config.php File<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-increase-the-wordpress-memory-limit-using-the-wp-config-php-file\/#Step_2_Edit_the_Configuration_File\" >Step 2: Edit the Configuration File<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-increase-the-wordpress-memory-limit-using-the-wp-config-php-file\/#Example\" >Example<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-increase-the-wordpress-memory-limit-using-the-wp-config-php-file\/#Available_Memory_Values\" >Available Memory Values<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-increase-the-wordpress-memory-limit-using-the-wp-config-php-file\/#Verifying_the_Change\" >Verifying the Change<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-increase-the-wordpress-memory-limit-using-the-wp-config-php-file\/#Common_Use_Cases\" >Common Use Cases<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-increase-the-wordpress-memory-limit-using-the-wp-config-php-file\/#Important_Notes\" >Important Notes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/how-to-increase-the-wordpress-memory-limit-using-the-wp-config-php-file\/#Summary\" >Summary<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Before_You_Begin\"><\/span>Before You Begin<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<\/div>\n\n<div id=\"mybox-1976258071\" class=\"mybox-content mybox-entity-placement\"><div class=\"early-access-banner-inpost\">\r\n  <div class=\"banner-left-inpost\">\r\n    <div class=\"icon-box-inpost\">\r\n      <img decoding=\"async\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2026\/02\/square-info-icon.svg\" alt=\"Info\">\r\n    <\/div>\r\n    <div class=\"text-box-inpost\">\r\n      <span class=\"label-inpost\"><span class=\"translation-block translation-block-banner-text\">Acces timpuriu<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Mai ave\u021bi nevoie de ajutor?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contacta\u021bi echipa noastr\u0103 de servicii pentru clien\u021bi.<\/span><\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"banner-right-inpost\">\r\n    <a href=\"https:\/\/panel.mybox.com\/helpdesk2\/v\/list\/\" class=\"banner-button-inpost\"><span class=\"translation-block translation-block-banner-text\">Trimite mesaj<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\">The preferred way to modify PHP limits is through the server configuration (for example, using the <code>.htaccess<\/code> file).<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">However, if WordPress or a plugin does not detect the updated value, you can additionally set the memory limit in the <code>wp-config.php<\/code> file.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_1_Locate_the_wp-configphp_File\"><\/span>Step 1: Locate the <code>wp-config.php<\/code> File<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Connect to your website using FTP.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Navigate to your WordPress installation directory, typically:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>public_html<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Locate the file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>wp-config.php<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step_2_Edit_the_Configuration_File\"><\/span>Step 2: Edit the Configuration File<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Open the <code>wp-config.php<\/code> file for editing.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Find the line:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/* That's all, stop editing! Happy publishing. *\/<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Add the following code above it:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define( 'WP_MEMORY_LIMIT', '256M' );<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Example\"><\/span>Example<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Your configuration may look like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define( 'WP_MEMORY_LIMIT', '256M' );<br><br>\/* That's all, stop editing! Happy publishing. *\/<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Available_Memory_Values\"><\/span>Available Memory Values<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You can adjust the value based on your website&#8217;s requirements.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Examples:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define( 'WP_MEMORY_LIMIT', '128M' );<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>define( 'WP_MEMORY_LIMIT', '256M' );<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>define( 'WP_MEMORY_LIMIT', '512M' );<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Note:<\/strong> The maximum usable value may still be limited by the PHP configuration on the hosting server.<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Verifying_the_Change\"><\/span>Verifying the Change<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">After saving the file:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to the WordPress administration panel.<\/li>\n\n\n\n<li>Check the plugin or theme that previously reported a memory issue.<\/li>\n\n\n\n<li>Verify whether the warning has disappeared.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">You can also use diagnostic plugins such as <strong>Site Health<\/strong> or <strong>WP Server Info<\/strong> to confirm the current memory limit detected by WordPress.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Common_Use_Cases\"><\/span>Common Use Cases<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Increasing the WordPress memory limit can help resolve issues related to:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Large backups and migrations<\/li>\n\n\n\n<li>Page builders<\/li>\n\n\n\n<li>WooCommerce stores<\/li>\n\n\n\n<li>Import\/export tools<\/li>\n\n\n\n<li>Image optimization plugins<\/li>\n\n\n\n<li>Resource-intensive themes and plugins<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Important_Notes\"><\/span>Important Notes<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Always create a backup of <code>wp-config.php<\/code> before making changes.<\/li>\n\n\n\n<li>Incorrect modifications to the file may cause your website to stop working.<\/li>\n\n\n\n<li>If increasing the value in <code>wp-config.php<\/code> has no effect, the server&#8217;s PHP memory limit may be lower than the value you specified.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If WordPress or a plugin reports insufficient memory, you can increase the WordPress memory limit by adding the following line to the <code>wp-config.php<\/code> file:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define( 'WP_MEMORY_LIMIT', '256M' );<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This instructs WordPress to use up to 256 MB of memory, provided the server configuration allows it. For best results, ensure that the PHP memory limit configured on the hosting account is equal to or higher than the value specified in <code>wp-config.php<\/code>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[58],"manual_kb_tag":[5112,5113,190,638,718,1292,3456,3457,5110,5111],"class_list":["post-9614","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-web-applications-cms","manual_kb_tag-increase-php-memory","manual_kb_tag-site-health","manual_kb_tag-wordpress","manual_kb_tag-wp-config-file","manual_kb_tag-htaccess-file","manual_kb_tag-server-configuration","manual_kb_tag-php-memory-limit","manual_kb_tag-increase-memory-limit","manual_kb_tag-memory-limit","manual_kb_tag-plugin-memory-error"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/9614","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":3,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/9614\/revisions"}],"predecessor-version":[{"id":9615,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/9614\/revisions\/9615"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/media?parent=9614"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manualknowledgebasecat?post=9614"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb_tag?post=9614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}