Increase the memory limit for WordPress

From WordPress web design and front-end development to SEO, Google Ads, ChatGPT Ads and social media marketing, I help you build, manage and grow your online presence.

Rated Excellent on Google

How to Increase the Memory Limit for WordPress by Editing the wp-config.php File

One of the most common challenges faced by WordPress users is hitting the memory limit while working on their websites. This limitation can hinder the performance of your site and impact its functionality. However, there is a simple solution to this issue – increasing the memory limit for WordPress. In this guide, we will walk you through the process of editing the wp-config.php file to boost the memory limit and ensure smooth operation of your WordPress site.

To download and install the WordPress File Manager plugin for easy file management on your WordPress site, begin by logging into your WordPress admin dashboard. Navigate to the ‘Plugins’ section and click on ‘Add New.’ In the search bar, type ‘WordPress File Manager’ and hit enter. Look for the plugin in the search results and click on the ‘Install Now’ button. Once the installation is complete, click on ‘Activate’ to enable the plugin’s functionality.

You can now access the WordPress File Manager from your dashboard to conveniently manage files, edit code, and perform various file-related tasks directly within your WordPress admin interface. This user-friendly plugin simplifies file management on your site, enhancing your workflow and efficiency when handling website files and directories.

WordPress File Manager

Step 1: Locate the wp-config.php File

The first step in increasing the memory limit for WordPress is locating the wp-config.php file in the root directory or folder of your WordPress installation. This file serves as a vital configuration file for your WordPress site, containing key settings and parameters that influence its performance.

Step 2: Access and Edit the wp-config.php File

To access the wp-config.php file, you can use the WordPress File Manager plugin, which provides a user-friendly interface for managing your website files. Once you have installed the plugin, navigate to the root directory and locate the wp-config.php file. Double-click on the file to open it for editing.

WordPress File Manager

Step 3: Insert the Memory Limit Code

Within the wp-config.php file, locate the line that reads /* That’s all, stop editing! * Happy publishing. */. Right above this line, add the following code:

define(‘WP_MEMORY_LIMIT’, ‘512M’);
This code snippet defines the new memory limit for WordPress as 256MB, which should be sufficient for most websites. Feel free to adjust the value based on your specific requirements and the complexity of your site.

WordPress File Manager

Step 4: Save the Changes

After adding the code to increase the memory limit, save the wp-config.php file by selecting the ‘Save & Close’ option. This action ensures that the changes are applied and the memory limit for WordPress is successfully updated.

By following these simple steps, you can effectively increase the memory limit for your WordPress site, thereby enhancing its performance and stability. Remember to regularly monitor your site’s memory usage and adjust the limit as needed to optimize its operation. With this newfound knowledge, you can navigate the world of WordPress with confidence and ensure a seamless user experience for your visitors.

Keep an Eye on you memory usage

To monitor your website’s memory usage and ensure optimal performance, you can easily download and install a memory usage plugin for WordPress. Start by accessing your WordPress dashboard and navigating to the ‘Plugins’ section. Click on ‘Add New’ and search for a memory usage plugin such as “WP Memory Usage.” Once you find the plugin, click ‘Install Now’ and then ‘Activate’ to enable its functionality.

memory usage

With the memory usage plugin installed, you can now access detailed insights into your website’s memory consumption, helping you identify any issues or bottlenecks that may be affecting its performance. Regularly monitoring your memory usage is essential for maintaining a well-functioning website and making informed decisions to enhance its efficiency and responsiveness.

memory usage

What I Do

With a focus on SEO, organic growth and long-term results, I combine design, technology and digital marketing to create solutions that support your business goals.

Web Design

WordPress websites with responsive design, seamless functionality and a user-friendly experience that turns visitors into enquiries.

SEO

SEO strategies that improve search engine rankings, increase organic traffic and help you reach the right audience through content, keywords and performance.

Google Ads

Google Ads campaigns that drive leads, boost brand awareness and deliver results through optimised ad placements and audience targeting.

ChatGPT Ads

OpenAI switched on ChatGPT Ads in South Africa on 21 October 2026. I set up and manage campaigns so your business shows up in the chat.

Social Media

Social media marketing on Facebook, Instagram and LinkedIn that builds brand presence, increases engagement and strengthens customer relationships.

What My Clients say

