Helping you build a better website
(and other interesting web stuff)

CSSHTMLJavaScriptjQueryMSSQLMySQLPHPSilvaTechnologiesWordpress
Silva Web Designs - Blog

How to increase WordPress Memory Limit

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, 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 an .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.

 

Nathan da Silva - Profile

Posted by: Nathan da Silva

Nathan is the Founder of Silva Web Designs. He is passionate about web development and web site design. His expertise is WordPress & Magento as well as many other frameworks. Would you like to work with Nathan? Send him an email on [email protected]

It’s good to share

Join the discussion