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.

By editing .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

By editing wp-config.php

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

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

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

0 0 votes
Article Rating
Notify of

Inline Feedbacks
View all comments

Start typing and press Enter to search