By default, WordPress reserves up to 40M memory for itself. Depending on the your chosen theme and the number of plugins used on your site, you can quickly run out of memory and be faced with a very slow running site.

Edit wp-config.php

To increase the amount of memory available to your WordPress installation, you will need to add the following instruction to in your wp-config.php file, located in your WordPress installation’s root directory:

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

If you are using WooCommerce on your site, we recommend increasing your memory limit to 256M, as follows:

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

Edit php.ini

When increasing the amount of memory available to your WordPress installation, please ensure that the amount of memory allocated to your server is at least or higher than what you’ve allocated to WordPress.

On most servers, the server memory limit is set to 64M or 128M. If you need to increase this limit, you’ll need to modify your server’s php.ini file, by changing the “memory_limit” setting, as follows:

memory_limit=256M

In some cases, your server configuration¬†may allow you to make this change in your “.htaccess” file, as follows:

php_value memory_limit 256M

Contact Your Hosting Support

If you’re not comfortable making these changes or if you don’t have access to some of the files, please contact your hosting support. They will have access to files and the tools necessary to make these changes within a few seconds.