kmcgladr Posted May 17, 2003 Posted May 17, 2003 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. Quote
TCH-JimE Posted May 18, 2003 Posted May 18, 2003 Hi, Download Winzip and zip and produce an .exe so they can unzip it the other end or just a normal zip file. Or, resave it as a text file and when they have download it, open it in notepad and resave as a .pl file Jim Quote
rayners Posted May 19, 2003 Posted May 19, 2003 Here's a strange thought. Try taking the .pl out of the name. There may be some strange hiccup in the server config causing it to try and run the file instead of just sending it to the user because of the .pl in the filename. Files with the .gz extension have worked fine for many months on my site. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.