Apache2 not displaying images

Associate
Joined
24 Oct 2002
Posts
2,371
Location
Cambridge
I've got a Suse 8.2 system and I've had to install Apache 2.0 from source. I've built it several times with no errors but I can't get images to be displayed. I just get red crosses where images should be. I've also tried looking at it from several client machines. I've checked the html and it's pointing to the images correctly. I can even direct the web browser directly to the image and have the same problem.

Does anyone have any ideas on what the problem could be?

Cheers
 
What if you put the URL of the image directly into your browser's location bar, does it view it inline or give you the option to download it, or an error? If it gives you a download box then its probably something to do with Apache not finding the correct MIME type for the image. A tool like wget or telnet'ing to the server directly will give you the MIME type for the image.
 
Thanks for all the replies. I managed to sort it out. I changed the owner for everything in the htdocs directory to apache. It was root before but had 777 access rights so it's a bit bizarre why it didn't work.

And yes Ice Tra my trust email account is working.
 
Why did you change the owner to apache? Now, if there is a remote code-execution exploit discovered for the version of Apache you're running, code executed in the context of the apache work process can now modify all your data...
 
Back
Top Bottom