How do I increase my Wordpress Memory Limit?

Linode Staff

How do I increase my Wordpress Memory Limit?

1 Reply

One of the most common errors you will run into with Wordpress is the Memory Limit error. Luckily you can easily fix it by increasing the php memory limit in WordPress

To do this you will need to edit the wp-config.php file on your WordPress site. This is located in your WordPress site's root folder, and you will need to use an FTP client or file manager in your web hosting control panel.

This file is usually located under /var/www/html/example.com/public_html. (Replace example.com with your own website)

Next, you need to paste the code listed below in wp-config.php file just before the line that says 'That's all, stop editing! Happy blogging.'

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

I have posted a link below to a guide on how to edit wp-config.php file in WordPress.

How-to-edit-wp-config-php-file-in-wordpress

I hope this was helpful.

Alex
Linode Support Team

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct