How to Increase the WordPress Memory Limit – Fix the WordPress White Screen Error
By T.HLooking For WPPioneer Recommended Managed WordPress Web Hosting?
Increasing the WordPress Memory Limit can solve some critical problems of WordPress websites such as white screen error. To increase WordPress memory limit you have to edit the wp-config.php file located in the root folder of your WordPress website. If you don’t know what is root folder and how to access it, you have to go to the file manager of your site or you can use FTP client to edit the wp-config.php file. See the screenshot below to understand how the wp-config.php file looks like.
Now open the wp-config.php file in a text editor and add this line in it “define(‘WP_MEMORY_LIMIT’, ‘256M’);” Save the changes and upload the file again in the same folder. Make sure it’s overriding the previous file.
Or If you use the file manager of cPanel, Simply go to the root folder, Select the wp-config.php file and click Edit as HTML code. This will open the file in a new tab. Now paste the text inside the quotation “define(‘WP_MEMORY_LIMIT’, ‘256M’);” and Save it. Yes, you are done.
Other Methods of Increasing Memory Limit:
- By Editing the PHP.ini File
If you are able to access the PHP.ini file which is also located in the root folder, just edit your PHP.ini file and increase the limit to 256M where the default value is 64M. So the instruction code will be “memory_limit = 256M ;” Save the file to finish the process.
- By Editing the .htaccess File
You have to follow the same way like the wp-config.php file editing or even the PHP.ini file editing method to open or edit the .htaccess file. After opening the file .htaccess add this line in it “php_value memory_limit 256M”
You can follow any of the methods listed above but keep that in mind you don’t have to follow all the methods, only one is enough to increase WordPress memory limit. Or you can simply contact your web hosting provider to increase WordPress Memory Limit.