Are you experiencing the “Allowed memory size of 8388608 bytes exhausted” php error message? This error message is due to previous functional PHP script that consumed the default 8MB memory limit. One of the reason being poorly coded php script, causing the server to crash. It is always advisable to reduce the memory footprint than to increase the memory limit.

To change the memory limit for one specific script by including a line such as this at the top of the script:
- ini_set(“memory_limit”,”12M”);
Now the memory limit is set at 12MB, if that doesn’t work, keep on increasing the memory limit. Do note that this is not a long term solution. To make permanent changes to all PHP scripts running on the server, add the following line to your server’s php.ini (requires SSH login)
- memory_limit = 12M
Again, this is a short term solution unless you have a really powerful server with lots of memory to spare. However, some software or scripts are run infrequently and require lots of memory like importing and processing a huge data file such as your MySQL backup file.
If you’re unfamiliar with Linux command, use WinSCP, this is a free and user friendly windows SSH client.
Next Part: One Or More Files Exceed The File System Limit Size Torrent Error
![]() |
Top 5 Similar Articles:
Wordpress Cloud Tags:
- Error: PHP Variable memory_limit is 8388608
- Fatal error: Allowed memory size
- pear install xml_feed_parser allowed memory exhausted error


