{"id":13430,"date":"2026-06-17T06:03:22","date_gmt":"2026-06-17T06:03:22","guid":{"rendered":"https:\/\/www.webystrata.co.uk\/blog\/update-wordpress-memory-limit-from-cpanel\/"},"modified":"2026-06-17T06:09:43","modified_gmt":"2026-06-17T06:09:43","slug":"update-wordpress-memory-limit-from-cpanel","status":"publish","type":"post","link":"https:\/\/www.webystrata.co.uk\/blog\/update-wordpress-memory-limit-from-cpanel\/","title":{"rendered":"How to Update WordPress Memory Limit from cPanel"},"content":{"rendered":"<h1>How to Update WordPress Memory Limit from cPanel<\/h1>\n<p>WordPress is one of the most powerful and widely used content management systems available today. However, as your website grows with additional plugins, themes, media files, and visitors, it may begin consuming more server resources. One common issue WordPress users encounter is the <strong>&#8220;Allowed memory size exhausted&#8221;<\/strong> error.<\/p>\n<p>This error indicates that WordPress has reached the maximum amount of PHP memory allocated by your hosting environment. When this happens, certain website functions may stop working, plugins may fail to load, updates may not complete successfully, and visitors may experience slow page loading times.<\/p>\n<p>Fortunately, if your website is hosted on a cPanel server, increasing the WordPress memory limit is a straightforward process. By making a simple modification to your WordPress configuration file, you can provide your website with additional memory and improve its performance.<\/p>\n<p>In this guide, we&#8217;ll explain what the WordPress memory limit is, why it matters, and how to Update WordPress memory limit from cPanel.<\/p>\n<h2>What is the WordPress Memory Limit?<\/h2>\n<p>The WordPress memory limit determines the maximum amount of memory that PHP scripts can consume while executing WordPress processes. Every WordPress website relies on PHP to run its themes, plugins, database interactions, and core functionalities.<\/p>\n<p>By default, many hosting providers set a conservative memory limit to prevent a single website from consuming excessive server resources. However, modern WordPress websites often require more memory, especially if they use:<\/p>\n<ul>\n<li>WooCommerce<\/li>\n<li>Page builders<\/li>\n<li>Membership plugins<\/li>\n<li>Backup tools<\/li>\n<li>Security plugins<\/li>\n<li>Large media libraries<\/li>\n<li>Custom themes<\/li>\n<\/ul>\n<p>When the allocated memory becomes insufficient, WordPress displays memory-related errors and performance issues. Now let&#8217;s see the Steps that how to Update WordPress memory limit from cPanel.<\/p>\n<h2>How to Update WordPress Memory Limit from cPanel<\/h2>\n<p>Follow the steps below to\u00a0 Update WordPress memory limit from cPanel .<\/p>\n<h3 data-section-id=\"1xfbx8e\" data-start=\"0\" data-end=\"98\">Step 1: Login to cPanel from WebyStrata Client Area<\/h3>\n<p data-start=\"446\" data-end=\"570\">First, visit the WebyStrata website and log in to your client area account using your registered email address and password.<\/p>\n<p data-start=\"446\" data-end=\"570\">official Website <a href=\"https:\/\/www.webystrata.com\" target=\"_blank\" rel=\"noopener\">www.webystrata.com<\/a><\/p>\n<p data-start=\"291\" data-end=\"308\"><span style=\"color: #000000\">After logging in:<\/span><\/p>\n<ol data-start=\"310\" data-end=\"429\">\n<li data-section-id=\"ygoy3r\" data-start=\"310\" data-end=\"331\"><span style=\"color: #000000\">Go to <strong data-start=\"319\" data-end=\"331\">Services<\/strong><\/span><\/li>\n<li data-section-id=\"wyqca4\" data-start=\"332\" data-end=\"359\"><span style=\"color: #000000\">Click on <strong data-start=\"344\" data-end=\"359\">My Services<\/strong><\/span><\/li>\n<li data-section-id=\"8kxumo\" data-start=\"360\" data-end=\"397\"><span style=\"color: #000000\">Select your active hosting service<\/span><\/li>\n<li data-section-id=\"4ekbul\" data-start=\"398\" data-end=\"429\"><span style=\"color: #000000\">Click on <strong data-start=\"410\" data-end=\"429\">Login to cPanel<\/strong><\/span><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><img fetchpriority=\"high\" decoding=\"async\" class=\"alignnone wp-image-13303 size-full\" title=\"How to Update WordPress Memory Limit from cPanel\" src=\"https:\/\/www.webystrata.co.uk\/blog\/wp-content\/uploads\/2026\/06\/login-into-cpanel-10.webp\" alt=\"how-to-update-wordpress-memory-limit-from-cpanel\n\nFirst, visit the WebyStrata website and log in to your client area account using your registered email address and password.\n\nofficial Website www.webystrata.com\n\nAfter logging in:\n\nGo to Services\nClick on My Services\nselect-your-active-hosting-service-click-on-login-to -panel\" width=\"1902\" height=\"957\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>Step 2: Open File Manager<\/h3>\n<p>Locate the <strong>Files<\/strong> section within cPanel.<\/p>\n<p>Click on <strong>File Manager<\/strong> to access your website files.<\/p>\n<p>File Manager allows you to edit website files directly without using FTP software.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-13304\" src=\"https:\/\/www.webystrata.co.uk\/blog\/wp-content\/uploads\/2026\/06\/files-filemanager-3.webp\" alt=\"how-to-update-wordpress-memory-limit-from-cpanel\" width=\"1917\" height=\"906\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>Step 3: Navigate to Your WordPress Installation Directory<\/h3>\n<p>Open the directory where WordPress is installed.<\/p>\n<p>Common locations include:<\/p>\n<ul>\n<li><code>public_html<\/code> for your primary domain\u00a0 <span style=\"color: #000000\">then click on folder\u00a0\u00a0<strong>wp\u00a0<\/strong>\u00a0 in which all the files will stored in it<\/span><\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-13305\" src=\"https:\/\/www.webystrata.co.uk\/blog\/wp-content\/uploads\/2026\/06\/pub-wp.webp\" alt=\"how-to-update-wordpress-memory-limit-from-cpanel\" width=\"1918\" height=\"898\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>locate the file named :<\/li>\n<\/ul>\n<p><code>wp-config.php<\/code><\/p>\n<p>This file contains important WordPress configuration settings.<\/p>\n<h3>Step 4: Edit the wp-config.php File<\/h3>\n<p>Select the <strong>wp-config.php<\/strong> file.<\/p>\n<p>Click <strong>Edit<\/strong> from the File Manager toolbar.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13306\" src=\"https:\/\/www.webystrata.co.uk\/blog\/wp-content\/uploads\/2026\/06\/edit-3.webp\" alt=\"how-to-update-wordpress-memory-limit-from-cpanel\" width=\"1917\" height=\"912\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>A popup may appear asking you to confirm the file encoding. Simply click <strong>Edit<\/strong> again to proceed.<\/p>\n<p>The file editor will open and display the contents of the configuration file.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13307\" src=\"https:\/\/www.webystrata.co.uk\/blog\/wp-content\/uploads\/2026\/06\/edit2-3.webp\" alt=\"how-to-update-wordpress-memory-limit-from-cpanel\" width=\"1918\" height=\"907\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>Step 5: Add the WordPress Memory Limit Code<\/h3>\n<p>Scroll down until you find the following line:<\/p>\n<pre><code class=\"language-php\">\/* That's all, stop editing! Happy blogging. *\/\r\n<\/code><\/pre>\n<p>Immediately above this line, add:<\/p>\n<pre><code class=\"language-php\">define('WP_MEMORY_LIMIT', '256M');\r\n<\/code><\/pre>\n<p>The section should now appear similar to:<\/p>\n<pre><code class=\"language-php\">define('WP_MEMORY_LIMIT', '256M');\r\n\r\n\/* That's all, stop editing! Happy blogging. *\/\r\n<\/code><\/pre>\n<p>You can replace <strong>256M<\/strong> with another value if your hosting plan supports it.<\/p>\n<p>Common values include:<\/p>\n<ul>\n<li>128M<\/li>\n<li>256M<\/li>\n<li>512M<\/li>\n<\/ul>\n<p>For most WordPress websites, <strong>256M<\/strong> provides sufficient memory.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13308\" src=\"https:\/\/www.webystrata.co.uk\/blog\/wp-content\/uploads\/2026\/06\/line.webp\" alt=\"how-to-update-wordpress-memory-limit-from-cpanel\" width=\"1918\" height=\"911\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>Step 6: Save Changes<\/h3>\n<p>After adding the code, click the <strong>Save Changes<\/strong> button.<\/p>\n<p>A success message should appear confirming that the file has been updated.<\/p>\n<p>Your WordPress memory limit has now been increased.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13309\" src=\"https:\/\/www.webystrata.co.uk\/blog\/wp-content\/uploads\/2026\/06\/save-8.webp\" alt=\"how-to-update-wordpress-memory-limit-from-cpanel\" width=\"1918\" height=\"911\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>Verify the New Memory Limit<\/h3>\n<p>After saving the changes, it&#8217;s a good idea to confirm that WordPress recognizes the updated memory allocation.<\/p>\n<p>You can verify the change by:<\/p>\n<ol>\n<li>Logging in to your WordPress Dashboard.<\/li>\n<li>Navigating to <strong>Tools \u2192 Site Health<\/strong>.<\/li>\n<li>Viewing the server information section.<\/li>\n<li>Checking the PHP memory limit value.<\/li>\n<\/ol>\n<p>Alternatively, you can use a plugin that displays server and PHP configuration information.<\/p>\n<h3>What If the Memory Limit Doesn&#8217;t Change?<\/h3>\n<p>Sometimes the memory limit may remain unchanged even after editing wp-config.php.<\/p>\n<p>This usually happens because the hosting provider has imposed server-level restrictions.<\/p>\n<p>If this occurs, try the following:<\/p>\n<ul>\n<li>Update PHP Settings in cPanel<\/li>\n<li>Contact Hosting Support<\/li>\n<li>Upgrade Your Hosting Plan<\/li>\n<\/ul>\n<h2>Best Practices for Managing WordPress Memory<\/h2>\n<p>To keep your website running efficiently:<\/p>\n<ul>\n<li>Remove unused plugins and themes.<\/li>\n<li>Keep WordPress updated.<\/li>\n<li>Use lightweight plugins whenever possible.<\/li>\n<li>Optimize images before uploading.<\/li>\n<li>Clean your WordPress database regularly.<\/li>\n<li>Monitor server resource usage.<\/li>\n<li>Install only trusted plugins from reputable developers.<\/li>\n<\/ul>\n<p>These practices help reduce unnecessary memory consumption and improve overall website performance.<\/p>\n<h2>Benefits of Updating the WordPress Memory Limit<\/h2>\n<p>1. Eliminates Memory Exhaustion Errors<\/p>\n<p>2. Improves Website Speed<\/p>\n<p>3. Supports Resource-Intensive Plugins<\/p>\n<p>4. Smooth WordPress Updates<\/p>\n<p>5. Better WooCommerce Performance<\/p>\n<p>6. Enhanced User Experience<\/p>\n<p>7. Greater Website Stability<\/p>\n<h2>Conclusion<\/h2>\n<p>Memory-related errors can be frustrating, but they are often easy to fix. Update WordPress memory limit from cPanel gives your website additional resources to handle plugins, themes, updates, and visitor traffic more effectively.<\/p>\n<p>By editing the wp-config.php file and setting an appropriate memory allocation, you can eliminate common WordPress memory errors, improve site speed, and enhance overall stability. Whether you operate a personal blog, business website, or WooCommerce store, increasing the WordPress memory limit is a simple yet valuable optimization that helps ensure a smooth and reliable user experience.<\/p>\n<p class=\"ws-crosspost-source\">Originally published on <a href=\"https:\/\/www.webystrata.com\/blog\/update-wordpress-memory-limit-from-cpanel\/\" target=\"_blank\" rel=\"noopener\">WebyStrata.com Blog<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Update WordPress Memory Limit from cPanel WordPress is one of the most powerful and widely used content management systems available today. However, as your website grows with additional plugins, themes, media files, and visitors, it may begin consuming more server resources. One common issue WordPress users encounter is the &#8220;Allowed memory size exhausted&#8221; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":13439,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,1,10],"tags":[],"class_list":["post-13430","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel","category-latest-updates","category-wordpress"],"_links":{"self":[{"href":"https:\/\/www.webystrata.co.uk\/blog\/wp-json\/wp\/v2\/posts\/13430","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webystrata.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webystrata.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webystrata.co.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webystrata.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=13430"}],"version-history":[{"count":3,"href":"https:\/\/www.webystrata.co.uk\/blog\/wp-json\/wp\/v2\/posts\/13430\/revisions"}],"predecessor-version":[{"id":13441,"href":"https:\/\/www.webystrata.co.uk\/blog\/wp-json\/wp\/v2\/posts\/13430\/revisions\/13441"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webystrata.co.uk\/blog\/wp-json\/wp\/v2\/media\/13439"}],"wp:attachment":[{"href":"https:\/\/www.webystrata.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=13430"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webystrata.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=13430"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webystrata.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=13430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}