Increasing the memory limit in WordPress is often necessary to accommodate resource-intensive plugins, themes, or complex operations on your website.
The default memory limit in WordPress is typically set to a low value, typically 40MB, which can cause issues if your site requires more memory to function smoothly.
i once had issues with slow site loading and server errors trying to delete some plugins from my site. also with more plugins you install the more bloated your site becomes.
in my case I had my site hosted using Amazon-Ezoic shared hosting service. I got to discover that I was having a low memory limit when I wanted to install the Indeed theme on my site and the theme returned an error message showing 40MB is too low to run the theme unless I increase the WordPress memory limit
At this point i was stuck because the backend PHP server of my host does not have clear functions like the Cpanel model of most site hosting services where I can access the wp-config-php file in order to increase the memory limit
maybe this is also your case or you just want a fast loading page the please patiently go through this guide and find a solution for your site. it may be that the last solution I am going to discuss in this post will be your best option to increase your WordPress site memory limit so read through
read some of my most exciting posts and pages here
To increase the WordPress memory limit, follow this comprehensive guide:
so how do you increase the memory limit of a WordPress site
Step 1: Check the Current Memory Limit
- Log in to your WordPress website’s admin dashboard.
- In the left-hand menu, go to “Tools” and then click on “Site Health.”
Step 2: Identify the Current Memory Limit
- In the Site Health screen, click on the “Info” tab.
- Look for the “PHP memory limit” value. It will display the current memory limit allocated to your WordPress website.
- If you cannot see it then install any memory and Server IP plugin, activate it and it will reveal your WordPress memory limit
Step 3: Back Up Your Site Before making any changes to your WordPress site, it’s crucial to back up all your files and databases to ensure you can revert to a previous state if something goes wrong.
Step 4: Choose the Method to Increase Memory Limit There are multiple ways to increase the WordPress memory limit. We’ll cover three commonly used methods:
Method 1: Editing the wp-config.php File
- Access your website’s files via FTP or a file manager provided by your hosting provider. Or you can install a plugin called Filester which I strongly recommend
- Locate the “wp-config.php” file in the root directory of your WordPress installation.
- Download a backup copy of the file to your local computer.
- Open the “wp-config.php” file using a text editor (e.g., Notepad++ or Sublime Text). if you used Filester then you don’t need any notepad as it it has an editor. just click the wp-config-PHP file and the editor will pop
- Add the following line of code just before the line that says “That’s all, stop editing! Happy blogging.”sql
'256M'with the desired memory limit. Make sure the value is higher than your current memory limit. A recommended value is 256M or higher for most websites.
- Save the changes to the “wp-config.php” file.
- Upload the modified “wp-config.php” file back to your server, replacing the existing one.
Method 2: Editing the .htaccess File
- Using FTP or a file manager, navigate to your website’s root directory.
- Look for the “.htaccess” file and download a backup copy to your local computer.
- Open the “.htaccess” file using a text editor.
- Add the following line of code at the bottom of the file:
php_value memory_limit 256MAgain, adjust the value to your desired memory limit.
- Save the changes to the “.htaccess” file.
- Upload the modified “.htaccess” file back to your server.
Method 3: Editing the php.ini File
- Access your website’s root directory using FTP or a file manager. In this case, just install a Plugin called Filester. After installation open its file explorer
- Look for the “php.ini” file, and if it doesn’t exist, create a new one in the root directory.
- Open the “php.ini” file with a text editor.
- Add the following line to increase the memory limit: makefile
memory_limit = 256MAdjust the value as needed.
- Save the changes to the “php.ini” file.
Step 5: Verify the Increased Memory Limit
- Go back to the WordPress admin dashboard.
- Navigate to “Tools” and click on “Site Health.”
- In the Site Health screen, click on the “Info” tab again.
- Verify that the “PHP memory limit” value now reflects the new limit you set.
Congratulations! You have successfully increased the WordPress memory limit to accommodate the needs of your website. If you encounter any issues, double-check your changes and ensure that you followed the steps correctly.
If the problem persists, revert to the backup you created earlier and seek further assistance from your hosting provider or WordPress support community.
The term “site memory” is not a standard concept or well-known term in computer science or technology as of my last update in September 2021. However, based on the context, it is possible to speculate about its meaning.
- Website Memory: It could be interpreted as the memory or storage space required to store data and information related to a website. This could include the website’s code, assets (images, videos, etc.), databases, and any user-generated content. In this context, “site memory” would be a broad term that encompasses all the digital resources associated with a website.
- Caching and Local Storage: Another interpretation could be related to web browser caching and local storage. When you visit a website, your browser may store certain elements of the site locally on your device. This helps improve page load times and user experience on subsequent visits. These stored elements can be considered as “site memory” in the sense that they make it quicker to access and display parts of the website without needing to fetch them from the server again.
- Server-Side Memory: It might refer to the memory (RAM) used by the server to process requests and serve content for a specific website or web application. When users interact with a website, the server needs to handle their requests, process data, and generate responses. All of this requires memory to store temporary data and perform computations. “Site memory” in this context could be synonymous with server-side memory usage.
- User Perception: Sometimes, the term “site memory” might be used metaphorically to refer to the impression or lasting impact a website leaves on a user. It could imply that the website is memorable or has a lasting effect on the user’s mind.
Please note that without additional context, it’s challenging to pinpoint the exact meaning of “site memory.” If you encountered this term in a specific context or field, it would be helpful to have more information to provide a more accurate explanation.