How to increase WP Memory Limit?

Modified on Wed, 26 Nov at 3:36 PM

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.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article