Cable Forum

Cable Forum (https://www.cableforum.uk/board/index.php)
-   Internet Discussion (https://www.cableforum.uk/board/forumdisplay.php?f=25)
-   -   My Apache's broken! (https://www.cableforum.uk/board/showthread.php?t=33603478)

jrhnewark 13-11-2006 20:41

My Apache's broken!
 
I'm having a slight problem with my Apache web server... as you can see here: http://zoidberg.servehttp.com/planni..._Tac_250kW.jpg

All downloads seem to corrupt, including that JPG. MP3s hosted on the server arrive very nicely at the other end, but they cut out and break up for half a second or so every ten seconds. Everything over a certain size seems to be corrupted!

For what it's worth, another server application runs on 8080 and that produces everything quite nicely - http://zoidberg.servehttp.com:8080/p..._Tac_250kW.jpg - although it struggles with anything like streaming media, which is why I have it as a backup for Apache.. for when it does things like this. :erm:

Any ideas? :)

Graham M 13-11-2006 21:14

Re: My Apache's broken!
 
Have you changed any settings/updated any modules?

jrhnewark 13-11-2006 23:58

Re: My Apache's broken!
 
Not that I can really think of... I'm not the greatest guru when it comes to this. Well, not with Windows so much, anyway. Or Linux either. :D

I imagine a full reinstall of it might just solve it...

Graham M 14-11-2006 00:23

Re: My Apache's broken!
 
Silly question maybe, but have you tried restarting the server?

jrhnewark 14-11-2006 00:34

Re: My Apache's broken!
 
I have - doesn't seem to fix it.

I can definitely confirm that no modules have been tinkered with - the only thing that's been changed since the original installation is to modify the httpd.conf file, which all looks okay to me: http://zoidberg.servehttp.com:8080/httpd12.conf

greencreeper 14-11-2006 01:19

Re: My Apache's broken!
 
Not seen that before. Weird. If you've not fiddled with the MIME types, I'd say just reinstall Apache - doesn't take long. Something has been corrupted somewhere.

jrhnewark 16-11-2006 01:42

Re: My Apache's broken!
 
I've reinstalled Apache a few times and it seems to make no difference. I've definitely uninstalled Apache beforehand and then installed it from Xampp (which bundles it with phpMyAdmin, MySQL, PHP, etc.) and it still does the exact same thing. It's really very odd, even though it's a completely fresh installation (even on a different hard disk!).

I'm considering a complete OS reinstall, tbh!

Shaun 16-11-2006 01:55

Re: My Apache's broken!
 
Both look the same from here.

Druchii 16-11-2006 02:03

Re: My Apache's broken!
 
Quote:

Originally Posted by jrhnewark (Post 34159331)
I've reinstalled Apache a few times and it seems to make no difference. I've definitely uninstalled Apache beforehand and then installed it from Xampp (which bundles it with phpMyAdmin, MySQL, PHP, etc.) and it still does the exact same thing. It's really very odd, even though it's a completely fresh installation (even on a different hard disk!).

I'm considering a complete OS reinstall, tbh!

I have the same thing with XAMMP, however, when i connected to my site with a constant 20Mb+ connection i could do everything fine :/ (Colleges JANET network thing)

Odd.

Graham M 16-11-2006 03:51

Re: My Apache's broken!
 
Do you have a firewall?

jehster 17-11-2006 01:04

Re: My Apache's broken!
 
Have you tried IIS?

It looks like your just serving pdf's, spreadsheets and pictures (thanks for the hotspot list ;p) give IIS a whirl see if you notice any differences. If not, then you could have a problem else where.

Graham M 17-11-2006 02:23

Re: My Apache's broken!
 
IIS? *shudders*

The Jackal 17-11-2006 05:24

Re: My Apache's broken!
 
Ooooooooo this one smells

This is you :

~/Desktop/s$ HEAD http://zoidberg.servehttp.com/planni..._Tac_250kW.jpg
200 OK
Connection: close
Date: Fri, 17 Nov 2006 03:55:04 GMT
Accept-Ranges: bytes
ETag: "2c22-5ef7e-f87719fe"
Server: Apache/2.2.3 (Win32) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8d mod_autoindex_color PHP/5.1.6
Content-Length: 388990
Content-Type: image/jpeg
Last-Modified: Sun, 12 Nov 2006 18:29:50 GMT
Client-Date: Fri, 17 Nov 2006 03:53:38 GMT
Client-Peer: 82.28.225.89:80
Client-Response-Num: 1

Soooooooo Apache on Windows no wonder it doesnt work (nope just kidding).

I too thought it could be a mod_deflate / compress issue : MIME types and conf all look good - pondered on it somewhat gave up and found this thread :

http://www.apachelounge.com/forum/vi...er=asc&start=0

Seems like files are maybe being corrupted on the way up - I assume u upload via WebDAV.

Looks like a couple of guys have pondered on this somewhat trying a few options but the one that seemed to work is this :

Change these in httpd.conf

EnableMMAP off
EnableSendfile off

Restart Apache

Try downloading the file via the web (I suspect it wont work as per previously)

Upload you file AGAIN !

Try downloading again via the web (couple of suspects on that thread have had results).

----- Alternatively Try rolling back to an earlier version of Apache. The latest is not necessarily the best

I'm still running Apache 1.3.x LOL from years back.

---------- Post added at 04:24 ---------- Previous post was at 04:06 ----------

Quote:

Originally Posted by Druchii (Post 34159341)
I have the same thing with XAMMP, however, when i connected to my site with a constant 20Mb+ connection i could do everything fine :/ (Colleges JANET network thing)

Odd.

Thats also interesting as there have been suggestions that Apache 2.2.3 and QoS are not happy with each other. No QoS at uni :)

