Find AnswersFast in Our Knowledgebase

Explore step-by-step guides, tutorials, and expert tips to help you get the most out of your hosting experience. Whether you're setting up a domain, managing WordPress, or troubleshooting, our Knowledgebase has you covered 24/7.

cta

Fix PHP Error: Allowed Memory Size of X Bytes Exhausted



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

 

If the error does not go away even after applying the htaccess code, you should contact us. We will do our best to help you.


Place this code in the dot htaccess file of your primary domain. 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.

 

Add this code to your htaccess file:

RLimitMem max


Was this answer helpful?

« Back

Explore Latest News

Explore product announcements, hosting tips, security news, and digital trends to help you grow your online presence. Whether you're a developer, business owner, or startup, our blog keeps you ahead of the curve.

news-img
Shared Hosting

MARCH 24, 2024

Attentive was born in 2015 help sales teams

Admin

Co, Founder

news-img
Shared Hosting

MARCH 24, 2024

Attentive was born in 2015 help sales teams

Admin

Co, Founder

news-img
Shared Hosting

MARCH 24, 2024

Attentive was born in 2015 help sales teams

Admin

Co, Founder

Our Partners

Our partners play a vital role in powering our services and supporting our mission to deliver secure, high-performance hosting worldwide.

cloudlinux
bitninja
cpanel
litespeed
softaculous