You are currently viewing How to increase memory limit in WordPress

How to increase memory limit in WordPress

Increasing the memory limit in WordPress sometimes its really important to run website  , because hosting provider set default memory limit is lower. the reason your website will not load properly or web site getting memory limit error. then you must need Increase the memory limit .

how to increase memory limit in wordpress

Let start , we can Increase memory limit by four method , you can follow any one .

1. Increase memory limit via php.ini

If you have to access php.ini then you can easily set the limit . please login your cpanel then go to file manager and find php.ini file & change the line in php.ini If your line shows 32M try 64M:

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

Or create a file with the name ‘php.ini’ in the directory where your WordPress site is installed & add the command :

memory_limit = 64M

2. If you don’t have access to your PHP.ini file , Edit your wp-config.php file and enter something like:

define(‘WP_MEMORY_LIMIT’, ’64M’);

3. Modifying the .htaccess file to Increase the Memory Limit
try adding this to an .htaccess file:

php_value memory_limit 64M

4. You may contact your web hosting provider , they should increase your php memory limit .

Note : Don’t try to implement all the 4 methods at the same time.

Jobair Alam Bipul

I'm Jobair Alam, a cPanel Certified WHM/cPanel server administrator and web hosting expert with over 10 years of experience in the industry.

Leave a Reply

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

HostArmada - Affordable Cloud SSD Web Hosting