Increase Max Upload Size So Demo Content Import Does Not Fail in WordPress

Ofter you will try to import demo data, only to have your import time out, and you are left with a WordPress site that doesn’t have all the images uploaded and/or the posts inserted. If you try to import again, you will be left with duplicate posts and menus. Deleting all posts is a pain. The best solution is, before you even import your WordPress dummy data, to make sure you increase you max upload size so your server doesn’t time out. Add the following piece of code to the .htaccess file in the root directory of your WordPress installation. You will need to FTP into your server to do this.

*Your .htaccess file is a hidden file, so make sure you enable “show hidden files” with whatever FTP client you are using.

# BEGIN Increase Max Upload Size
php_value upload_max_filesize 32M
php_value post_max_size 32M
php_value max_execution_time 300
php_value max_input_time 300
php_value memory_limit 128M
# END Increase Max Upload Size