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

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

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

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

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

Error 1503: Error while restarting MySQL service on Windows server

You may need to restart MySQL services from Services on Windows server. While restarting service,...

How to fix HTTP Error 503. The service is unavailable in Windows?

Error message HTTP Error 503. The service is unavailable. Cause In Windows hosting,...

Can I Send Emails without SMTP authentication?

Linux Shared Hosting  With Linux Shared Hosting, we allow sending emails without SMTP...