1. Home
  2. Knowledge Base
  3. Troubleshooting
  4. How-to increase the WordPress memory limit

There might be a situation where you need to increase the memory limit of your WordPress site.

This can be done in several ways and you have to figure out, which one works for your current hosting.

Note: Be aware that the following adjustments require advanced knowledge.

Editing wp-config.php file

In order to edit this file, you need access to your server via FTP. The file can be found directly in the root of your WordPress site.

Open the file in your favorite editor. At the very bottom, right before the line that says, “Happy Blogging”, add the following line:

1
define('WP_MEMORY_LIMIT', '256M');
WordPress memory may be handled different, that's why you need to set this in any case.

Further information can be found here.

Editing your PHP.ini file

If you have access to the PHP.ini on your server, please look for the following setting and update it as follows:

1
memory_limit = 256M;

Editing your .htaccess file

In order to edit this file, you need access to your server via FTP. The file can be found directly in the root of your WordPress site.

Open the file in your favorite editor and add the following line at the top of it:

1
php_value memory_limit 256M

Didn't work or don't want to do it on your own?

If you don't feel comfortable in trying the above methods, or the above did not work for you, you need to get in touch with your hosting company and ask them to increase your memory limit.

Was this article helpful?

Related Articles