Tag: memory limit
How To Increase PHP Memory Limit
by swicknire 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