Best Server Hosting & Managed IT Company Since 2016

php error: Allowed memory size of x bytes exhausted

If you are getting an error like “Allowed memory size of… in file /directory/folder/yourscript.php“, then you can use a .htaccess trick to resolve this problem. If this error does not go away even after you apply this .htaccess code, you should contact us and we will help you.

Place this code in your .htaccess file of your main domain and if this error persists even after you have used the code, enter it in a directory where you are receiving an error, such as example.com/directory/folder/.htaccess and place the code in the /directory folder.
RLimitMem max

About the Author
Medha Hosting

Medha Hosting ( a Medha Cloud company ) is the leading global Cloud, Managed hosting and managed IT services provider with award winning platforms in USA, Europe and Asia. Medha Hosting have delivered enterprise-level hosting services to businesses of all sizes round the world since 2014 and still serve a growing base of customers. They relay heavily on our 100 percent up time guarantee, unbeatable level of client service through our triumph Support Heroes, and world reach with half-dozen data centers across five regions in Europe, US, and Asia.we have a tendency to integrate the industry’s best technology to supply you better of breed cloud hosting solutions, all backed by our triumph Support Heroes.

Leave a Reply