Zen Cart Logo
Forums / Managing Customers and Orders / 403 Error when downloading

403 Error when downloading

Locked

Views: 3,519

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
7 Jun 2006, 10:16 PM
#1
sparktronic avatar

sparktronic

Zen Follower

Join Date:
Nov 2005
Location:
Rochester, New York
Posts:
153
Plugin Contributions:
0

403 Error when downloading

I have several files that download. Some for free and some after payment. I have tested them and everything was working but now I am getting:
Forbidden
You don't have permission to access /store/pub/.wedejlyoprygvnhb/foiapkg.zip on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

I have a fresh copy of 1.3 with the 1.31 upgrade. All items were put on fresh. I have a unix server and set all permissions as you require. The pub folder is set at 777 I re-uploaded all the zip files which are all less than 50k. No changes to my sever was made according to the host. Am I doing something wrong?

8 Jun 2006, 3:46 AM
#2
sparktronic avatar

sparktronic

Zen Follower

Join Date:
Nov 2005
Location:
Rochester, New York
Posts:
153
Plugin Contributions:
0

Re: 403 Error when downloading

I forgot to mention, my url is rochesterlaw.org/store/ if you try ordering a free item you will see what I am talking about. I also check and re-uploaded the .htaccess file thinking that may be it. Still can't figure it out. I did not see any threads on this.

8 Jun 2006, 3:49 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: 403 Error when downloading

Set /pub to 777

Does this help?

8 Jun 2006, 3:50 AM
#4
sparktronic avatar

sparktronic

Zen Follower

Join Date:
Nov 2005
Location:
Rochester, New York
Posts:
153
Plugin Contributions:
0

Re: 403 Error when downloading

pub is set at 777

8 Jun 2006, 3:51 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: 403 Error when downloading

Scratch that ...

Check that even though you set /pub to 777 it really is 777 :smile:

Then check if this is correct, if you turn Redirect to OFF does it work?

Check the two .htaccess files in /pub and /download match

Your files should be in /download and not in subdirectories for it ...

You should not have spaces, special characters etc. and it would be best if Zipped ...

8 Jun 2006, 3:52 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: 403 Error when downloading

Also, how large are your files?

If large, do tiny zips work?

8 Jun 2006, 3:55 AM
#7
sparktronic avatar

sparktronic

Zen Follower

Join Date:
Nov 2005
Location:
Rochester, New York
Posts:
153
Plugin Contributions:
0

Re: 403 Error when downloading

I went on my cpanel for the site and found that the pub folder is at 777. I also looked at the htaccess files which were downloaded from the 1.31.full version. The download is:
#prevent directory browsing -- for security
IndexIgnore /

AuthType Basic
AuthName "No access"
AuthUserFile .htnopasswd
AuthGroupFile /dev/null
Require valid-user

And the pub is:
#prevent directory browsing -- for security
IndexIgnore /

Options +FollowSymLinks -Indexes

I do not have any spaces in the zip files and they are all zipped and under 50K

Where is re-direct found

8 Jun 2006, 3:59 AM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: 403 Error when downloading

Okay ... turn of the Redirect in the Attribute Settings ...

A lot of hosting sites for some reason do not set you up so that the symbolic links in the .htaccess work ... go figure?

See if turning that off works ...

8 Jun 2006, 4:03 AM
#9
sparktronic avatar

sparktronic

Zen Follower

Join Date:
Nov 2005
Location:
Rochester, New York
Posts:
153
Plugin Contributions:
0

Re: 403 Error when downloading

I did shut the redirect off in admin/attributes. It will pop up and ask to save. Why would it work when I set it up and then stop. If this is the way it has to work, fine, just curious and thanks for your help!

8 Jun 2006, 4:15 AM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: 403 Error when downloading

If you are asking why does the Redirect OFF make this work, it is because your hosting site does not have you configured to utilize the symbolic links where your downloads are hidden before downloading ...

You could ask them why that does not work for you ... just send them the contents of the .htaccess file and they should be able to fix it or explain why they won't ...

8 Jun 2006, 4:19 AM
#11
sparktronic avatar

sparktronic

Zen Follower

Join Date:
Nov 2005
Location:
Rochester, New York
Posts:
153
Plugin Contributions:
0

Re: 403 Error when downloading

Okay, I did send them a message. 2 days ago it was redirecting to a cart page to get the downloads. I have inquirey in to find out why its not working today. It was real sleek having it go to the catalog page to download, but as long as they get the file, I guess its okay. Thanks again for your expertise. I have been using this cart for a few months now and will make a contribution soon. Was trying to generate some moneyto send it off.