PHP Memory limit error

Fatal error: Allowed memory size of 12582912 bytes exhausted (tried to allocate 23456789 bytes) in somefile.php

Fatal Error: PHP Allowed Memory Size Exhausted

These errors occur when PHP tries to process a large database record, or when importing or exporting a database.

To fix the problem, please modify the memory_limit line in php.ini to match this example:

memory_limit = 64M

We do set the maximum memory limit at 64 MB (67108864 bytes). If you want to go higher, you will need a VPS plan or dedicated server.

So, if you see "Allowed memory size of 67108864 bytes exhausted..." in the error, then you cannot increase the limit any higher without a VPS plan or Dedicated Server

Important Update: Memory limit has now been increased to 128M across all shared servers.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

phpSuExec or suPHP

PHPsuExec (pronounced sue-eksek) is a more secure environment for executable files. SuPHP is the...

How to get your php.ini path with SuPHP

.htaccess code Edit your public_html/.htaccess file and enter the appropriate code on a new...

What is php.ini

The php.ini file is a special file for suPHP (pronounced sue-p-h-p). The php.ini file is where...

How do I clear my browser cache

Each time you access a file through your web browser, the browser caches it (stores it). In...

URL redirect methods, forwarders

Go to cPanel and click Redirects. This is also known as 301 redirect. Search engines, like...