Heh only 20Mb+ at uni mate ? I'm sure u're on at least 155mbps..... Ahhhhh the good ol days of JANET hacking :) Even brings a tear to my eye.

Stuart 17-11-2006 11:31

Re: My Apache's broken!
 
Quote:

Originally Posted by CrC-3rr0r (Post 34160171)
Heh only 20Mb+ at uni mate ? I'm sure u're on at least 155mbps..... Ahhhhh the good ol days of JANET hacking :) Even brings a tear to my eye.

Sadly, the speed you get depends on your local JANET MAN (Metropolitan Area Network).

The Jackal 17-11-2006 14:19

Re: My Apache's broken!
 
Quote:

Originally Posted by Stuart C (Post 34160262)
Sadly, the speed you get depends on your local JANET MAN (Metropolitan Area Network).

Yeh I cant remember much or knew anything about the network topolology as I was young in those days :) Just reminiscing the 'ol uni days when I was being actively hunted down by IT services.

I ended meeting with the Dean in his plush office not many grads can boast that heh ! Feck what an experience !

Druchii 17-11-2006 14:43

Re: My Apache's broken!
 
Quote:

Originally Posted by CrC-3rr0r (Post 34160354)
Yeh I cant remember much or knew anything about the network topolology as I was young in those days :) Just reminiscing the 'ol uni days when I was being actively hunted down by IT services.

I ended meeting with the Dean in his plush office not many grads can boast that heh ! Feck what an experience !

My apache config is fine, i run it from a flash drive at college often enough, serving up 20Mb files (which are 3 or 4 times bigger than what i want to serve at home) perfectly fine across the LAN. My name gets mentioned alot as you say CRC, not been hunted down as i used to work there, just they keep a close watch on me... Never has stopped me mind.

My apache config is fine to serve across LAN's, so i'm wondering if there are time-outs happening? I have Agnitum OutPost Pro firewall, and of course the one on the Linksys WRT54G running DD-WRT.

jrhnewark 17-11-2006 20:46

Re: My Apache's broken!
 
To answer a few questions.. yes, I use both a software firewall (ZoneAlarm) and hardware firewall (DD-WRT's firewall on a Linksys WRT54GS).

As for WebDAV... whaaap whaap. I've no idea what that is, to be honest!

EnableMMAP and Sendfile are already off. :)

The Jackal 17-11-2006 21:41

Re: My Apache's broken!
 
Quote:

Originally Posted by jrhnewark (Post 34160741)
To answer a few questions.. yes, I use both a software firewall (ZoneAlarm) and hardware firewall (DD-WRT's firewall on a Linksys WRT54GS).

As for WebDAV... whaaap whaap. I've no idea what that is, to be honest!

EnableMMAP and Sendfile are already off. :)

Dont worry about DAV it's just a method of transfering files to the web server.....

PS your config file has EnableMMAP and Sendfile commented out....
(http://zoidberg.servehttp.com:8080/httpd12.conf)

Being commented out and specifically being set to off is a very big difference.

I recommend you read carefully that forum link I sent you.

jrhnewark 18-11-2006 01:21

Re: My Apache's broken!
 
I was just about to read that... but somehow I've fixed it through a reinstall. Ho ho. It works. Thanks for all your help! :)


All times are GMT +1. The time now is 18:01.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
All Posts and Content are © Cable Forum