Posted on Google Google
Deshani Naik profile picture
Deshani Naik
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
⭐⭐⭐⭐⭐ Working with Daleen has been an absolutely exceptional experience! What truly sets Daleen apart is her ability to **listen, understand and see the potential in your business, sometimes even beyond what you initially envisioned for yourself.** She takes the time to investigate your industry, understand what makes your business unique and identify how your website can genuinely help you stand out. When I approached her about the Get Me Wed website, I felt that our existing design had become somewhat stagnant and dated. Daleen quite literally breathed new life into it! She understood my vision, embraced the brief and transformed it into something modern, fresh and exciting. In fact, she's inspired me to want to do even more within my own business, simply so that I can create more opportunities for her to showcase what we do! Beyond her creativity and technical expertise, Daleen has an incredible understanding of business. She doesn't just develop websites; she understands **what a website needs to achieve for the business behind it.** Her knowledge, practical approach and business acumen make her an invaluable partner to any entrepreneur looking to grow. She's also an absolute pleasure to work with. Warm, professional, efficient and always on the ball, she embraces the flexibility of modern working life while remaining accessible, responsive and committed to delivering exceptional results. Daleen has made the process of reimagining the Get Me Wed website an absolute joy. I am genuinely grateful for her enthusiasm, insight and the value she has brought to my business. **I cannot recommend her highly enough. You're not simply investing in a website; you're working with someone who genuinely adds value to your business and inspires you to see its potential in a whole new light.** Thank you Daleen! ❤️
Posted on Google Google
Calvin Holder profile picture
Calvin Holder
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
I entrusted my company's digital marketing campaign with Daleen Prinsloo and there hasnt been a single moment where i've regretted that decision. Daleen is professional and talented in what she does. I highly recommend her to anyone looking for online exposure.
Posted on Google Google
Jennifer Foster profile picture
Jennifer Foster
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
I can highly recommend Daleen! She did an absolutely amazing job creating my school's website. From start to finish, she was professional, creative, patient and incredibly helpful. She truly went the extra mile to make sure everything was just right and that the website reflected the heart and personality of our school. Her dedication, attention to detail and willingness to go above and beyond made the whole experience such a pleasure. I am absolutely delighted with the end result! Thank you, Daleen, for your outstanding service and for putting so much care into your work. You are a star! Highly recommended!
Posted on Google Google
Seascape Travels profile picture
Seascape Travels
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
It’s always such a pleasure working with Daleen! She has done a wonderful job upgrading my website and continues to help me maintain it, making updates and changes whenever needed. She’s creative, knowledgeable, professional and always willing to help. Her service is excellent, and she offers great value for money. I’m so happy with the work she does and would highly recommend her to anyone looking for a reliable and talented website designer!
Posted on Google Google
Duan Lombard profile picture
Duan Lombard
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
What a wonderful experience. From the initial brief to delivery of the final product. Rare that you get an artist that takes the time and effort to understand the needs of the client. Thank you Daleen.
Posted on Google Google
Carita van Niekerk profile picture
Carita van Niekerk
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
Always a pleasure to work with Daleen! Quick and excellent service! Would highly recommend Mc
Posted on Google Google
Eugene Botha profile picture
Eugene Botha
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
Daleen had made a huge difference in my media exposure and the professional look and feel of our website and social media posts.
Posted on Google Google
Marda Hull profile picture
Marda Hull
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
What a pleasure to work with Daleen. She has in depth knowledge of the digital world & she made suggestions on how to maximise my reach, which goes way beyond a website & social media. She is easy to work with and delivers in good time and what she sets out to do. Thank you Daleen for excellent work.
Posted on Google Google
Stephani Botha profile picture
Stephani Botha
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
I highly recommend Daleen. I approached her to breathe new life into my website and strengthen my online presence, and she exceeded all my expectations. She went above and beyond, delivering far more than I had hoped for. I’m incredibly happy with the results and truly grateful for her dedication and hard work.
Posted on Google Google
marti-mari kellerman profile picture
marti-mari kellerman
Google star 1Google star 2Google star 3Google star 4Google star 5Trustindex verifies that the original source of the review is Google.
Daleen is professional and delivers excellent, fast and efficient service. I can definitely recommend her to anyone who needs assistance with Google Ads.
Verified by Trustindex
Trustindex verified that these reviews were published on Daleen Prinsloo Digital & Design's Google Business Profile. Learn more