If you encounter an error message ‘Fatal error: Allowed memory size of .. bytes exhausted‘ or your wordpress site loading very slow, it could be due to the memory limit allocated do not sufficient to run the Wordpess script.
There are 3 options on how to increase the PHP memory limit (Just use either one):-
1 . Modify the following line in PHP.ini file, you may increase to 64M or 128M:-
memory_limit = 32M ;
2. Adding the following in the .htaccess file (Linux platform):-
php_value memory_limit 64M
3. Adding the following code to your wp-config.php file:-
define(‘WP_MEMORY_LIMIT’, ’64M’);
Credit to: hcode









