Increase WordPress Memory Limit, Max. Input Vars

By March 14, 2016Wordpress

Put the following code in any one of the following given files.

WP-CONFIG VALUES
define( ‘WP_MEMORY_LIMIT’, ‘256M’ );
ini_set(‘max_execution_time’, 300);
set_time_limit(300);
ini_set(‘post_max_size’, ‘256M’);
ini_set(‘upload_max_filesize’, ‘256M’);

.HTACCESS VALUES
php_value max_input_vars 9999
php_value suhosin.post.max_vars 9999
php_value suhosin.request.max_vars 9999
php_value memory_limit 256M
php_value post_max_size 512M
php_value upload_max_filesize 256M
php_value max_execution_time 6000

PHP.ini
upload_max_filesize = 256M
post_max_size = 512M
max_execution_time = 3000
memory_limit = 256M
max_input_vars = 6000

Leave a Reply