There are two methods for increasing WordPress memory:
- Contact your hosting company and ask them to do that
- 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.
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:
If you have access to
PHP.ini file, look for a line like below:
memory_limit = 32M ; Maximum amount of memory a script may consume
Then change the number to something bigger like 256M
memory_limit = 256M ; Maximum amount of memory a script may consume
Try pasting following code into
.htaccess.php if neither of previous methods worked.
php_value memory_limit 256M
.htaccess.phpcould break your website.