WordPress is a great blogging tool or a content publishing platform that comes with a rich set of features. Using the in-built appealing features you can create a professional looking site or blog just within few steps.
WordPress is a script that is included in the Softaculous or Fantastico software which is offered for free with any cPanel Web Hosting package. Usually, wordpress has a default memory limit of 32MB, which is not sufficient when you increase the number of plugin or when your blog traffic increases tremendously.
What if your wordpress blog stops functioning and show an error ?
Fatal error: Allowed memory size of 33554432 bytes exhausted …
In such case, most of the times people either open a ticket at the HelpDesk and wait for the response from their uk web hosting provider. Some people try to make changes in the .Htaccess file and corrupts whole wordpress blog. Before doing any changes to the wordpress files the user should always backup the wordpress data.
The above issue can be solved by navigating to the wp-config.php file usually which is located at the wordpress installed folder. Edit the file using SSH or the File Manager and add the following line to the wp-config.php file.
The above memory limit can be set up to 32MB, 40MB, 64MB or 128MB.
If you are on a cPanel shared hosting plan, you will need to ask your web hosting provider to increase the memory limit. If your wordpress is on a self-hosted plan, then you can increase the memory as long as you want, but should not exceed the RAM allocated to your dedicated server.
Since, the WordPress is a collection of PHP based files, you will need to increase the memory limit of PHP as well. If your WordPress is self-hosted, but have multiple blogs installed, you will required to assign enough memory in order to handle all the installations.
On the cpanel servers, you will find the PHP file located at the following location:
Simply, find the below line in the file:
Allocate the memory limit according to your requirements. Since, we have allocated 64MB of memory in the above example, in PHP file we will allocate the same amount of memory to PHP.
memory_limit = 64M
Accordingly, if you are having 2 wordpress blogs consuming 64MB memory each, you may set the PHP memory limit to 128MB as shown below:
memory_limit = 128M
Once you are done with the above steps, simply refreshing your wordpress blog will solve the memory limit error.
Like this post ?
Share on your Social Networking Profile ( Facebook, Twitter & Google+ ) and get a flat 10% Recurring discount on our VPS Hosting and Dedicated Servers.
Email us the shared link at : firstname.lastname@example.org or speak to our live chat operator now, by clicking on the “Live Chat” Scroller on the left-hand side of this page and we will provide you with the discount Coupon right away!