Fatal error: Allowed memory size of 8388608 bytes exhausted

It todays Web Hosting Tutorial we are going to cover how to change your PHP file upload limit to avoind the following error:

‘Fatal error: Allowed memory size of 8388608 bytes exhausted’?

PHP has a built-in limit on the amount of memory it will allocate. If that limit is reached, the process will exit with this error message. This is usually the result of the PHP script trying to load a large file, such as an image, into memory all at once. While it is better if you can arrange for the script not to do such things, it is also possible to increase the memory limit some to avoid this problem. To do that, edit the php.ini file with your PHP scripts (create it if it does not exist) and add the following line:

memory_limit=16M

You should replace the ’16′ with whatever value is appropriate. The default is 8M (8 megabytes, the 8388608 bytes from the error message).

Thats it! You’ve just increased your PHP file upload limit. Well done you!

Click here to find out how to create a custom php.ini file.



Similar posts you may find useful..:

My PHP script gives the error ‘Call to undefined function: mysql_connect()’

How to create a custom php.ini file

How to Fix “Internet Explorer Cannot Open the Internet Site- Operation Aborted” Error

The Best 404 Error Pages

Line Break

Author: Doug (93 Articles)

Account Manager at Pixel Internet, Doug has been with us from day one. With over 10 years experience working in the web design and search engine optimisation industry, Doug's input and contribution to the growth of the company has been invaluable.

1 Comment to “Fatal error: Allowed memory size of 8388608 bytes exhausted”

  1. Yvette says:

    pravelno written:)

Leave a Reply

Search Blog

The Cloud

Pixel Internet specialise in web hosting for the following Open Source software packages, many of which include 'one-click-installation' via your control panel!

Click on a link below for more information regarding these packages and what we can offer.

Close this panel