List of Contents
Easy way to Increase PHP memory limit
If you are getting an error “the allowed memory size limit exhausted” in your WordPress website, that means you are in a trouble.
Your website can’t be open by any visitor in this world. Its because your website’s PHP memory limit exhausted.
This may be a bad impression on your visitors. You can also affect your online business. But you don’t worry about anything else after reading this blog. I am sharing with you very easy steps to fix this issue.
What is PHP Memory Limit?
PHP is a type of language to design web programs. It is a programming language to design dynamic and unique web pages.
WordPress is also written in PHP programming language. PHP is a server-side scripting language.
When a user allows a web page to work with PHP codes. It automatically generates HTML output to be displayed on the browser screen on the computer.
PHP Memory limit is a RAM of your website. Every WordPress blog needs a website server hosting.
These web servers are something just like a computer. They also need memory to run a website and its applications.
A new WordPress website hosting provider makes a memory limit for their users. You have to increase that limit if you want.
When you have crossed the memory limit to run your website. You will be seeing an error when visiting your website. This error may be something like this.
Fatal error: Allowed memory size of 33445532 bytes exhausted (tried to allocate 2483617 bytes) in /home4/xxx/public_html/wp-includes/plugin.php on line 256
This error will show on your website page when you will try to open it. I will tell you today very easy steps to fix this issue.
Easily Increasing PHP Memory Limit in WordPress
In your WordPress site root folder, there is a file wp-config.php. You can use cpanel to find your root folder into the file manager. If you don’t have access to cpanel. Then you should use FTP file manager to resolve this issue.
After that, You will have to paste a code into the wp-config.php file. You need to enter in this wp-config.php file and find out the line “That’s all, stop editing! Happy blogging”.
If you can’t find out the line, tap Ctrl+F and type these words and enter the search button.
You will get these lines. Now paste the code just above the line “That’s all, stop editing! Happy blogging” and save the file as it is.
define( ‘WP_MEMORY_LIMIT’, ‘256M’ );
This will increase your WordPress site PHP memory limit to 256 MB. Now, You can visit your website and the error has gone. This may be good news that your site is again running up.
Conclusion
If your site is showing still this error, it means you hosting provider is not allowing WordPress to increase the memory limit. Now you should talk to your web host technical support team to solve this issue for you.
If you get helped by this article. It’s our pleasure to make you happy. You may also like our another blog How to Fix An Error Establishing a Database Connection.
If you loved this helpful article, So don’t forget to share this article with your friend and join us on Facebook and Twitter.
Thanks for sharing this article Its really helpful for me.
its a very good article.
it works… thank you for sharing this information….
hey dude, really nice & amazing post, thanks for sharing
Thanks for sharing this article.
Hello sir! I am using godaddy hosting service at my blog http://www.dprotricks.com but the thing is I have tried almost every method and this one, I have also tried but I can increase the limit more than 128mb… What could be the reason? Will you suggest me to use any other hosting service for my blog or what? Help. And thanks for your article!
Hi Abrar, There is no need to change hosting company. Maybe, You are using a starter hosting plan. That may be the reason of limited memory limit. Talk to Godaddy support team to resolve your issue.
Thank you for your comment.
Hello! Thanks for your help. I have another very important question that is Off this article. But please help me with it. It would be so kind of you. I wanted to ask that will my blog traffic increase without backlinks??? because everywhere I am getting only no follow backlinks which i think are worthless. My blog is now approximately 1 month and 22 days old and i am getting only 1 or 2 or 3 or may even 0 visitors from search engines that is a too low amount. Please guide me a bit. what should i do? Is it all normal? Thanks 🙂
This is very helpful post sometimes while working memory related errors comes and stop your work This is really helpful post
hello sir nice post.
Hello nice article keep writing
Hi I am here for the second time and thought of commenting,really good article.Cheers.
hello sir,
Thanks for sharing this article.
Hi
nice article and very helpful for learner. thanks for shearing it with us.
Really Nice and useful blog.
Great!!!
Thanks for giving these perfectly useful tips…
Nice articles. Thanks for these useful info.
hi author, i read your some post, you do very well with good skill and thank you to sharing with the article, keep it up bro……
Thanks , For Sharing This Articles
Keep sharing and have a great time blogging.
Superb Idea.
Hello Sir,
Very good article,
Thanks for sharing.
This article saved my site, Thanks alot keep on sharing great infos
Hi
Very good post I like it very much
Thanks for sharing.
Tried your method and it worked in the first run. No need to hear those boring lectures. Your article is savage. Was able to increase the memory of my website using hosting namecheap. Thanks a lot
Great Share! So much good information to see.. Keep posting these kind of stuffs ..
This is very important for PHP beginner guys. Great article
Thanks
Great Post!! Thanks For Sharing a very Nice Informative Details. Keep doing it
Nice articles. Thanks For Sharing a very Nice Informative Details. Keep doing it
Thank you so much for sharing !!
Very nice article!! Thank you so much for sharing !!