You Are Here:- Home / Wordpress / How To Change WordPress PHP Memory Limit?

How To Change WordPress PHP Memory Limit?


In my last post I told you about seeing you server PHP information. How to see your PHP information, etc. Hope it was an easy tutorial.

In the post before the last one, I told you about some of the common mem-128-mbWordPress problems that occur due to overload in WordPress due to PHP memory limit.  We found that WordPress gets overloaded due to large number of plugins used and various other reasons. This results in loss of some functions and some serious errors.  In that post I just told you about the problems. In this post we will discuss about how to change your WordPress PHP memory limit in order to solve these problems.

The reason for these problems is WordPress PHP memory overload. These errors occur when there is less amount of memory granted to WordPress. You may ask which memory? Its PHP memory.

The normal recommended memory that a WordPress blog site should have is 32-64 Mb. For different sites, the recommended PHP memory will differ depending on the site’s usage and the various modifications used in it, like plugins, themes, etc.

How To Change PHP Memory Limit In WordPress?

1. First check the PHP memory limit that your host provides you.

( Follow this article for getting PHP information. Browse to memory_limitand see your PHP memory.)

2. If the PHP memory limit you got in the above step is 32 Mb or less, ask your host to change it to 64 Mb or so. I recommend you to to ask them to set it to 128 Mb.

3. When done the above step, go to your site’s root directory.

4. Open wp-settings.php file.

5. Find,

 if ( !defined('WP_MEMORY_LIMIT') )
define('WP_MEMORY_LIMIT', '32M'); 

6. It will be somewhere in the starting of the file.

7. Change the 32M to memory you want. Recommended is 64 Mb or 128 Mb.

( Remember, the memory you use here should be equal or less than php memory you found in the step one.)

8. Save the file.

You WordPress will now have much more memory to use. You dashboard problems will be solved unless there are any other errors and problems in your ite.


If You Enjoyed Reading This Post, Please Consider To Leave A Comment And / Or Subscribe To The Feed And Get Future Articles Delivered To Your Feed Reader Regularly.

Related Posts


7 Responses to “How To Change WordPress PHP Memory Limit?”

Comments

  1. Thank you for the sharing this very informative tip.

  2. rajasekhar says:

    Hai to all,
    i am getting this error can any one help me out

    Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 71 bytes) in /mnt/stor2-wc2-dfw1/433725/438564/movies.hoticecreams.com/web/content/wp-includes/post.php on line 3232

Trackbacks/Pingbacks

  1. [...] my last post I gave you an easy tutorial on how to change your WordPress PHP memory. Hope you were able to follow it easily. In this post I will tell you some of the best domain [...]

Leave A Reply

CommentLuv Enabled

Copyright © 2009 - 2010 Blogging Junction. All Rights Reserved.
Blogging Junction Is Proudly Powered By Wordpress And Blog Design By New WP Themes