The Missing Images on Apache Problem Solved

Problems with the Windows version of XAMPP, questions, comments, and anything related.

The Missing Images on Apache Problem Solved

Postby Bugman » 14. July 2004 01:41

Hello,

I had been having problems with XAMPP. It installed and worked beautifully, and after reading some apache documents, added some localhosts and had my own server on my laptop. However, when running anything with images, I noticed that some of them didn't show. On further investigation, any image over 10K didn't show, even though I got a http 200 correct sent. This happened on both my XP and 2000 machines.

I investigated, shouted, screamed and got rather irrate and realised that a lot of people on this forum have the same problem.

I then went about it looking at it in a different way, found that even under a bog standard apache, it still had the same problem, therefore it was not XAMPP.

In the end, I find the problem, its to do with if your running the server or the machine calling it on NTFS. So basically that's NT, XP and 2000. Its to do with the way that information is sent and stored. You can read all the technical fun at apaches main website.

The Solution
Find in your apache httpd conf file the following:

#EnableSendfile off
#EnableMMAP off

Both should be commented out by the use of # which you will need to remove (they may even by "on" but you will need to have when finished:

EnableSendfile off
EnableMMAP off

In my XAMPP version it wasn't even there so I had to download apache and copy it out from there httpd conf file. It needs to be placed under the section
"### Section 2: 'Main' server configuration"

Remember, you will need to save the file, shut down apache and restart it.

You will also need to clear your entire internet cache and close it / open it back up again (all windows) to make this work.

I tried this on my 2000, XP and a mates NT box, all which had the same problem. Now I can see any image size and it all works fine!

Bugman
Bugman
 
Posts: 53
Joined: 13. July 2004 23:39

Postby sfvb » 18. July 2004 19:01

Excellent!!! This not only solved my image problem, but it solved the problem I was having with the javascript file being too large.
sfvb
 
Posts: 1
Joined: 18. July 2004 18:50

THANKS!!!

Postby arm » 24. July 2004 13:23

Two day with Missing Images. Some of them yes and some other not. If they are little yes, big not. Good on linux but not on xp.
I was going to do HARAKIRI first to read your post.
I have to thank you a lot!!!

arm
(from italy)
arm
 
Posts: 3
Joined: 24. July 2004 13:08

Postby petes » 25. July 2004 11:39

Thank you, Bugman!

I was getting desperate trying to get wampp 2.2 working (for phpEclipse). This was not easy answer to find, but luckily you had it solved.

My symptom was that every page served (unless it was .php) was empty. No images, no html, no nothing only blank pages! This solution solved it! Hopefully everyone having problems with wampp 2.2 apache2 and windows and getting 0 bytes pages reads your solution.

Again, thanks!
petes
 
Posts: 1
Joined: 25. July 2004 11:30
Location: Tampere, Finland

Thanks Bugman

Postby daveblql » 28. July 2004 02:33

Thanks Bugman.
I had the same XP image viewing problem and your solution fixed it.
I admire your perservance in finding the solution,
it must not have been easy.

I must say this XAMPP Apache, PHP, MySQL server is the easiest
server installation I've ever done.
Three clicks on three .bat files and it is running.
I edit the conf file stop and start the apache and it is going again
with the new conf file.

I hope the ApacheFriends put your solution into the standard config file
or put it in the readme.txt file.

Best Regards,
Dave B.
daveblql
 
Posts: 1
Joined: 28. July 2004 02:15
Location: Groveland, Massachusetts,USA

Postby DaKo » 28. July 2004 13:26

Hey Bugman, thanks alot for the fix. This solved so much trouble for me. Everything is running just fine now.

Very much appreciated mate.
DaKo
 
Posts: 1
Joined: 01. November 2003 12:19

Postby stevenazari » 04. August 2004 00:41

I dont suppose you could post where EXACTLY it goes? or you could copy and paste the whole apache httpd file into a reply so we can all copy and paste into ours?
stevenazari
 
Posts: 3
Joined: 30. July 2004 12:50

Postby Bugman » 04. August 2004 12:54

It needs to be placed under the section
"### Section 2: 'Main' server configuration"


I dont have access to my machine at present but that should do

Bugman
Bugman
 
Posts: 53
Joined: 13. July 2004 23:39

httpd.conf

Postby arm » 04. August 2004 23:40

It is easy to add yourself but if you need you can see my test httpd.conf at

http://www.mopmusic.org/httpd.conf


Arm

p.s.
I also have to say that I had not to modify standard httpd.conf on another machine with xp pro and ntfs.
arm
 
Posts: 3
Joined: 24. July 2004 13:08

Thank you!!

Postby Liath » 20. August 2004 21:06

This worked really well!

What I do not understand though, was that xampp worked fine for about a year, and I did not upgrade or change anything at all, then this happened. Tried upgrading xampp and it didn't fix it. I never changed a single thing on the server the whole time. Maybe this is a bug somewhere in Apache that was time-sensitive??

Anyhow, it works now :)
Liath
 
Posts: 12
Joined: 08. May 2003 15:18

Postby ricktu » 06. September 2004 02:05

Thanks for that Bugman. I was running short on time to fix something for a client and while xampp installed like a dream this problem was making things very difficult. All fixed now. :)

Richard.
www.tpdevelopment.com.au
Turning Ideas into reality
ricktu
 
Posts: 2
Joined: 06. September 2004 01:42
Location: Australia

Postby flex » 07. September 2004 22:01

SUPER :!: :!: :!:
I had this problem over a month. I installed and configured apache 2.0.50, php 5.0, mysql 4.0.20 and php-nuke7.3 by myself and i had this problem, i thought that it was my mistake and i uninstalled everything, then i installed xaamp but the same problem again.
I was almost sure that it was an apache problem (i had doubts for my computer) but i couldn't find anywhere how to solve it, i was ready to uninstal everything again and try another package for apache, php and mysql with older versions, but no need to do this anymore Bugman gave the solution :D :D :D
I put these lines and everything is working fine even the downloads problem i had.

These lines wasn't even on the original apache's httpd.conf not only the xaamps version.

thanks Bugman you are great :!: :!: :!: :!: :!: :!: :!: :!: :!:
flex
 
Posts: 3
Joined: 07. September 2004 21:22

Re: The Missing Images on Apache Problem Solved

Postby Stretchr » 09. October 2004 20:33

Bugman wrote:Hello,

I had been having problems with XAMPP. It installed and worked beautifully, and after reading some apache documents, added some localhosts and had my own server on my laptop. However, when running anything with images, I noticed that some of them didn't show....
Bugman


I just wanted to thank you for this post. I don't believe I would ever have thought of this to cure the problem I was experiencing. Along with the images not showing up, the styles in the .css file were not being read and your solution fixed everything.

Thank you!!!
Cheers,
Stretchr
"It's a small world...
But I wouldn't want to paint it!"
Stephen Wright
User avatar
Stretchr
 
Posts: 2
Joined: 09. October 2004 20:18
Location: Georgia, USA

Postby JusticeIsDead » 26. October 2004 23:57

***EDIT***

this reply posted HERE
JusticeIsDead
 
Posts: 16
Joined: 26. October 2004 23:39

Postby DragonFire » 27. October 2004 18:12

Awesome. I will try this as soon as I get to my system at home!

The weird thing I am seeing is that sometimes the image displays and sometimes not. :?
DragonFire
 
Posts: 9
Joined: 15. October 2004 12:11
Location: Rochester, NY

Next

Return to XAMPP for Windows

Who is online

Users browsing this forum: rkontominas and 57 guests