5 Tips To Increase PHP Memory Limit In WordPress Blog

Fatal Error is one of the main problem for WordPress users.You need to increase your PHP memory limit for solve this WordPress problem.use below 5 tips to increase your PHP memory limit and solve the fatal error wordpress problem.

WordPress PHP MEmory Limit

WordPress PHP MEmory Limit

Problem:

Fatal Error :Memory Size Exhausted’ 

Most likely you are receiving an error similar to: “Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes) in /home/mywebsitename/public_html/wp-admin/includes/template.php“. To fix this all you need to do is increase the WP_MEMORY_LIMIT in your WordPresswp-config.php file.

5 Tips To Increase

PHP Memory Limit In WordPress

WordPress Tips :

1.Increase WordPress’ Memory Limit

WordPress’ default memory limit is set at 32 megabytes. For some this may be enough, but if your site is running a lot of plugins or gets a substantial amount of traffic you’re going to want to increase this to a safer level.

Add this code to your wp-config.php and save it

//increase WP Memory Limit
define('WP_MEMORY_LIMIT', '128M');

You may have to ask your host how to increase the memory limit if this doesn’t work and you’re on shared hosting. For those on a self hosting, you can increase the memory as long as it does not exceed the amount of RAM installed on the server.

2.Increase the limit via PHP.ini file

You can directly increase the PHP Memory Limit if you’ve access to the PHP.ini file. Most small Shared hosting servers won’t give you access to the PHP.ini file. But some servers allow you to create a duplicate PHP.ini in your respective site Directories whose data/values will override the default PHP.ini values.

To do that you just need to create a file with the name ‘php.ini’ in the directory where your WordPress site is installed. In that just add the command memory_limit = 64M in it to increase the Memory Limit to 64 MB.

3.Monitor your WordPress Memory

If you work with WordPress a lot, you’ll probably encounter the need to increase the memory limit more than once. Additionally, there are several good plugins available that will help you monitor your server and WordPress installation.

4.Changing the Memory Limit via install.php

This method is just an Alternate to the php.ini method. Because the function of the code we use in this method is same as what we put in the php.ini file. You just need to place the code ini_set('memory_limit','32M'); in the ‘install.php’ file which is placed in the wp-admin folder of your WordPress installation.

5.Contact Your Web Host

If you are a person who is new to all these techie sounding things. Then it’s better to have a Live Chat / a Call with your Host right away. It’s your right to talk to them & get the necessary changes you need as you’ve paid for it. So Many Hosting Services Offer Free WordPress Setup Also.

Expecting Above 5 WordPress Tips Are Helpful To You.Meet You In The Next Article.

Thanks For Reading,

Hope You Are Enjoyed Reading This Article”5 Tips To Increase PHP Memory Limit In WordPress Blog”.Please Drop Your Comments Below 🙂

 

9 Responses to “5 Tips To Increase PHP Memory Limit In WordPress Blog”

  1. Very nice tips would be great, thanks 🙂

  2. Sonny says:

    This really is a thing I must find more information about, many thanks for the post.

  3. Julissa says:

    Outstanding information and facts! I have been hunting for something such as this for quite a while now. Thank you!

  4. Informative post, tips are nice to follow, very useful too….

  5. Thank you for sharing with us, I conceive this website truly stands out 🙂

  6. Jerrie Jakob says:

    I simply want to tell you that I’m very new to weblog and seriously liked this web site. Almost certainly I’m likely to bookmark your website . You certainly have incredible article content. Appreciate it for revealing your webpage.

Leave a Reply

CommentLuv badge

© 2017 Daily Blog Tools. All rights reserved. Site Admin · Entries RSS · Comments RSS
Powered by WordPress · Designed by Theme Junkie