Premium WordPress Themes and Support


There will be times where you will need to increase your site’s memory, execution time, and/or upload sizes. Here are 3 methods you might use to change the settings.

1 – Functions.php file:

@ini_set( ‘upload_max_size’ , ’64M’ );
@ini_set( ‘post_max_size’, ’64M’);
@ini_set( ‘max_execution_time’, ‘300’ );

If  the above does not work:

2 – .htaccess file:

php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300

If the .htaccess approach does not work either, then you can try using:

3 – php.ini file:

Note: If you hosting is shared, then you will not have access to the php.ini file. Here is a little trick to combat that: Create a php.ini file in your WordPress site’s root folder

upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300

You could of course change and experiment the actual values of each setting.

Leave a Reply