I would like to allow anonymous users to download a .gz (gzip) file from my site. However, this is not working as expected. Here are the steps I have taken to attempt to set this up:
1. Using cPanel, upload file to /download
2. Visit http://www.mcgladrey-family.us/download/setflash.pl.gz
Result: got error 500 from Apache.
3. Visit http://www.mcgladrey-family.us/download/
Result: got index page
4. Click on setflash.pl.gz
Result: got error 500 from Apache
5. Using cPanel, create new file in /download. File contents are:
AddType application/octet-stream .gz
6. Using cPanel, save file as .htaccess
7. Using cPanel, chmod 604 .htaccess
8. Visit http://www.mcgladrey-family.us/download/setflash.pl.gz
Result: got error 500 from Apache.
9. Visit http://www.mcgladrey-family.us/download/
Result: got index page
10. Click on setflash.pl.gz
Result: got error 500 from Apache
11. Using cPanel, view error log
[2003-05-17 11:48:16]: error: file has no execute permission: (/home/kmcgladr/public_html/download/setflash.pl.gz)
12. Using cPanel, chmod 777 /download/setflash.pl.gz
13. Visit http://www.mcgladrey-family.us/download/setflash.pl.gz
Result: got error 500 from Apache
14. Using cPanel, view error log
[2003-05-17 11:52:25]: error: file is writable by others: (/home/kmcgladr/public_html/download/setflash.pl.gz)
15. Using cPanel, chmod 755 /download/setflash.pl.gz
15. Visit http://www.mcgladrey-family.us/download/setflash.pl.gz
Result: got error 500 from Apache
16. Using cPanel, chmod 555 /download/setflash.pl.gz
17. Visit http://www.mcgladrey-family.us/download/setflash.pl.gz
Result: got error 500 from Apache
As an additional problem, the error log is no longer displaying new errors regarding that file since 11:52:25.
Problem is consistent across Mozilla and Konqueror.
Non-gzip files are downloadable from the /download folder. However, the file in question is a Perl script, and Apache (by default) attempts to execute the file.