If this is your first visit, check our documentation. To post, register or login.
Forums / Installing on a Windows Server / 403 error before setup??

403 error before setup??

Started by billnally on 1 Dec 2011, 8:15 PM · Views: 2,783

Results 1 to 7 of 7
1 Dec 2011, 8:15 PM
#1
billnally avatar

billnally

Zen Follower

Join Date:
Jan 2006
Posts:
251
Plugin Contributions:
0

403 error before setup??

Hi all, got another odd problem. I’ve uploaded a clean site to a namesco server only to get an instant 403 error. Being a 403 the error log says next to nothing and I have no idea what to do. Checked the file permisions and they are 0771 on all folders and 0660 on php and 0664 on html, txt and images.
Anyone had this problem before? Namesco are less than useless for support and just said they won’t help with code.
https://www.stgeorges-school.co.uk

1 Dec 2011, 8:47 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: 403 error before setup??

Remember, 403 = Forbidden. So generally speaking that's either a permissions issue on the filesystem or a rules/access issue in the webserver engine's security setup (ie: consider .htaccess or httpd.conf settings if this were Apache).

Can't see how it would be a code issue.

.
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.

1 Dec 2011, 9:16 PM
#4
drbyte avatar

drbyte

Sensei

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

Re: 403 error before setup??

Have you tried using higher permissions on the last "bit"? ie: 771 and 660 are quite restrictive for that last setting, the public one. 755 and 644 are more common.
Their tech support and/or online support docs could clarify whether that makes a difference given the way they've configured their servers. And of course your own testing might reveal some things too.

But when a host does things that are unusual like that, and when their support isn't capable of helping at the level required, it begs the question: why not use a better host?

.
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 Dec 2011, 2:30 PM
#5
billnally avatar

billnally

Zen Follower

Join Date:
Jan 2006
Posts:
251
Plugin Contributions:
0

Re: 403 error before setup??

Little update.
Namesco redeemed themselves a little and told me that the problem was the .htaccess file in the zc_install folder. Deleted it and the install went through without a hitch. Trouble I have now is all the .htaccess files are blocking every folder that I’ve tried.
Very grateful for any advice

2 Dec 2011, 8:09 PM
#6
drbyte avatar

drbyte

Sensei

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

Re: 403 error before setup??

Windoze Servers running IIS habitually don't like .htaccess files. You'll need to find different ways of providing the same security protections using whatever tools your hosting company offers.

.
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.

7 May 2012, 7:24 PM
#7
drbyte avatar

drbyte

Sensei

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

Re: 403 error before setup??

Zen Cart doesn't supply a .htaccess for the root of your site. That's up to you. If you have added one and it's causing you problems, then remove it. Then re-think what you're putting into the file and sort out what part of it is causing you problems.

Zen Cart only supplies .htaccess files for subdirectories within the Zen Cart folders. It does not need one at the top level in order to operate. Anything you add to the top level is entirely at your own discretion.

.
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.