Web Server Configuration
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsWeb DesignWeb Server Configuration

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old February 22nd, 2004, 10:51 AM
metallikop metallikop is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 1 metallikop User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Apache/PHP not displaying .php documents correctly

Here's the problem:

Just upgraded Apache & PHP on my server. Some .php pages are being served correctly, though others are requesting to be downloaded. I'm not sure what the problem is, and it seems to work fine in IE, yet Mozilla wants to download the file, full source and all.

Another odd thing, http://<sitename>.com/ will attempt to download the file, where http://<sitename>.com/index.php will view the file in the browser as it should.

Edit:
When viewing <sitename>.com/ from mozilla here's what I get:
---------------------------
You have chosen to open

from: http://<sitename>.com/
which is a:
---------------------------

Very confusing if you ask me. Any help would be gladly appreciated.

Many thanks.

Reply With Quote
  #2  
Old February 23rd, 2004, 02:33 AM
Spongy's Avatar
Spongy Spongy is offline
Alternately High
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Hilversum, Netherlands
Posts: 223 Spongy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 13 h 56 m 41 sec
Reputation Power: 5
Send a message via MSN to Spongy
Look at your Apache config-file. There is a line where you can set which pages apache will search for as the default document. Probably there now is something like:
index.html index.htm
When you add index.php you solved at least one part of your problem. I don't recognize the other thing though, but maybe it's solved when you add the line in your Apache-config.
__________________
Work to live, don't live to work

Reply With Quote
  #3  
Old February 23rd, 2004, 10:07 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
Sounds like your mime types aren't defined correctly.
__________________
Please don't PM me asking for solutions outside the scope of a thread.
Keeping all responses in a thread stands to help others who come along later,
which is after all what this forum's all about.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsWeb DesignWeb Server Configuration > Apache/PHP not displaying .php documents correctly


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT