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

Rackspace to Acquire Its Rival Datapipe for Multi-Cloud Heft
09/12
Rackspace, one of the largest managed cloud computing companies in the world, yesterday announced an agreement to purchase its managed services rival Datapipe, so as to expand its multiple clouds’ management capabilities at scale.
Bisend WOW! Acquires HK Hosting Provider ZhuJi91
08/18
The web hosting provider Bisend.com announced early this month that it has entered an agreement to acquire Hong Kong hosting provider ZhuJi91.com.hk. The terms of the transaction were not disclosed.
GoDaddy Shutters Its Cloud Servers Services … Again
07/25
The global Domain name registrar and web hosting service provider, GoDaddy now is getting rid of its public cloud services which is based on OpenStack and only was launched 16 months ago.
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.
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: 233192
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