• Login
en
afsqam ar hy az eu be bn bs bg ca ceb ny zh-CN zh-TWco hr cs da nl en eo et tl fi fr fy gl ka de el gu ht ha haw iw hi hmn hu is ig id ga it ja jw kn kk km ko ku ky lo la lv lt lb mk mg ms ml mt mi mr mn my ne no ps fa pl pt pa ro ru sm gd sr st sn sd si sk sl so es su sw sv tg ta te th tr uk ur uz vi cy xh yi yo zu
Victor Mochere
No Result
View All Result
  • Business
  • Finance
  • Education
  • Travel
  • Technology
  • Living
  • Entertainment
  • Governance
  • Sports
en
afsqam ar hy az eu be bn bs bg ca ceb ny zh-CN zh-TWco hr cs da nl en eo et tl fi fr fy gl ka de el gu ht ha haw iw hi hmn hu is ig id ga it ja jw kn kk km ko ku ky lo la lv lt lb mk mg ms ml mt mi mr mn my ne no ps fa pl pt pa ro ru sm gd sr st sn sd si sk sl so es su sw sv tg ta te th tr uk ur uz vi cy xh yi yo zu
Victor Mochere
No Result
View All Result
en
afsqam ar hy az eu be bn bs bg ca ceb ny zh-CN zh-TWco hr cs da nl en eo et tl fi fr fy gl ka de el gu ht ha haw iw hi hmn hu is ig id ga it ja jw kn kk km ko ku ky lo la lv lt lb mk mg ms ml mt mi mr mn my ne no ps fa pl pt pa ro ru sm gd sr st sn sd si sk sl so es su sw sv tg ta te th tr uk ur uz vi cy xh yi yo zu
Victor Mochere
No Result
View All Result
Home Passé

How to increase WordPress memory limit

Victor Mochere by Victor Mochere
in Passé, Technology
Reading Time: 3 mins read
A A
0
How to increase WordPress memory limit

WP memory limit is the maximum amount of memory (RAM) that a website can use at one time. Once the allocated memory limit is exhausted, your website will start to encounter a fatal error. Some of the factors that contribute to the exhaustion of the WP memory limit include; WordPress itself, the theme being used and also the list of active plugins. The more complex  and bigger your website is, the more memory it needs. The default memory limit for WordPress is 32MB. 

32MB memory limit may be ideal for small websites with limited number of plugins and visitors. Installing a fully functional demo of a premium theme that require a large list of custom plugins to be installed too, may require you to increase the WP memory limit. Generally, it’s advisable that once you start encountering the ‘Fatal Error: Memory Size Exhausted’ error, you should increase your website’s WP memory limit.

RelatedPosts

How to build a hospital management software system

How hospital management systems improve efficiency in healthcare delivery

How to remove watermarks from ChatGPT text

Things to know about Starlink satellite internet

How to increase WP memory limit

The recommended WordPress memory limit is 256MB.

a. wp-config.php

  1. Locate the wp-config.php file in the root directory of your WordPress installation. Using cPanel or FTP/SFTP, go to File Manager > public_html.
  2. Locate the wp-config.php file under the public_html folder, right click on it and select the ‘Edit’ option.
  3. Locate the line that has; define( ‘WP_MEMORY_LIMIT’, ’32M’ );
  4. Change the memory limit from 32M to 256M.
  5. Save the wp-config.php file then refresh your website.

b. php.ini

  1. Locate the php.ini file. If you can not find it, then simply create your own php.ini file and place it in the root directory of your WordPress installation. Using cPanel or FTP/SFTP, go to File Manager > public_html.
  2. Locate the .php.ini file under the public_html folder, right click on it and select the “Edit” option.
  3. Locate the line that has; memory_limit = 32M. If you created your own php.ini file, ensure you add the line.
  4. Change the memory limit from 32M to 256M.
  5. Save the php.ini file then refresh your website.

Some shared hosting providers restrict you from accessing the php.ini file. This method is only applicable in case you have direct access to your php.ini file or if you are running your WordPress on a local host. It is good to note as well that this method only affects your PHP memory limit.

