Increasing the WordPress Memory Limit

Here you are 4 common methods used to increase the server memory limit:

1. Increase the limit via PHP.ini file


memory_limit = 512M

in it to increase the Memory Limit to 512 MB.

2. Changing the Memory Limit via wp-config.php

If you don’t want to mess with the PHP.ini file, then you can go for this method. In this, you won’t be needing to create any extra file in your Directory. Just Adding

define('WP_MEMORY_LIMIT', '512M');

in your ‘wp-config.php’ file would increase your PHP Memory Limit to 512 MB.

Or you can also add this line:


in wp-config.php file to do the same job.

3. Modifying the .htaccess file to Increase Memory Limit


php_value memory_limit 512M

in your ‘.htaccess’ file and your memory limit will increase to 512 MB.

4. Have a talk with your Host

If you are a person who is new to all these techie sounding things then, it’s better to have a Live Chat / a Call with your Host right away. It’s your right to talk to them and get the necessary changes you need as you’ve paid for it.