Increase PHP Memory Limit

How To Increase PHP Memory Limit

Common Errors in WordPress

The Increase PHP Memory Limit is a common error that occurred in WordPress when we try to update the file maximum than the default limit. Many people things it is difficult to solve it but it is a simple problem to fix ourselves. In our Budget Blogging, we are going to discuss how to increase the PHP memory limit.

memory exhuasted error

This error occurred when the uploading file is larger than the limit. Server administrators or providers allocate specific memory sizes including PHP.

In 2 ways we can solve this issue.

  1. Increase the PHP memory limit  through cPanel
  2. Increase the PHP memory limit through wp-config.php

Increase the PHP memory limit  through cPanel:

  • Login into your cPanel account.

cPanel login

  • Search for MultiPHP INI Editor. Click on it.
  • Now click on Basic Mode and select the location domain name.

Select Location PHP

  • In the PHP directive, you can see the memory limit. You can increase the memory limit. Make sure the memory limit should not be crossed than the memory limit provided by your hoster.

Memory limit cPanel

  • Click on Apply. After the changes then try to update.

Increase the PHP memory limit through wp-config.php:

  • You can also use this method to increase the memory limit.
  • Login to your cPanel account.

cPanel login

  • Click on file manager.

File Manager

  • Now open the public_html  file. In public_html you can find the wp-config.php file.
  • Now right-click on it and edit the wp-config file.

public html

 

  • Now add this code on wp-config flle  “define( ‘WP_MEMORY_LIMIT’, ‘256M’ );”

increase limit code

  • Click on Save the changes.

You can also refer to our Budget Blogging site to get some knowledge about how to start a blog. And also you can refer to get some idea about how to install WordPress using Softaculous App Installer and which security plugins need to be used to protect your website from hacking or to prevent malware issues.

Leave a Reply

Your email address will not be published. Required fields are marked *