Loading...
HOPE VALLEY CLOUD logo HOPE VALLEY CLOUD logo HOPE VALLEY CLOUD logo HOPE VALLEY CLOUD logo
News:
Welcome to Hope Valley!
English
  • العربية
  • Azerbaijani
  • Català
  • 中文
  • Hrvatski
  • Čeština
  • Dansk
  • Nederlands
  • English
  • Estonian
  • Persian
  • Français
  • Deutsch
  • עברית
  • Magyar
  • Italiano
  • Macedonian
  • Norwegian
  • Português
  • Português
  • Română
  • Русский
  • Español
  • Svenska
  • Türkçe
  • Українська
  • 0
    Register Account
    ExtendReduce
    Home
    Store
    Browse All ----- Shared Hosting Register a New Domain Transfer Domains to Us
    Announcements Knowledgebase Network Status Affiliates Contact Us
    Client Login
    Knowledgebase
    1. Portal Home
    2. Knowledgebase
    3. Others
    4. Fix PHP Error: Allowed Memory Size of X Bytes Exhausted
    Categories
    • Backup/Restore
      4
    • Cloudflare (cPanel)
      9
    • CloudLinux (cPanel)
      10
    • cPanel - Control Panel
      24
    • Databases
      11
    • DirectAdmin
      48
    • DNS - Nameservers
      6
    • Domain Management
      10
    • Email
      17
    • FTP
      9
    • Installing a Control Panel
      6
    • Mail Filters & SPAM
      8
    • Mobile
      11
    • Others
      3
    • PayPal
      7
    • Plesk
      47
    • Security
      10
    • SiteWorx (Control Panel)
      58
    • Softaculous
      69
    • SolusVM
      18
    • SSL
      5
    • Virtualizor
      19
    • WHM
      18
    • WordPress
      17
    Support
    • My Support Tickets
    • Announcements
    • Knowledgebase
    • Downloads
    • Network Status
    • Open Ticket
    Fix PHP Error: Allowed Memory Size of X Bytes Exhausted
    Print


    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?

    0 Users Found This Useful (0 Votes)

    Related Articles

    Most Popular Articles

    How to Create a User-friendly URL Using htaccess

    If your website is using a long URL such as example.com/files/folder/sitemap.html, you can change...

    How to Redirect a Page or Website Using htaccess

    If a page on your website no longer exists and you want to redirect it to a new page or website,...

    Copyright © 2025 HOPE VALLEY CLOUD. All Rights Reserved.
    Loading...
    Loading...
    Choose language
    العربية
    Azerbaijani
    Català
    中文
    Hrvatski
    Čeština
    Dansk
    Nederlands
    English
    Estonian
    Persian
    Français
    Deutsch
    עברית
    Magyar
    Italiano
    Macedonian
    Norwegian
    Português
    Português
    Română
    Русский
    Español
    Svenska
    Türkçe
    Українська

    Choose Currency

    $ USD
    € EUR

    Generate Password

    Please enter a number between 8 and 64 for the password length