How to Increase WordPress Memory Limit

Written by Nika

Massive Dynamic

Updated January 01,2025

If you want to increase the WordPress memory limit, you can use one of the following methods:

 

1. Increasing memory limit through “wp-config.php”:
Please go to the root directory of WordPress and open “wp-config.php”. Then find the line that has “WP_DEBUG” and add the following code after it:

define(‘WP_MEMORY_LIMIT’, ‘128M’);

 

2. Increasing memory limit through “PHP.ini”:
Please go to the root directory of WordPress installation ( where the wp-config.php file is located ) and look for “php.ini” file ( if it’s not there, create a new one ) and add the following code:

memory_limit = 128M

 

3. Increasing memory limit through the .htaccess file.
Some servers accept “.htaccess” file modification. Please go to the root directory of WordPress installation ( where the wp-config.php file is located ). Usually, you will find that file, but if you couldn’t, please read the following StackOverflow question.
You can add following code to .htaccess file:

php_value memory_limit 128M

4. If none of those methods worked, you should contact your host administrator to increase the memory limit.

Related Articles:

  1. How to Set Styles for Single Posts in Massive Dynamic
  2. How to Set Up a Mega Menu in Massive Dynamic
  3. How to Link a Portfolio Item to an External Page in Massive Dynamic
  4. How to Add HTML and JavaScript to a Page in Massive Dynamic
  5. How to Add a Custom Shortcode to Visual Composer
  6. How to Switch a Header Menu Item to a Button in Massive Dynamic
  7. How to Add a Link to the Copyright Text in Massive Dynamic
  8. Overview of Portfolio Details in Massive Dynamic
  9. How to Switch from Child Theme to Main Theme in Massive Dynamic
  10. How to Update Massive Dynamic Theme While Using a Child Theme

If you encounter any issues during the process, our support team is available to assist you.

Hey Design Lovers !

Unlock Pixflow Max Annually
with 30% OFF
Use code "Newcomer30"

Get 30% OFF