WordPress / Web Development Tutorials
(Best WordPress Tutorials)

CSSHTMLJavaScriptjQueryMySQLPHPSilvaTechnologiesWooCommerceWordpress
Silva Web Designs - Blog

How to increase WordPress Memory Limit

In this tutorial, we are going to show you how you can increase your WordPress memory limit using various methods.

If you are getting an error saying something along the lines of “Not Enough Memory allowed for PHP. You have 32 MB. You need at least 64MB” then you can usually resolve this by completing one of the below steps:

How to Increase WordPress Memory Limit

1.) Edit your wp-config.php file and enter something like:


    define('WP_MEMORY_LIMIT', '64M');

2.) If you have access to your PHP.ini file which you can usually access via cPanel or Plesk, change the line in PHP.ini

If your line shows 32M try 64M:-


    memory_limit = 64M; #Maximum amount of memory a script may consume (64MB)

You can always contact your web hosting provider to make the change if you are unsure.

3.) If you don’t have access to PHP.ini try adding this to your .htaccess file:


    php_value memory_limit 64M

If none of the above works for you, the only option you have is to contact your host and they can quickly get this resolved for you. If you want some support, you can always get in touch with our team or leave a comment below.

 

Nathan da Silva - Profile

Posted by: Nathan da Silva

Nathan is the Founder of Silva Web Designs. He is passionate about web development, website design and basically anything digital-related. His main expertise is with WordPress and various other CMS frameworks. If you need responsive design, SEO, speed optimisation or anything else in the world of digital, you can contact Silva Web Designs here; [email protected]

It’s good to share

One thought on “How to increase WordPress Memory Limit

Join the discussion

Related Posts

Related - How To Fix “Unable to connect to the filesystem. Please confirm your credentials” In WordPress

Wordpress / 16th March 2025

How To Fix “Unable to connect to the filesystem. Please confirm your credentials” In WordPress

Read More Related - Add Instagram Photos to Your Website or WordPress Website

JavaScript / 24th November 2020

Add Instagram Photos to Your Website or WordPress Website

Read More