How to increase Memory Limit for WordPress site

Posted in: Wordpress Hits: 77535


Fatal error: Allowed memory size of … bytes exhausted

If you got the above message when Import Demo Content. It means your WordPress installation doesn’t have enough memory to operate. Here are some solutions you can try:

Solution 1: Edit file wp-config.php

Add the following to wp-config.php
define( 'WP_MEMORY_LIMIT', '256M' );
(usually place under define(‘DB_COLLATE’, ”);)

Solution 2: Edit file .htaccess

Make sure you back up .htaccess before you edit it.
Add the following to .htaccess:
php_value memory_limit 128M

Solution 3: Edit php.ini

Add the following to php.ini:



If you’ve tried all methods and still get errors, please contact your hosting administrator to resolve this issue.

2 people found this useful.   Me too
Not Helpful