Home Blog

How to increase the WP Memory Limit?

0

The WordPress memory limit’s default value is 256 MB on almost all 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 only edit the value in the quotes and set it to its desired value.