Apache webserver
Kouji_San
Sr. Hινε UÏкεεÏεг - EUPT DeputyThe Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
in Off-Topic
<div class="IPBDescription">on windows platform</div>Going to quote myself from this forum:
<a href="http://www.programmingtalk.com/showthread.php?t=36835" target="_blank">http://www.programmingtalk.com/showthread.php?t=36835</a>
<!--QuoteBegin-Kouji San;119226+--><div class='quotetop'>QUOTE(Kouji San;119226)</div><div class='quotemain'><!--QuoteEBegin-->I have the exact same problem on my local server running windows2000, apache 2.0.59 and PHP5 and just wanted to add more information.
I have noted that it only occurs with images above ~150KB. As it seems that my comic pages below this filesize are displayed correctly. Because I use Flash (25KB-35KB .swf files) for my comic it is not that big of a problem, however if someone does not have flash installed or has javascript disabled, the image is displayed. Displayed incomplete, so it will drive away people without the necessary plugins.
I am using progressive jpg and the ones above 150KB only load about 75-80%. All my images work when accessing trough local network, and when trying other webhosts. They only fail when accessing directly trough the web on the apache server, loaded into the page or via <a href="http://localhost" target="_blank">http://localhost</a> (on the server)
Further testing:
It seems not only images have problems. When a file in general is larger then 150KB the downloader (either default or manager) shows it as 100% downloaded. If you then try to open the file it is corrupted. The filesize of the downloaded file is the same as the one on the server, yet the file is not downloaded 100% (corrupted). It stops I'm guessing, at 150KB, yet shows you the filesize as 100%.
I have also read the thread for Tiger and macOS (<a href="http://forums.serverlogistics.com/viewtopic.php?t=917" target="_blank">click</a>, external link) and the need to recompile apache to patch this issue on that config. I haven't encountered the solution for a server running on windows yet. And then I found this thread which is the exact description of my problem :eek:
So, I'd guess it is a server config problem or bug (on macOs/Tiger is seems it's a known issue).
[edit]
Also --> HI!<!--QuoteEnd--></div><!--QuoteEEnd-->
Basically the other people over on that forum have a problem quite similar to me. Now for me it is not that big of an issue (when people have flash/javascript, most of them do according to statcounter <img src="style_emoticons/<#EMO_DIR#>/tounge.gif" style="vertical-align:middle" emoid=":p" border="0" alt="tounge.gif" />). But for a gallery site using images it would be quite annoying...
As you can see quite a weird error and I thought maybe someone over here knows about some kind of solution for this issue on a windows platform.
In other words
help? <img src="style_emoticons/<#EMO_DIR#>/tounge.gif" style="vertical-align:middle" emoid=":p" border="0" alt="tounge.gif" />
<a href="http://www.programmingtalk.com/showthread.php?t=36835" target="_blank">http://www.programmingtalk.com/showthread.php?t=36835</a>
<!--QuoteBegin-Kouji San;119226+--><div class='quotetop'>QUOTE(Kouji San;119226)</div><div class='quotemain'><!--QuoteEBegin-->I have the exact same problem on my local server running windows2000, apache 2.0.59 and PHP5 and just wanted to add more information.
I have noted that it only occurs with images above ~150KB. As it seems that my comic pages below this filesize are displayed correctly. Because I use Flash (25KB-35KB .swf files) for my comic it is not that big of a problem, however if someone does not have flash installed or has javascript disabled, the image is displayed. Displayed incomplete, so it will drive away people without the necessary plugins.
I am using progressive jpg and the ones above 150KB only load about 75-80%. All my images work when accessing trough local network, and when trying other webhosts. They only fail when accessing directly trough the web on the apache server, loaded into the page or via <a href="http://localhost" target="_blank">http://localhost</a> (on the server)
Further testing:
It seems not only images have problems. When a file in general is larger then 150KB the downloader (either default or manager) shows it as 100% downloaded. If you then try to open the file it is corrupted. The filesize of the downloaded file is the same as the one on the server, yet the file is not downloaded 100% (corrupted). It stops I'm guessing, at 150KB, yet shows you the filesize as 100%.
I have also read the thread for Tiger and macOS (<a href="http://forums.serverlogistics.com/viewtopic.php?t=917" target="_blank">click</a>, external link) and the need to recompile apache to patch this issue on that config. I haven't encountered the solution for a server running on windows yet. And then I found this thread which is the exact description of my problem :eek:
So, I'd guess it is a server config problem or bug (on macOs/Tiger is seems it's a known issue).
[edit]
Also --> HI!<!--QuoteEnd--></div><!--QuoteEEnd-->
Basically the other people over on that forum have a problem quite similar to me. Now for me it is not that big of an issue (when people have flash/javascript, most of them do according to statcounter <img src="style_emoticons/<#EMO_DIR#>/tounge.gif" style="vertical-align:middle" emoid=":p" border="0" alt="tounge.gif" />). But for a gallery site using images it would be quite annoying...
As you can see quite a weird error and I thought maybe someone over here knows about some kind of solution for this issue on a windows platform.
In other words
help? <img src="style_emoticons/<#EMO_DIR#>/tounge.gif" style="vertical-align:middle" emoid=":p" border="0" alt="tounge.gif" />
Comments
other than that no, sorry not a clue.
use linux, its much easier lol
other than that no, sorry not a clue.
<!--QuoteEnd--></div><!--QuoteEEnd-->
I just knew a smartalec remark like this would show up, well actually you're the second one to pull the Linux card on me <img src="style_emoticons/<#EMO_DIR#>/biggrin-fix.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin-fix.gif" />
apache_2.0.59-win32-x86-no_ssl.msi
mysql-essential-5.0.37-win32.msi
php-5.2.1-Win32.zip
The only setting I changed in the httpd.conf were:<ul><li>DirectoryIndex (added php and xml as index pages)</li><li>IndexIgnore * (to stop the listing of files in open maps)</li><li>AddType application/x-httpd-php .xml (to parse an xml page as php, for dynamic rss feed)
</li><li>And added the script types needed for php
</li><li>The rest is left at default (except the paths to the server and doc root of course <img src="style_emoticons/<#EMO_DIR#>/tounge.gif" style="vertical-align:middle" emoid=":p" border="0" alt="tounge.gif" />)</li></ul>
But that isn't the problem, I'm afraid. The images also fail to load correct when linked to directly so it can't be php related :/ For me it is not a real issue while using flash as content provider, with files ranging from 25-35KB, but I might want to serve bigger files in the future, perhaps for artwork or wallpapers. So it will become an issue I guess in the near future...
[edit]
Well I've devised a workaround for this issue... Now I'm running an Apache/ISS combo. The ISS is targeted at the comic directory and using port 8080, it only needs to serve as a backup to load the images from the website comic directory.