Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / You don't have permission to access /pub/.abcdefghijklmnop/thefile.zip on this server

You don't have permission to access /pub/.abcdefghijklmnop/thefile.zip on this server

Started by sadwargamer on 1 Jan 2012, 7:13 PM · Views: 1,961

Results 1 to 7 of 7
1 Jan 2012, 7:13 PM
#1
sadwargamer avatar

sadwargamer

New Zenner

Join Date:
May 2008
Posts:
17
Plugin Contributions:
0

Post #1 by sadwargamer

Hi All,
Yesterday with release of zc1.5 I tried to install but my PHP version (5.2.9) needed to be upgraded latest version to work, which I had my host upgrade to 5.3.xx, unfortunately this caused lots of errors with deprecated code on other zen cart sites on server and on 1.3.9h sites) so I reverted back to 5.2.9.

Totday I upgraded PHP to version 5.2.17 which I udnerstand to be safe for older versions and also suitable for 1.5.

My problem now is that one of my sites that allows downloads of PDFs which has worked perfect up until now gives following error:

Forbidden

You don't have permission to access /pub/.xhstenpovifhvqjhy/stars.zip on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I am using download by redirect (and have been for years) - all permissions remain unchanged from when working (and I have checked them all) -

HELP - anyone offer any advice on what I need to change to get this working again please?

regards
andy

(Yes I know I should upgrade to latest version but customer does not want to change yet!)

1 Jan 2012, 11:18 PM
#2
sadwargamer avatar

sadwargamer

New Zenner

Join Date:
May 2008
Posts:
17
Plugin Contributions:
0

Post #2 by sadwargamer

HI,

as a follow up i upgraded to 1.3.9h (not 1.5 due to being unsure what addons work with that version) - and I have teh same error! Anyone help with this as I suspect its to do with teh upgrade of PHP version - and soem arcane setting that is done by default that I need to change!

regards
andy

2 Jan 2012, 12:50 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #3 by drbyte

Sounds like your /pub/.htaccess is damaged or your server's php/apache config aren't set up correctly.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

2 Jan 2012, 12:56 AM
#4
sadwargamer avatar

sadwargamer

New Zenner

Join Date:
May 2008
Posts:
17
Plugin Contributions:
0

Post #4 by sadwargamer

Hi,
Thanks - yep just solved it!

It was an entry in the httpd.conf file to do with symlinks - (during the upgrade the conf must have been updated with the entry: "SymLinksIfOwnerMatch" removing this and restarting apache solved the issue.

regards
andy

2 Jan 2012, 3:25 PM
#5
darnaez avatar

darnaez

Zen Follower

Join Date:
Jun 2009
Location:
Miami, Fl
Posts:
138
Plugin Contributions:
0

Post #5 by darnaez

I have a similar problem and I beg you for some help. For many time I'm using Zen Cart 1.3.8 ... after the upgrade to 1.3.9h everything was working fine. (I sell downloadable products). Today a customer asking for an old product purchased that can't download anymore (error 404 Page Not Found). I checked the file is fine. the .htaccess is there, so... I did a purchase on that product and I receive the same error.... is a .dmg file (for Mac).. But is there!!! I can't understand! Any help please? Thanks in advance.

2 Jan 2012, 7:56 PM
#6
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #6 by drbyte

Your situation is different, and simple to fix:
You need to add dmg to the list of allowed filetypes in the .htaccess

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

2 Jan 2012, 8:05 PM
#7
darnaez avatar

darnaez

Zen Follower

Join Date:
Jun 2009
Location:
Miami, Fl
Posts:
138
Plugin Contributions:
0

Post #7 by darnaez

Yes, thank you. Actually the addition was there .. but not in the .htaccess located in the /pub directory.
Thanks anyway!!!