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.
/etc/php.ini
/usr/bin/php5/bin/php.ini
/etc/php5/php.ini
/etc/php/php.ini
Keep in mind you can’t necessarily see this file VIA a regular FTP client. You need a special client like Putty to view them. You can
[…] out the solution and would like to share it with you all.You can read our full guide on how to iIncrease your PHP.ini Memory Limit here. (No Ratings Yet) Loading […]
[…] comes with WordPress but is part of your hosting account. You should check out this tutorial on increasing your memory limit using php.ini. allowed memory size exhausted, call to undefined function, error message, fatal error, […]
[…] Editing your php.ini file is a bit more complicated as it’s not a file that comes with WordPress but is part of your hosting account. You should check out this tutorial on increasing your memory limit using php.ini. […]
Hey Geekmontage,
It says that the php.ini file is “Read Only”, how do I change it so I can edit it through SSH? I keep trying but can’t find anything.
Allowed memory size of…. Need Help