How to Increase Wordpress Memory Limit
Updated: November 21, 2020
There are various reasons why you might want to increase the PHP memory limit of your WordPress website, and there are different methods to accomplish this.
The most common reason is when your website is using more memory than it's allocated memory limit. These errors include the 500 internal server error and the Wordpress white screen.
You might just simply need to increase your PHP memory limit to a number that is much better suited for your developing Wordpress site.
The default memory limit for WordPress is 32 MB.
This guide will show you how to increase the Wordpress memory limit.
Log into your cPanel Account.
Scroll down to * Files * section and click on the * File Manager * icon.
Navigate to the root folder of your domain. Select wp-config.php file and click Edit.
Add the following code right before the /* That's all, stop editing! Happy blogging. */' line.
define( 'WP_MEMORY_LIMIT', '512M' );
Click Save when finished.