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

Solution:

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

Google has reported my website as “Reported Attack Page", what should I do now?

When you try to browse your website or its URL, web browser may show you “Reported Attack Page”...

500 Internal Server Error

In Windows hosting, sometimes you may get error message 500 Internal Server Error for scripts...

How do I fix HTTP Error 404 on my website?

Following are some of the most common reasons and solutions of 404 error. You might be typing...

Server Error in '/' Application in WebsitePanel :: Windows Server 2003 VPS

You may receive the following errors when running WebsitePanel installed on Windows 2003 server:...

Error 80004005 The Microsoft Jet Database Engine Cannot Open the File

Following are the possible causes of this error: This error usually occurs when database file or...