How to increase WP Memory Limit?

< All Topics

You have often noticed as some of your website features could not load properly. You could be frustrated on why the site is not loading faster than you expected. The reason sometimes happens is due to the low memory limit on your server. IN this guide we will talk about multiple ways about how you can increase your WP memory on your site.

Table Of Contents

There are 3 ways that you can increase your WP Memory Limit:

First, You can increase your Memory Limit from your hosting cPanel (easy to configure)

Second, You can increase your memory limit from your wp-config.php file (little technical coding required)

Third, If you doesn’t have worked with servers much, We highly recommend you to reach out to your hosting provider or your webmasters. 

So, without further ado, let’s dive in deep on how you can increase your WP Memory Limit on your server.

Increase WP Memory Limit via cPanel.

If you are using Bluehost, Hostgator, or any other hosting services then you can find the cPanel dashboard where you can easily configure your site settings.

You need to locate PHP Manager in cPanel and increase your Memory Limit from your cPanel. Once you increase the memory you can save and apply changes.

You can increase your WP Memory Limit  512M, 768M, 1024M, or 2048M as per your needs.

Increase WP Memory Limit via wp-config.php file

To increase the memory via wp-config.php, you need to understand little coding. To begin with, you need to access your server either via FTP or cPanel.

If you are accessing the file via cPanel you can locate the File Manager and then locate the WordPress installation files where you have installed WordPress.

Once you do that you can find the wp-config.php file and find the line ‘That’s all, stop editing! Happy blogging.’

Just below that, you can add this piece of code define( ‘WP_MEMORY_LIMIT’, ‘1024M’ ); to increase your WP Memory Limit.

As mentioned above you can increase the memory as per your needs.

Similarly, if you are increasing memory via FTP you can follow the same trick by accessing the FTP server and locate the WordPress installation files. Once you do that you can locate the wp-config.php file and follow the above steps by adding this code; define( ‘WP_MEMORY_LIMIT’, ‘1024M’ );

You will need to follow the below steps to reach the wp-config file.
You have to follow the steps as per the server in which you create your project.

Step 1: Go to the “htdocs” folder and open it, then you can see the wp-config file.

Contact your Hosting provider

If you doesn’t have worked with servers much, We highly recommend you to reach out to your hosting provider or your webmasters.

Special Note : If your server have limit and doesn’t have option to increase memory limit You can try using our optimization methods.

Disable Unused Widgets from The Plus Settings  >> Widgets section
Disable Unused Elementor widgets from The Plus Settings >> Performance section
Disable third-party Elementor addons unused widgets

Do you want to rate this article?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Need help?