How to increase WordPress memory limit
You can increase the memory limit by editing wp-config.php which is treated one of the most important files in WordPress installation. Here is 3 ways to increase WordPress memory limit first is using wp-config.php, second is editing PHP.ini and third is altering .htaccess file. You can choose any one of the method according to your convenience. Details of above methods are as follows:
Using wp-config.php
Edit your wp-config.php file and enter something like:
<?php
define('WP_MEMORY_LIMIT', '96M');
?> |
<?php
define('WP_MEMORY_LIMIT', '96M');
?>
Using PHP.ini
memory_limit = 64M ; Maximum amount of memory a script may consume (64MB) |
memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)
Using .htaccess file
php_value memory_limit 64M |
php_value memory_limit 64M