Tips and Tricks HQ Support

Support site for Tips and Tricks HQ premium products

  • Home
  • Contact Us
  • Documentation
  • Forum Home
    • Forum
    • Forum Search
    • Forum Login
    • Forum Registration

How to Increase WordPress Memory and PHP Memory Limit

by

Tips and Tricks HQ Support Portal › Forums › General Stuff › Instructions/F.A.Q › How to Increase WordPress Memory and PHP Memory Limit

Tagged: memory limit, PHP Memory

  • This topic has 0 replies, 1 voice, and was last updated 11 years, 3 months ago by admin.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • February 6, 2014 at 12:23 am #10573
    admin
    Keymaster

    Increasing PHP Memory Limit

    If you see an error like the following in your browser when doing something on your site, this means that PHP has hit the maximum memory limit allocated for your server/site.

    "Fatal Error: Allowed memory size of *** bytes exhausted ..."

    You need to increase the memory limit so PHP has more memory available to it. I will explain few different methods that you can try yourself to increase the limit:

    Option 1) Changing the PHP memory limit of a site is not a trivial task. You should always try to get your hosting provider to change the memory limit for you. That way you won’t mess something up when you try to do it yourself.

    Option 2) If you have access to your php.ini file then look for an entry like the following:

    memory_limit = 32M    ; Maximum amount of memory a script may consume

    Change that number to a bigger value. Save the php.ini file.

    Option 3) You can also try to set it via the .htaccess file. Add the following line to your .htaccess file (this will try to set the limit to 128MB):

    php_value memory_limit 128M

    Increasing WordPress Memory Limit

    If you try to upload a file to your server via the media uploader of WorPress and it gives a memory error, then you need to increase your WordPress memory limit.

    Edit your wp-config.php file and add a line like the following:

    define('WP_MEMORY_LIMIT', '64M');

  • Author
    Posts
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.
Log In

Forum Related

  • Forum Home
  • Forum Search
  • Forum Registration
  • Forum Login

Support Related Forms

  • Contact Us
  • Customer Support
  • Request a Plugin Update
  • Request Fresh Download Links

Useful Links

  • Plugin Upgrade Instructions
  • WP eStore Documentation
  • WP eMember Documentation
  • WP Affiliate Platform Documentation
  • Tips and Tricks HQ Home Page
  • Our Projects

Quick Setup Video Tutorials

  • WP eStore Video Tutorial
  • WP eMember Video Tutorial
  • WP Affiliate Platform Video Tutorial
  • Lightbox Ultimate Video Tutorial

Our Other Plugins

  • WP Express Checkout
  • Stripe Payments Plugin
  • Simple Shopping Cart Plugin
  • Simple Download Monitor

Copyright © 2025 | Tips and Tricks HQ