How to increase wordpress memory limit?

wordpress memory limit

Increase the WordPress Memory Limit and PHP Memory Limit

There are several methods to increase wp menory limit and php memory limit.

Connect to your website File Manger using FTP client or through cpanel access

Create php.ini or .users.ini

Create a php.ini (or .users.ini) and add below code:

max_execution_time 300
memory_limit 128M
post_max_size 128M
upload_max_filesize 128M

Edit wp-config.php

define(‘WP_MEMORY_LIMIT’, ’64M’);
define(‘WP_MAX_MEMORY_LIMIT’, ‘128M’);

Edit .htaccess

php_value memory_limit 256M

Contact Your Host

If you are not sure how to do any one the above updates, contact your hosting provider to increase these values for you.

Feel free to get in touch if you have any questions here.