1. Home
  2. Hosting & Servers
  3. Dedicated Server
  4. How to increase WordPress memory limit
  1. Home
  2. Hosting & Servers
  3. Reseller Hosting
  4. How to increase WordPress memory limit
  1. Home
  2. Hosting & Servers
  3. Managed Wordpress Hosting
  4. How to increase WordPress memory limit
  1. Home
  2. Linux Hosting SEO
  3. How to increase WordPress memory limit
  1. Home
  2. Hosting & Servers
  3. Dedicated Server
  4. How to increase WordPress memory limit
  1. Home
  2. Hosting & Servers
  3. Reseller Hosting
  4. How to increase WordPress memory limit
  1. Home
  2. Hosting & Servers
  3. Managed Wordpress Hosting
  4. How to increase WordPress memory limit
  1. Home
  2. Linux Hosting SEO
  3. How to increase WordPress memory limit

How to increase WordPress memory limit

In order to increase WordPress memory limit follow these steps:

1. Go to cPanel Files section > File manager menu:

2. Navigate to the root folder of your domain (by default, it is public_html for the main domain and addondomain.tld for the addon domains). Select wp-config.php file and click Edit:

Add the following code right after the /* That’s all, stop editing! Happy blogging. */’ line:
define( 'WP_MEMORY_LIMIT', '512M' );

where 512 is the memory limit you want to set:


NOTE: 
it is also possible to change WP_MEMORY_LIMIT by going to wp-includes folder of the installation and editing default-constants.php file.

That’s it!

Updated on November 26, 2022

Was this article helpful?