# How to increase WordPress memory limit

> Want to easily increase the WordPress memory limit? Here’s the proper way to do it.

Author: Farhan Munim  
Published: 13 February 2024  
Updated: 27 October 2026  
Tags: PHP  
Source: https://farhan.app/blog/how-to-increase-wordpress-memory-limit/

1.  Open your WordPress files via the file manager inside of your hosting or FTP.
2.  Locate the <code>wp-config.php</code> file which should be in the root (very top) of your website hierarchy and open to edit
3.  Locate the area which says <code>/\* Add any custom values between this line and the “stop editing” line. \*/</code> and paste in the snippet below this post just below this this (adjust the memory size as required) and then save!

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

Whether you use Bricks Builder or not, [here](https://academy.bricksbuilder.io/builder/setup/requirements/#wp-memory-limit) is a great post from the Bricks team to increase other limits.
