Xi6.org

How To Increase PHP Memory Limit

by on Feb.21, 2009, under linux/ubuntu

Ok, I’m sure that at one point or another we’ve all come across:

Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 1966080 bytes)

Or some similar number of bytes, when trying to execute various web based php scripts or applications. The easiest way to change this is to drop in a .htaccess file with the following line (in your html directory)

php_value memory_limit 32M

If you have access to your php.ini file or wish to make the change that way, just change the following line to whatever Meg of ram you want. (Try 32M)

memory_limit 16M

:, ,
No comments for this entry yet...

Leave a Reply

You must be logged in to post a comment.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...