c. .htaccess

  1. Locate the .htaccess file in the root directory of your WordPress installation. If you can’t find it then it might be hidden. Make sure to check your hidden files when locating it. Using cPanel or FTP/SFTP, go to File Manager > public_html.
  2. Locate the .htaccess file under the public_html folder, right click on it and select the “Edit” option.
  3. Locate the line that has; php_value memory_limit 32M. If you can’t find that line, you can simply add it before the # END WordPress line.
  4. Change the memory limit from 32M to 256M.
  5. Save the .htaccess file then refresh your website.
Tags: WordPress
Previous Post

Why the rise of drones in construction

Next Post

How to increase WordPress maximum file upload size

Victor Mochere

Victor Mochere

Blogger, internet personality, and netpreneur creating and marketing digital content.

Related Posts

Top 10 most populous cities in Africa
Living

Top 10 most populous cities in Africa 2025

Influencer marketing strategies for real estate
Business

Influencer marketing strategies for real estate

How to disable PHP error logs
Passé

How to disable PHP error logs

Bruno Mars Net Worth
Finance

Bruno Mars Net Worth 2025

Top 10 countries with the lowest murder rates in Africa
Living

Top 10 countries with the lowest murder rates in Africa 2025

Best songs to help you stay focused
Living

Best songs to help you stay focused

Next Post
How to increase WordPress maximum file upload size

How to increase WordPress maximum file upload size

Leave a Reply Cancel reply

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

I agree to the Terms & Conditions and Privacy Policy.

Trending articles

  • Why hemp oil is good for dogs

    Why hemp oil is good for dogs

    1 shares
    Share 0 Tweet 0
  • How to apply for the Pinterest Verified Merchant Program

    1 shares
    Share 0 Tweet 0
  • How to escape from a sinking car

    0 shares
    Share 0 Tweet 0
  • It’s my birthday, but who cares

    1 shares
    Share 0 Tweet 0
  • African countries and their current presidents 2025

    1 shares
    Share 0 Tweet 0

Latest articles

The 20 largest floral tributes of all time
Living

The 20 largest floral tributes of all time

by Victor Mochere
0

Floral tributes have long served as a universal language of mourning, reverence, and collective memory. Yet, on rare occasions, grief...

Read moreDetails
How to build a hospital management software system

How to build a hospital management software system

How hospital management systems improve efficiency in healthcare delivery

How hospital management systems improve efficiency in healthcare delivery

Top 20 best defended countries in the world

Top 20 best defended countries in the world

How powerful is the Catholic Church?

How powerful is the Catholic Church?

Recommended articles

Top 10 largest companies in the world with female CEOs
Business

Top 10 largest companies in the world with female CEOs 2025

by Victor Mochere
0

It's often said that the glass ceiling in corporate boardrooms is still intact. However, those women who do make it...

Read moreDetails

Top 20 countries with the largest foreign exchange reserves 2025

Types of swimming styles and strokes

How to fix game lag on PC

How to overcome cybersecurity challenges

Victor Mochere

Victor Mochere is one of the biggest informational blogs on the web. We publish well curated up-to-date facts and important updates from around the world.

Sections

  • Business
  • Education
  • Entertainment
  • Finance
  • Flacked
  • Governance
  • Living
  • Passé
  • Sports
  • Technology
  • Travel

Follow us

  • Advertise
  • Disclaimer
  • Cookies
  • Privacy Policy
  • Copyright
  • DMCA
  • Guest blogger
  • Blog tip
  • Contact us

© 2025 Victor Mochere. All rights reserved.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
[gtranslate]
No Result
View All Result
  • Login
  • Sections
    • Business
    • Finance
    • Education
    • Travel
    • Technology
    • Living
    • Entertainment
    • Governance
    • Sports
  • About us
  • Victor Mochere Biography
  • Sitemap
  • Social Media Policy
  • Corrections
  • Comment Policy

© 2025 Victor Mochere. All rights reserved.

This website uses cookies. By continuing to use this website you are giving consent to cookies being used. Visit our Cookie Policy.