Home
/
WordPress
/
Configuration
/
How to increase WP Memory Limit?

How to increase WP Memory Limit?

The default value of the WordPress memory limit is set to 256 MB on all SiteGround servers. To increase it, edit the wp-config.php file of your application. You can use the Site Tools -> File Manager to open the file for editing. The file is located in the folder where you installed your WordPress application (/home/customer/www/yourdomain.com/public_html by default). Copy this line:

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

and paste it into the file, right before this one:

/* That’s all, stop editing! Happy publishing. */

You can replace the value you see in the quotes to with a new one up to 512 MB on all shared hosting accounts. On Cloud solutions, you may further increase the number.

If the line is already present in the file, you can edit the value in the quotes only and set it to its desired value.

Share This Article