WordPress sets the PHP memory limit to 40MB by default, which means that a single PHP script can use up to 40MB of RAM. If you need more memory to run heavier plugins, you must increase the default memory limit. This article will show you how to increase WordPress's memory limits.
To view the WordPress memory limit, follow these steps:
Click on the Info tab, and then click WordPress Constants:
The WordPress memory settings are listed WordPress Constants:
To increase WordPress memory limit, follow these steps:
On the File Manager, search for wp-config.php, and then click Go:
Right click on wp-config.php, and then click Edit to edit the wp-config. php file:
Search for the following lines in wp-config.php to change the memory allocation:
define( 'WP_MEMORY_LIMIT', '40M' );
Add the following lines in the wp-config. php file right above “That's all, stop editing! Happy publishing”:
define( 'WP_MEMORY_LIMIT', '64M' ); define( 'WP_MAX_MEMORY_LIMIT', '256M' );
Click on Save Changes to change the WP memory limits:
Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.