I needed to make the following changes to /xcart/download.php
ini_set("memory_limit", "256M");
ini_set('zlib.output_compression', '0');
set_time_limit(1000);
I added these near the top of the script. It increases memory, turns off zlib compression and changes the time limit for this script only. This is better than changing php.ini file.