Jump to content

Recommended Posts

Posted

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.

Posted

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

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...