Quantcast
Image

Search Results for: increase-memory-limit

How to increase memory limit for PHP in cPanel

By  •  November 28, 2023

PHP allocates a certain amount of memory when executing your PHP scripts. Your PHP script will exit and throws a fatal error if it has exhausted all the allocated …
Read More

How to increase PHP memory limit

By  •  May 28, 2018

PHP scripts are only allocated a certain amount of memory that it can use, and whet it reaches the limit, it will produce the following error;

PHP Fatal error: Allowed memory size of xxxx bytes exhausted (tried to allocate yyyy) in yourscript.php

To fix this, you’ll need to increase the memory limit for PHP scripts using any of the following methods;

Top