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.
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.
- Increase the PHP memory limit through cPanel
- Increase the PHP memory limit through wp-config.php
Increase the PHP memory limit through cPanel:
- Login into your cPanel account.
- Search for MultiPHP INI Editor. Click on it.
- Now click on Basic Mode and select the location domain name.
- 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.
- 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.
- Click on 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.
- Now add this code on wp-config flle “define( ‘WP_MEMORY_LIMIT’, ‘256M’ );”
- 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.