Internal Server Error 500 when downloading digital products

I ran a test of my shopping cart and everything works great until I try to use the download link and then it just times out and give me a 500 error. I am using amazon S3 to house the file as it is large.