Find Answers Fastin Our Knowledgebase

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

knowledegebase

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.

Our Partners

The delivery of secure, high-performance hosting worldwide is our mission, and our partners play a vital role in making it happen.

cloudlinux
cpanel
digicert
immunify360
litespeed
softaclus
tripleace