Notice: Trying to get property of non-object in /var/racent/racent/module/Post/src/Post/Controller/HostucanController.php on line 587

Notice: Trying to get property of non-object in /var/racent/racent/module/Post/src/Post/Controller/HostucanController.php on line 587
How to Increase PHP Memory Limit for WordPress | HostUCan Webmaster Tutorials

How to Increase PHP Memory Limit for WordPress

Well, if you see below error when using WordPress, which means you need to increase the memory limit for WordPress. Fatal Error: Allowed memory size of xxxxxx bytes exhausted

As a CMS written using PHP, the memory of WordPress could use in each request is limited by PHP memory_limit. The minimal value to run WordPress smoothly is 32MB, however, if you install a lot of plugins or insert large image in your blog, then you need to increase this value to 64MB or even 128MB.

You could refer to How to Increase PHP Memory Limit to know how to increase it at system level. And in below, we will share some simple ways, via which you only need to modify the configuration of WordPress and then increase PHP memory limit at running time.

Altering PHP Memory Limit via wp-config.php

For this method you won't have to create any extra files in your directory.  Add the following code (below) to your wp-config.php file to increase your PHP Memory Limit to 64MB.

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

Changing PHP Memory Limit via install.php

This way is also very simple, all you need to do is to modify install.php file and place the following code to it:

ini_set('memory_limit', '32M');

install.php file is located in wp-admin folder.

Fail to Increase PHP Memory Limit for WordPress

This is possible since your Web Host might limit the maximal PHP memory_limit at system level so that your modification during running time might fail. In this case, contact your web host and ask for the change, or you need to find a new WordPress hosting solution which allows for larger PHP memory limit.

Tagged with:

Related Articles

The 7 Smartest Companies in Cloud Computing in MIT technology Review
07/07
The list of top 50 smartest companies released by MIT technology Review has several companies dealing in cloud services – they are either supporting cloud services, using cloud services or selling the cloud services.
Week 2017/6/26/ Top 5 Hosting Industry News
06/30
There were many exciting news and events happening in the industry this week, and here we conclude the top 5 for you.
Importance Of Cloud Computing For Businesses
06/09
Gone are the days when an IT department of an industry relies entirely upon the personal setup of software, hardware, business SAPs, etc. Today, the time has evolved to a newer face of the data processing machines called ‘Cloud Computing’.
What are the Drawbacks of Using Cloud Computing?
06/07
Cloud computing seems to have become quite popular and hundreds of companies including some of the top ones seem to be quickly shifting to cloud storage. While there are many advantages that cloud computing has the process isn’t without its disadvantages.
What Does Latest OpenStack Ocata Bring for Us?
04/24
OpenStack now is still an on-going project, whose components are in different stability and mature phases. It also means enterprises are confronting OpenStack deployment challenges, especially in the terms of scalability and network. The new version of OpenStack brings something new to handle the issues found before.
Comment
Be the first to comment!
About the author

Notice: Trying to get property of non-object in /var/racent/racent/module/Post/view/ctrl/author-introduction.phtml on line 5

Notice: Trying to get property of non-object in /var/racent/racent/module/Post/view/ctrl/author-introduction.phtml on line 7

Notice: Trying to get property of non-object in /var/racent/racent/module/Post/view/ctrl/author-introduction.phtml on line 16

Notice: Trying to get property of non-object in /var/racent/racent/module/Post/view/ctrl/author-introduction.phtml on line 16
Views: 222446
Articles: 92

Notice: Trying to get property of non-object in /var/racent/racent/module/Post/view/ctrl/author-introduction.phtml on line 19

Author's Hot Articles

godaddy
hub

Hot Posts

Service Recommendation

Cloud Hosting
Cloud hosting is the fastest growing hosting solutions in the industry. »
Cloud Storage
Best Cloud Storage are named based on customer and expert reviews. »
SSL
The most popular SSL certificate providers in the industry are here. »
China Web Hosting
Find out a comprehensive evaluation to the host service provider in China. »
bluehost
Chat Advertising cooperation TOP