Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 06-24-2011, 01:10 PM   PM User | #1
DannyHerner
New Coder

 
Join Date: Jun 2011
Location: England; Essex
Posts: 42
Thanks: 4
Thanked 5 Times in 5 Posts
DannyHerner is an unknown quantity at this point
Question webserver is forcing .php download [apache - mac os x]

Hi guys,

All of a sudden (after a month of amp being installed) the mac os x server is deciding to force download of the .php file - but randomly, sometimes it will load the site as expected, but it just went through a 10minute hissy fit about forcing the download of a 0byte .php file

It may be relevant; the server is running fairly slow today - although the average load is only at around 0.3 in all 3 intervals.

I don't know much about MAC, and i was wondering if anyone had an idea as to what this could be?

Many thanks

Danny
DannyHerner is offline   Reply With Quote
Old 06-26-2011, 03:26 PM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,635
Thanks: 4
Thanked 2,448 Times in 2,417 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
I don't know anything about mac either, but the behaviour you are experiencing is the same as an unknown or invalid php handler for the webserver, so it doesn't know what to do with a .php file. I'd go over your logs to see if you've experienced an event causing the php module to fail (which is likely a part of the error.log for apache itself), which could explain why its attempting to download the file instead of parsing it as expected.

Since I'd expect this is a development machine, I wouldn't waste too much time concerning yourself of this unless it was caused by something you have written. I'd just reboot the machine and see if that fixes the problem. Running slow says something is wrong, whether it be hardware or software related.
Fou-Lu is offline   Reply With Quote
Users who have thanked Fou-Lu for this post:
DannyHerner (06-27-2011)
Old 06-27-2011, 09:26 AM   PM User | #3
DannyHerner
New Coder

 
Join Date: Jun 2011
Location: England; Essex
Posts: 42
Thanks: 4
Thanked 5 Times in 5 Posts
DannyHerner is an unknown quantity at this point
thanks for your reply Fou-Lu, unfortunately it's not my development machine, I have been developing this on the clients machine as it uses physical paths of their user files, and the creation/deletion of users etc.

I've asked their Administrator to look into it, he's given it a reboot and we'll go from there see if it happens again
DannyHerner is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:27 PM.


Advertisement
Log in to turn off these ads.