Apache webserver

Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT DeputyThe Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
<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" />

Comments

  • SloppyKissesSloppyKisses omgawd a furreh&#33; Virginia Join Date: 2003-07-05 Member: 17942Members, Constellation
    use linux, its much easier lol


    other than that no, sorry not a clue.
  • Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT Deputy The Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
    <!--quoteo(post=1623650:date=Apr 28 2007, 10:09 PM:name=Phur_Instinkt)--><div class='quotetop'>QUOTE(Phur_Instinkt @ Apr 28 2007, 10:09 PM) [snapback]1623650[/snapback]</div><div class='quotemain'><!--quotec-->
    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" />
  • KungFuDiscoMonkeyKungFuDiscoMonkey Creator of ns_altair 日本福岡県 Join Date: 2003-03-15 Member: 14555Members, NS1 Playtester, Reinforced - Onos
    What did you use to install it under Windows? I've used <a href="http://www.apachefriends.org/en/xampp.html" target="_blank">xampp</a> in the past and have had good results with that. Perhaps telling us more about your setup would help.
  • Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT Deputy The Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
    I installed the server with the official packages from their main site

    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>
  • KungFuDiscoMonkeyKungFuDiscoMonkey Creator of ns_altair 日本福岡県 Join Date: 2003-03-15 Member: 14555Members, NS1 Playtester, Reinforced - Onos
    150k seems still like a fairly trivial file so off the top of my head I'm not sure what would cause that. How are you determining if they're having flash or not ? Of the top of my head, I'm unsure of what settings would be causing problems like that. If you're working with really large files sometimes PHP will hit a limit as specified in the php.ini file but I'm not sure if that's the case here.
  • Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT Deputy The Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
    edited April 2007
    I'm using <a href="http://blog.deconcept.com/swfobject/" target="_blank">swfobject</a> to determent if visitors have flash/javascript enabled. If not a <div> is show with the image content. And use Google Analytics and Statcounter as well to see how many users have javascript enabled or which version of flashplayer they have if any.

    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.
  • KungFuDiscoMonkeyKungFuDiscoMonkey Creator of ns_altair 日本福岡県 Join Date: 2003-03-15 Member: 14555Members, NS1 Playtester, Reinforced - Onos
    You shouldn't need to run two web servers at the same time though I don't have any suggestions on what to try since I don't think I've ever had a problem with that. My best suggestion right now would be to try a stack like xampp where someone else puts together the stack and tests it for you instead of you trying to configure them all yourself.
  • Kouji_SanKouji_San Sr. Hινε Uρкεερεг - EUPT Deputy The Netherlands Join Date: 2003-05-13 Member: 16271Members, NS2 Playtester, Squad Five Blue
    Yeah I don't like to run two different servers and one using another port. But this is currently a temporary solution until I fix this issue. Going to have a look a Xampp now. I remember downloading it sometime as well <img src="style_emoticons/<#EMO_DIR#>/tounge.gif" style="vertical-align:middle" emoid=":p" border="0" alt="tounge.gif" />
Sign In or Register to comment.