How to increase WordPress Memory Limit, Max Input Time, Max Input Vars, Upload Max Size, Max Execution Time, Post Max Size in just 2 min.

#1. By editing the .htaccess file

php_value memory_limit 512M
php_value upload_max_filesize 512M
php_value post_max_size 512M
php_value max_execution_time 5000
php_value max_input_time 5000
php_value max_input_vars 5000

#2. By editing wp-config.php

Add this to the top, before the line that says, “Happy Blogging”:

set_time_limit(300);
define (‘WP_MEMORY_LIMIT’, ‘256M’);

#3. By editing php.ini

Search for the below terms and increase them as per your requirements

post_max_filesize = 64M
upload_max_filesize = 64M
memory_limit = 32M
max_execution_time = 40
max_input_vars = 2000
max_input_time = 1000

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: