| Topic Archived |
View previous topic :: View next topic |
| Author |
Message |
RedGerry Silver Supporter


Offline Joined: Jun 29, 2004 Posts: 480 Location: Fishcross, Scotland
|
Posted: Sun Dec 04, 2005 10:24 pm Post subject: download php file instead of display |
|
I've come across a weird problem. It's not DF's fault, more likely it's something to do with php5 or apache, but it's weird and I'm baffled.
Here's the first url...
irvolunteers.org
You get a download box instead of index.php. The / doesn't make a difference
Second URL
irvolunteers.org/index.php
Works!
Third URL
irvolunteers.org/admin.php
Back to download again.
I'm still logged in as admin, if I go to any specific item, i.e. irvolunteers.org/admin...?op=blocks Works! and all the links to site areas from index.php work.
Configuration, brand new MySQL5, brand new PHP5.. info irvolunteers.org/phpinfo.php. apache is configured to look for index.php for a directory listing call...
I have another php/mysql site under construction on the same server using Zen cart media-drop.co.uk and it has no such problems. Virtual hosts files are the same, DNS setup is the same. There is no issue with file ownership..
Anyone who can suggest anything .. I'm at a loss where to look next.
_________________ gerry @ redgerry.com
redgerry.com
clacks.co
123v.com
copseygroup.com
RedGerry's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Suse11.4 - LAMP on zypper - ISPConfig 3
|
|
| Back to top |
|
 |
Biggles Debugger


Offline Joined: Aug 03, 2005 Posts: 637 Location: St. Louis, MO
|
Posted: Sun Dec 04, 2005 10:27 pm Post subject: Re: download php file instead of display |
|
All three of the urls work fine for me.
Biggles's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Win, Linux/1.3.34/4.0.26, 5.0.19/4.3.10, 5.1.2, 8.1.4(PostgresSQL)/9.0.6.1, CVS
|
|
| Back to top |
|
 |
DJ Maze Developer


Offline Joined: Apr 19, 2004 Posts: 5683 Location: http://tinyurl.com/5z8dmv
|
Posted: Sun Dec 04, 2005 10:32 pm Post subject: Re: download php file instead of display |
|
Response Headers - irvolunteers.org/index.php
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 4919
Response Headers - irvolunteers.org/
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Length: 4918
there's only 1 byte difference in the content length.
is hard to guess what that 1 byte is
DJ Maze's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Fedora 15 / 2.2.22 / 5.5.20 / 5.3.10 / CVS
|
|
| Back to top |
|
 |
RedGerry Silver Supporter


Offline Joined: Jun 29, 2004 Posts: 480 Location: Fishcross, Scotland
|
Posted: Mon Dec 05, 2005 1:07 am Post subject: Re: download php file instead of display |
|
Thank you..
The original problem I was addressing had to do with the setup between the server and the router. Whilst this was being configured a DNS error produced the download instead of display error. This was subsequently fixed.
However.. the download was cached in Firefox.. after reading your posts I stopped looking at the server and had a look at my own machine. Firefox cache cleared, anomaly resolved.
_________________ gerry @ redgerry.com
redgerry.com
clacks.co
123v.com
copseygroup.com
RedGerry's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Suse11.4 - LAMP on zypper - ISPConfig 3
|
|
| Back to top |
|
 |
OMorchoe Newbie


Offline Joined: Sep 13, 2006 Posts: 3
|
Posted: Wed Sep 13, 2006 4:25 pm Post subject: Re: download php file instead of display |
|
I have exactlty the same problem, but clearing the cache does not help.
Either there ist nothing (with IE) or I get the admin.php offerd to download.
standard and fresh installation...
cmstest.rpg-community..../admin.php
Go test it...
I apprechiat any help.
thanks
OMorchoe's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Unix Host, PHP5, MySQL4
|
|
| Back to top |
|
 |
RedGerry Silver Supporter


Offline Joined: Jun 29, 2004 Posts: 480 Location: Fishcross, Scotland
|
Posted: Thu Sep 14, 2006 11:52 pm Post subject: Re: download php file instead of display |
|
Are you sure mod php is loaded in apache?
This used to be one of the default set but recently I've discovered in new installs it has to be added manually. If it isn't loaded then apache doesn't know what to do with it.
_________________ gerry @ redgerry.com
redgerry.com
clacks.co
123v.com
copseygroup.com
RedGerry's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Suse11.4 - LAMP on zypper - ISPConfig 3
|
|
| Back to top |
|
 |
OMorchoe Newbie


Offline Joined: Sep 13, 2006 Posts: 3
|
Posted: Fri Sep 15, 2006 10:08 pm Post subject: Re: download php file instead of display |
|
its a shared server. and there are several php-based portals running on it. i guess the other would not work either it that is the case, right?
but i checked anyway...
I used a
| Code:: |
<?php phpinfo(); ?> |
And it looks fine to me...
you can check it yourself at /dragonfly/test.php
OMorchoe's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Unix Host, PHP5, MySQL4
|
|
| Back to top |
|
 |
OMorchoe Newbie


Offline Joined: Sep 13, 2006 Posts: 3
|
Posted: Tue Sep 19, 2006 10:03 am Post subject: Re: download php file instead of display |
|
anyone? please!
I would really love to try this cms.
OMorchoe's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Unix Host, PHP5, MySQL4
|
|
| Back to top |
|
 |
alva 1000+ Posts Club


Offline Joined: May 31, 2005 Posts: 1150 Location: The Netherlands
|
Posted: Tue Sep 19, 2006 11:11 am Post subject: Re: download php file instead of display |
|
I don't get a download offered. Your index says maintenance, your admin.php gives a blank page.
| Quote:: |
I got the following unexpected response when trying to retrieve <http://cmstest.rpg-community.com/dragonfly/index.php>:
500 Server closed connection without sending any data back
If you made recent changes to your domain name (DNS) configuration, you may also want to check that your domain records are correct, or ask your hosting company to do so.
|
alva's server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS) Linux/Apache/5.0.24/5/9.1 CVS
|
|
| Back to top |
|
 |
|
|