Fix PHP error: allowed memory size of x bytes exhausted Print

  • 0


If you're getting an error such as "Allowed memory size of... in file /directory/folder/yourscript.php", you can use an htaccess file to resolve it.

Place this code in the dot htaccess file of your primary domain:

RLimitMem max

 

If the error persists after using the code, enter it in the directory where you are receiving the error, such as example.com/directory/folder/.htaccess.

If the error still persists even after applying the htaccess code, please reach out to us and we will do our best to help you.


Was this answer helpful?

« Back