< All Topics
Print

PHP error- allowed memory size of x bites exhausted

If you have an error like “Allowed memory size of… in file /directory/folder/yourscript.php”, then it’s possible to choose .htaccess technique to solve the issue. If an error still exists after applying this .htaccess code, then its best to contact our professionals for more help.

Put this code in the .htaccess file of the main domain, and if the error persists even after using the code, then enter this in a directory where you get an error, like example.com/directory/folder/.htaccess and then put the code in the /directory folder.

 

RLimitMem max

Scroll to Top