How to Increase PHP.ini Memory Limit
Last Updated on Tuesday, 8 March 2011 02:17 Written by Naota Tuesday, 8 March 2011 01:43
Ever receive the error message
Fatal error: Out of memory (allocated 6553600) (tried to allocate 531040 bytes) in /home/geekmontage_example/public_html/wp-includes/functions.php on line 251
Fatal error: Allowed memory size of 7888608 bytes exhausted (tried to allocate 8192 bytes) in /home/geekmontage_example/public_html/wp-includes/theme.php on line 59
I know we have. This error can stop people from being able to view your website. This problem lies within your PHP.ini file. Most PHP.ini files do not have nearly enough memory configured for modern websites. You will find that most sites have it set at 16MB, 24MB, or 32MB. A value such as 128MB would me much more plausible, especially for larger websites.
You have a couple different options here. But first you must locate your PHP.ini file.
How to locate and find the PHP.ini file
Here are some common locations that you might find your PHP.ini file.