PHP Memory Limit Error

Allowed Memory Size Exhausted Errors

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 = 256M


We do set the maximum memory limit at 256 MB (268,435,456 bytes).

If you want to go higher, you will need a VPS plan or dedicated server.

So, if you see "Allowed memory size of 268435456 bytes exhausted..." in the error, then you cannot increase the limit any higher without a VPS or a Dedicated Server. Dedicated Server and VPS customers with WHM access can change the limit by going to WHM > Service Configuration > PHP Configuration Editor.

Out of Memory Error

Fatal error: Out of memory (allocated 268435456) (tried to allocate 47 bytes) in somefile.php


If you see less than 268435456 bytes total allocated and being allocated, but still get an error like the example above, then we suggest you contact ABACOHosting support to get assistance and advice.
  • 10 Users Found This Useful
Was this answer helpful?

Related Articles

How do I access cPanel?

1. Managing your Linux Hosting package through your web browsercPanel can be accessed by using...

Uploading Content to your cPanel Linux Hosting Package

To upload content to your Hosting package through an FTP client, use only FTPS on Port 21.Some...

SymLinks Settings of cPanel Linux Hosting packages

Linux Hosting packages do not support the "FollowSymlinks" option in the .htaccess file. This...

How do I unblock port 80/443?

Go the "Client Area"Click Services> My ServicesChoose hosting plan and click on the planClick...

CloudFlare User Name and Password

Whether you signed up for CloudFlare via cPanel or directly from the CloudFlare website, you will...

Powered by WHMCompleteSolution