Error: Fatal error: Allowed memory size of xxxxxx bytes exhausted

Sometimes you may receive the following error message while accessing your PHP page:

Error : Fatal error: Allowed memory size of xxxxxx bytes exhausted (tried to allocate 24 bytes) in /home/test/public_html/xxx/test.php on line xxx


To resolve this error, you will need to raise PHP memory limit. If your website is hosted on the shared server, you will have to modify your script. If you have VPS or Dedicated server, you can update your PHP configuration to allow more than 64 MB memory. You will need to increase the value for php_memory in your php.ini file. Do not forget to restart your web server after making this change.
  • 1 Users Found This Useful

Was this answer helpful?

Related Articles

How to Fix Runtime Error on Website with SDF Database?

Problem Statement Runtime error on website having Database on SDF file. Solution Start IIS...

WebsitePanel error :: Web Application Gallery module is unavailable

You may receive the following error while installing any Microsoft Applications from Microsoft...

While running my ASP.NET Application, I am receiving full trust level error

Exception Details System.Security.SecurityException: Request for the permission of type...

Microsoft OLE DB Provider for ODBC Drivers error '80040e10' [Microsoft][ODBC Microsoft Access 97 Driver] Too few parameters. Expected 1

This error occurs because the field name that you used in the query syntax does not exist. Often...