Click to See Complete Forum and Search --> : Strange apache/winXP problem.


arjan
06-26-2003, 01:01 PM
I have a weird problem with my apache2.0.46 and winXP pro.

when someone wants to access some of the webpages on my local machine, he/she cannot see any image.
they all display if an image is not on the location (diplays dimensions with a red cross in the corner)...but they are.

if i acces the pages though localhost or through the IP addres i can see them normaly. but any other who is accessing cant see the darn images.

anyone?

thnx

Arjan

goldbug
06-26-2003, 01:37 PM
what does the <img /> tag look like?

arjan
06-26-2003, 02:40 PM
<img src="images/logosmall.jpg">



http://213.84.208.53/legacy/index.php

and later when you login you will have the problem with EVERY image

Arjan

goldbug
06-26-2003, 02:57 PM
It looks like there's an error with the image itself.

Mozilla reports:
'The image "http://213.84.208.53/legacy/images/logosmall.jpg" cannot be displayed, because it contains errors.'

Check to make sure the image is actually jpeg format, saved properly, etc....

Another thing to keep in mind, but might not actually be the case here, if it's local:
Be wary of what FTP settings you use to upload images. If set to ascii, there can be problems of images being mangled when uploaded to a server of a different OS type (noticed this alot with one associate using a Mac to u/l to Unix.. prolly has something to do with the CR/LF differences). Its a good idea to always use binary unless the system specifically needs otherwise.

piersk
06-26-2003, 06:17 PM
He's not wrong you know.

When uploading images, you should always do it in binary rather than ascii. Any FTP client worth its salt should automatically change this setting though.

goldbug
06-26-2003, 06:54 PM
Piers: Is it actually the CR/LF differences that cause that? I know it mangles, just never knew the exact reason why...just figured thats the most glaring difference to me.

arjan
06-26-2003, 07:45 PM
Unfortunately there is no "uploading" .

all images are made on the same machine as the webserver is installed on. Iam using the same photoshop for years now.

i dont have any problems when i upload them to a "real" webserver.

here take a look, just uploaded the files, no adjustments to the images

http://www.birthright.net/tmp/

try usrname: arjan
password: arjan
on both sites. the birthright.net show the images as they should be. and the other one doesnt.

no adjustments have been made to either the images or the scripts

Arjan

arjan
06-26-2003, 07:55 PM
Originally posted by goldbug
[B]It looks like there's an error with the image itself.

Mozilla reports:
'The image "http://213.84.208.53/legacy/images/logosmall.jpg" cannot be displayed, because it contains errors.'


shows normal to me :) i can see the Legacy of Kings logo

piersk
06-26-2003, 08:00 PM
Yeah, I can't see any probs with it either.

arjan
06-26-2003, 08:08 PM
strange isnt it? somehow it must be a configuration of "something" in either the httpd.conf or windowsXP... but WHAT???

goldbug
06-27-2003, 12:09 AM
Here's a wild thought, not sure if it would make much difference....
In the MIME types config for Apache, is there anything funny with the image/jpeg or related mappings? For instance, maybe jpegs are mapped to some application server or whatnot on that server (just an example).

arjan
06-27-2003, 07:14 AM
hmm not that i can find.

but i'll put my httpd.conf here so you can take a look

removed httpd.conf

arjan
06-27-2003, 10:43 AM
ok, i finaly "found" a "solution".

removed apache2 -> installed apache 1.3.27

now the images are displayed normal.

so there seems to be a "bug" in apache2

thnx for all the efforts!

Arjan

elToro
07-02-2003, 11:35 AM
so there seems to be a "bug" in apache2


...or it was misconfigured. It still could have been a problem with the particular installation.

arjan
07-02-2003, 01:46 PM
if it is a misconfiguration, then please tell me what it is?

i have also posted the problem on other forums and even send it to the apache httpd mailinglist.

nobody could help me.

i even double checked / compared the two httpd.conf files, and the were almost identical (except for the version differences).

On the apache httpd mailing list there was also a guy yesterday with the exact same problem, but he didnt have XP, but win2k.

so it can either be a win problem or an apache2

and i have no clue which one

anyway, thnx for all the efforts

Arjan

stolzyboy
07-03-2003, 11:22 PM
just getting the queue mag ad out of the list

epitomy
07-04-2003, 02:17 PM
Well if it's a bug, it would be happening with all servers, would it not? :)

I run a Win XP Pro system with Apache 2.0.46, php 4.3.2, as well as 2 - Win 2k Advanced servers (same config), and have no problems with images whatsoever.

Food for thought.
~Steve

weird2u2
08-02-2003, 07:53 AM
I have Apache 2.0 installed with PHP4 & Mysql, all on xp.

I have been having the same problem of images either, not-loading ( Taking several refresh attemps for the images to load or not at all sometimes )

Quite often I find the browser, sits & hangs. Requiring closing and reopening another IEwindow. Either the browser is waiting for apache to serve the data(image/html), or the browser has crashed/timed-out it-self?

Is this a time out problem, perhaps if the image is too large 22kb?
Although I don't think this is a large image!!

I thought a fresh install of APache and Operating system (XP pro) would help.

Well in appeared to help to begin with, first running of fresh installs, appeared to solve the problem...yer great fast loading pages with images...thought problem was solved....until after a coulpe of refresh's Apache crashed/Caused an xp error event. as folllows

########This is from XP Event Viewer#####

"Faulting application apache.exe, version 0.0.0.0, faulting module php4ts.dll, version 4.3.2.2, fault address 0x000a8f3a"

##############

Now I still have same problem....this problem with images occurs also, if my site is viewed from the internet, as well as using localhost machine.

I have Googled around for details on the xp event' error but have found no references.....to particular error.

Some thing is amiss with Apache & IE6 or xp ........

To add also, this problem also occured without PHP being installed. ie only running Apache 2.0 with perl mod, still have image display error.

I have check. replaced images(they are not corrupt, they have not been uploaded anywhere, they are local)

To help track down this problem, can anyone suggest ways of debbugging Apache, or more specifically, the data that is transfered between Apache and browser !!

if i could see what is being served and when ... Live monitoring of data transfer.
Apache's error log shows nothing unusual, and gives little info when things do go wrong...

What really bugs me is that it did work ..really well, after fresh install, but does not now after first crash !!

epitomy
08-02-2003, 12:09 PM
Perhaps it would be best to post a link to your PHP and/or Apache configurations .. ?

If you don't feel like posting it on the Internet, then feel free to email me,
steve@enerds.ca

I'll go through your config's and see if I can lend a hand ...

Couple question for you, are you running PHP in CGI or ISAPI mode? Have you gone to Windows Update and downloaded service pack 1?? I remember reading about problems with Apache and pre-service pack 1.

Cheers,
~Steve