Today is Wednesday, 30th October 2024
Sponsored:

How to Increase PHP.ini Memory Limit

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

5 Comments

  1. Comments  How to Increase PHP.ini Memory Limit | Geek Montage   |  Tuesday, 08 March 2011 at 1:47 PM

    […] 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 […]

  2. Comments  Troubleshooting WordPress: Common Fatal Error Messages and How to Fix Them | WordPress News at WPMU.org   |  Friday, 27 May 2011 at 12:48 PM

    […] 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, […]

  3. Comments  SFCite | Blog | Troubleshooting WordPress: Common Fatal Error Messages and How to Fix Them   |  Friday, 27 May 2011 at 1:35 PM

    […] 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. […]

  4. Comments  Anime   |  Saturday, 05 November 2011 at 8:51 PM

    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.

  5. Comments  nkuldip   |  Thursday, 06 December 2012 at 12:51 AM

    Allowed memory size of…. Need Help

Leave a Reply





Sponsored

Affiliate Articles:

Amazon Deals

Top