> ## Documentation Index
> Fetch the complete documentation index at: https://kb.verpex.com/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Increase WordPress Memory Limit

Follow these steps to increase WordPress memory limit:

* Log into your cPanel from within your Verpex client account
* Locate and click the **File manager** menu in the **Files** section
* Click **Public\_html**
* Search and select **wp-config.php** file and right- click Edit
* Add the following code right before the / *That's all, stop editing! Happy blogging.*/' line:

```text memory_limit code theme={null}
define( 'WP_MEMORY_LIMIT', '512M' );
```

You can enter any value where 512M  was stated. 512M is the memory limit you want to set:

You can also change the WP\_MEMORY\_LIMIT via the wp-includes folder and edit the default-constants.php file.

To confirm whether your changes have got into effect, create a PHP info.php file. To create an info.php file, follow the steps in this [guide](/cpanel/how-to-create-a-phpinfo).
