WordPress Hassles with file size uploads

For the last week or so I’ve been working on the beta version of the new StereoType Records website, but I’ve been hitting file size limitations at every turn.
After a number of calls to my host I decided that I was going to try and fix it myself. One of the error messages I received was while importing data from the current install:

“File upload failed. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini.”

After about an hour’s diggin and sifting, I cam across a php.ini ‘template’ that seems to fit my needs, and most importantly, it resolved my file permissions and upload limit issue.

Here is the code: (found here)

register_globals = off
allow_url_fopen = off

expose_php = Off
max_input_time = 600
variables_order = “EGPCS”
extension_dir = ./
upload_tmp_dir = /tmp
precision = 12
memory_limit = 64M
post_max_size = 64M
file_uploads = On
upload_max_filesize = 64M

Man am I glad that’s over.  Now, on to the next hiccup we go…