Ok recurring for customers but not for me! Of course in trying to troubleshoot my customer's reported problems with downlaods, I can barely ever recreate the problem.

The bottom line is my site sells digital downloads (zips) only so it's our whole business. Our customers are so frustrated and I've hunted for several months now all over the internet and this site for different things to try to resolve this intermittent but often problem.

Here is background info:

1) dedicated server
2) Linux 2.6.9-67.0.4.ELsmp
3) Database: MySQL 5.0.45
4) PHP version 5.2.5 running as apache, not cgi
5) zencart 1.3.7
6) zip size range from 2 megs to 60 megs
7) configure command:
'./configure' '--enable-bcmath' '--enable-calendar' '--enable-exif' '--enable-ftp' '--enable-gd-native-ttf' '--enable-libxml' '--enable-magic-quotes' '--enable-mbstring' '--enable-pdo=shared' '--enable-soap' '--enable-sockets' '--enable-wddx' '--enable-zend-multibyte' '--enable-zip' '--prefix=/usr/local' '--with-apxs=/usr/local/apache/bin/apxs' '--with-curl=/opt/curlssl/' '--with-freetype-dir=/usr' '--with-gd' '--with-gettext' '--with-imap=/opt/php_with_imap_client/' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr' '--with-kerberos' '--with-libexpat-dir=/usr' '--with-libxml-dir=/opt/xml2/' '--with-mcrypt=/opt/libmcrypt/' '--with-mhash=/opt/mhash/' '--with-mime-magic' '--with-mm=/opt/mm/' '--with-mysql=/usr' '--with-mysql-sock=/var/lib/mysql/mysql.sock' '--with-mysqli=/usr/bin/mysql_config' '--with-openssl=/usr' '--with-openssl-dir=/usr' '--with-pdo-mysql=shared' '--with-pdo-sqlite=shared' '--with-pgsql=/usr' '--with-png-dir=/usr' '--with-pspell' '--with-sqlite=shared' '--with-tidy=/opt/tidy/' '--with-ttf' '--with-xmlrpc' '--with-xpm-dir=/usr/X11R6' '--with-xsl=/opt/xslt/' '--with-zlib' '--with-zlib-dir=/usr'

8) customer complains that download stops midstream or starts then immediately stops without downloading anything. They try to open up the zip and it's shows as incomplete or invalid.

9) cpanel error log shows these types of lines frequently. Now I can't even debug the download code to get at the temporary symbolic link so I know that these errors are not coming up as a result of the users click on a link that was given to someone else:

[Mon Mar 31 11:38:49 2008] [error] [client 205.188.116.145] File does not exist: /home/xxx/public_html/shop/pub/.cnkhvgkeyrnekqxcuv/mycharmedlife_part1.zip
[Mon Mar 31 11:38:49 2008] [error] [client 205.188.117.69] File does not exist: /home/xxx/public_html/shop/pub/.pfvuujdowfouvtlpqk/mycharmedlife_part1.zip
[Mon Mar 31 11:38:49 2008] [error] [client 205.188.117.8] File does not exist: /home/xxx/public_html/shop/pub/.vipzcpuhbqrixlggrz/mycharmedlife_part1.zip
[Mon Mar 31 11:37:28 2008] [error] [client 205.188.117.69] File does not exist: /home/xxx/public_html/shop/pub/.euvyeeuvdwimnvgkx/mycharmedlife_part1.zip
[Mon Mar 31 11:37:28 2008] [error] [client 205.188.116.80] File does not exist: /home/xxx/public_html/shop/pub/.yxzcvyhrbcbkhfkkpd/mycharmedlife_part1.zip
[Mon Mar 31 11:36:37 2008] [error] [client 205.188.117.69] File does not exist: /home/xxx/public_html/shop/pub/.euvyeeuvdwimnvgkx/mycharmedlife_part1.zip
[Mon Mar 31 11:36:37 2008] [error] [client 205.188.116.80] File does not exist: /home/xxx/public_html/shop/pub/.yxzcvyhrbcbkhfkkpd/mycharmedlife_part1.zip

10) I wonder why the download header_php.php has to unlink all files in the directory with this line of code. Wondering if timing of the unlinking is such that
it's impacting simultaneous attempts at running this code. One user it's unlinking and another user just had it's symbolic link created and yet now has been unlinked. Wish this unlinking could occur on some frequency using a cron script instead of programmatically. I have temporarily commented this line out to see if if helps resolve the errors above. But I doubt this will solve the problem of a download stopping mid-stream.

zen_unlink_temp_dir(DIR_FS_DOWNLOAD_PUBLIC);

9) for the mid-stream halting issue, here are the related php settings:

max_execution_time600600max_input_nesting_level6464max_input_time600600memory_limit64M64Mopen_basedir/home/xxx:usr/lib/php:/usr/local/lib/php:/tmpno valueoutput_bufferingno valueno valueoutput_handlerno valueno valuepost_max_size64M64M

My Apache web server time out settings shows "10" so I'm wondering if that should be increased?

Thanks in advance for any guidance you can give!