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.
This is safe to do on production sites.
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:
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:
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:
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.