There are two methods for increasing WordPress memory:

  1. Contact your hosting company and ask them to do that
  2. Increase it yourself manually

1- Contact Your Hosting Company

This could be the best option if you are beginner or other methods didn’t work. If your hosting provider has support service, contact them and ask to increase your WordPress memory (maybe they say: “it’s out of our support policy”).

2- Do it Yourself

For doing it yourself, you need to edit one or some files on your WordPress site. They are located in your WordPress site root folder or somewhere around, and you will need to use an FTP client or file manager in your web hosting control panel.

WordPress memory can be different from server memory.

Edit wp-config.php

Normally this file is in your website root file. Search for this phrase: “stop editing! Happy blogging” and paste following code right before that line:

Edit PHP.ini

If you have access to PHP.ini file, look for a line like below:

Then change the number to something bigger like 256M

Edit .htaccess.php

Try pasting following code into .htaccess.php if neither of previous methods worked.

Be careful, any mistake in .htaccess.php could break your website.