How to Increase WordPress Memory Limit Print

  • 0

If you see "Allowed memory size exhausted" errors:

Method 1: wp-config.php

Add before "That is all, stop editing!":

```php

define(WP_MEMORY_LIMIT, 256M);

define(WP_MAX_MEMORY_LIMIT, 512M);

```

Method 2: .htaccess

Add:

```

php_value memory_limit 256M

```

Method 3: php.ini or .user.ini

Create .user.ini in root folder:

```

memory_limit = 256M

```

Method 4: Plesk PHP Settings

1. Go to Websites & Domains

2. Click PHP Settings

3. Find memory_limit

4. Set to 256M or higher

5. Click Apply

Note: Your hosting plan has maximum limits. If you need more memory than your plan allows, consider upgrading.


Was this answer helpful?

« Back