🛍️🛍️

Days
Hours
Minutes
Seconds

💸  [Extended] BFCM Sale! Get up to 50% OFF!

Documentation

How to increase the PHP Memory Limit of the site?

Though WordPress is very memory savvy, sometimes the plugins can make the assigned memory run out. In such cases, you can use the following methods to increase WordPress's Memory Limit.

For Novice Users#

The simplest way to increase the PHP Memory Limit is to ask your Hosting Provider to do it for you.

For Advanced Users#

Developers, website designers, the experimentalist can use any of the following methods to increase the PHP Memory Limit.

Edit your wp-config.php file#

Add this line to the top before the line that says “Happy Blogging” in the wp-config.php file.

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

Edit php.ini file#

If you have access to the php.ini file, which can be easily found in the server file manager, change/add the following line in php.ini
If your line shows 32M, try 128M:

memory_limit = 256M ; Maximum amount of memory a script may consume (64MB)

If you do not have access to php.ini file then you can add your own .user.ini file in the websites directory and add the code mentioned above into it. This is often considered safer since it does not affect the settings in phi.ini file.

Edit your .htaccess file#

If you don't have access to your php.ini file, then add the following line to your .htaccess file.

php_value memory_limit 256M

Not the solution you are looking for?

Please check other articles or open a support ticket.

Download PowerPack Free

Subscribe to receive latest updates, announcements, offers, deals & discounts.