Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Installing Zen Cart / Installing on a Windows Server / Download starts instead of shop showing?!?!?!?

Download starts instead of shop showing?!?!?!?

Started by flix on 25 Dec 2010, 12:15 AM · Views: 1,192

Results 1 to 6 of 6
25 Dec 2010, 12:15 AM
#1
flix avatar

flix

New Zenner

Join Date:
Mar 2010
Posts:
33
Plugin Contributions:
0

Post #1 by flix

Hi guys

I have encountered a really weird thing:

I have set up a ZC 1.3.9 shop which runs well until I try to upload a new .htaccess file:

First of all, I don't see the .htaccess file on the FTP server, but a colleague of mine sees it?!? (I am using FileZilla)

And if I upload a new default .htaccess file to the server (no changes to the default .htaccess) the shop just stops working. The shop will just not show up in the browser anymore but a download of the file index.php to my local download folder starts instead. My colleague is no no longer able to see the shop too because this strange download starts instead. :shocking:

Have you ever seen that strange behaviour? I am probably not the only one with this strange experience, am I?

Thanks for sharing!
Flix

25 Dec 2010, 12:23 AM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #2 by kobra

Post the contents of the htaccess here

And your php, mysql versions

Zen-Venom Get Bitten

26 Dec 2010, 10:52 AM
#3
flix avatar

flix

New Zenner

Join Date:
Mar 2010
Posts:
33
Plugin Contributions:
0

Post #3 by flix

Ups... I checked again and saw that the following extra lines are in the .htaccess:

Action php /cgi-php52/php
AddHandler php52 .php

They are telling one of my host servers make to sure that PHP 5.2 cgi is used for the page but they are not required on another host I am using. On the other host, they are not just 'not required' but indeed provoke the strange download behaviour!

26 Dec 2010, 3:27 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #4 by kobra

On the other host, they are not just 'not required' but indeed provoke the strange download behaviour!
So where you are having the issue, what is the contents
Not a snippet the full contents

Zen-Venom Get Bitten

26 Dec 2010, 3:44 PM
#5
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Post #5 by schoolboy

The problem would appear to be best directed to your hosting company.

20 years a Zencart User

26 Dec 2010, 4:47 PM
#6
vger avatar

vger

Past Contributor

Join Date:
Nov 2004
Location:
Norfolk, United Kingdom
Posts:
3,189
Plugin Contributions:
0

Post #6 by vger

Ups... I checked again and saw that the following extra lines are in the .htaccess:

Action php /cgi-php52/php
AddHandler php52 .php

The "download" you are experiencing normally occurs when PHP is not installed on a server, but in this case it is being caused by those lines in the .htaccess file. Remove the lines and the "strange behaviour" should cease.

Vger