I'm running php v 4.0.6 on windows XP with apache 1.3.22. When I try to bring up a page on my server that has complex php in it, the page will begin to load, then fall back to, "The page cannot be displayed" screen. This happens on the phpinfo.php page, and also on my pbpBB forums. Simple pages using only 'Include' commands seem to work fine...

Any help is greatly appreciated! 🙂

    Same thing here with same configuration 🙁

    If I try to get a \"long\" page, it gets corrupted at some point (tests have shown corruption occurs around the 7500th byte). Small files aren\'t affected by this. Got to test if it has the same behavior with pure html files (innocenting php).

    If you\'ve enabled the \"show friendly http errors\" option in Internet Explorer it gives you \"The page cannot be displayed\" error. If it is disabled, the page keeps reloading itself (I guess IE \"sees\" the page is corrupted and reload it).

    A strange thing is that it is not occuring locally or on the network the server is attached to.
    Before XP, I used Windows 2000 Server and it worked well (I don\'t think I changed the config since then).

    I guess it may be neither php\'s or apache\'s fault, more something with Windows XP.
    For information, my server is connected to the internet through ADSL using an Alcatel SpeedTouch USB modem ; it shares its internet connection with the network using Windows Internet Connection Sharing and have Apache 1.3.22 with Php 4.0.6 installed.

    Help appreciated here too!

      Yes I just noticed this too. The forums and phpinfo pages load fine on the server machine... So it must be XP...

      Anyone?

        Do you have any peculiar XP configuration (like Internet Connection Sharing, Internet Connection Firewall...)?

        Just thinking of this, I remember that in ICS configuration there is somewhere a dialog where you can set/unset ports. I don\'t remember what it is supposed to do (and I don\'t have access to my server right now) ; I thought it was for the Internet Connection Firewall (that is not enabled on my config).
        Maybe checking the box for http/80 port would make this work? However I get no corruption with big files transfered via ftp (and ftp is not checked).

          I'm having this exact same problem too! I'm kinda glad to know I'm not the only one...

          Another thing I noticed with this is that after my Internet Explorer browser goes to the "This page cannot be displayed..." error, my server leaves the php.exe process running! I don't know if I can handle this much longer. I wouldn't want to have to use IIS 🙁

          -Josh

            What could be interesting to know is if we all have something non-conventional set up.
            I already saw articles or forum posts indicating no problems between Apache and Windows XP. I guess we would see more complains if php wasn't working too.
            So our problem may come from either a misconfiguration (I doubt it, I had the same config on Windows 2000 Server and it worked) or an incompatibility between Apache or php and an uncommon configuration of Windows XP.

            From what you said, JoshB, I guess you're using the cgi version of php (the module doesn't start a php.exe process, does it?). As I am using the module version of php and it's not working either, it can be assumed that the problem is not module/cgi related.

            I have tried what I wrote above (checking the http checkbox in the ICS parameters) and it seems that corruption has reduced (I haven't made extensive test so I am not too sure on that, it seems odd). In fact I remember having lots of bytes corrupted (let's say 40) and now when I check, I see only about 10 bytes corrupted. I am quite intrigued by that, those results should be backed up by more tests. By the way it doesn't solve the problem entirely.

            What would be interesting to test (I can't make it now) would be to send a "long" html file with no php to see if the same problem occurs. If it does then we can safely assume it is not php related (well at least not entirely), if the page loads well then we'll need to investigate further on php (maybe installing latest version which seems to behave better on Windows).

            Another test that could be useful would be to see what Apache is sending, whether it is already corrupted or not (I am not too confident on my USB modem).

            Please tell any uncommon features you have in Apache, php or WindowsXP and any uncommon hardware (network related of course).

            As I already said, I have an Alcatel Speedtouch USB ADSL modem. My Apache configuration is basic except for the use of virtual hosts and "dynamic" virtual hosts (through mod_vhost_alias) and php of course. For php, everything is basic too ; I have only increased some values (don't remember well). As of WindowsXP, I have Internet Connection Sharing enabled but the Internet Connection Firewall is disabled.

            Waiting for contributions...

              A quick update from me...

              I have found that by replacing Apache with another webserver, half of my troubles dissappeared... The one that dissappeared was that all my pages are sending to me just fine (I'm loading over a 100mb network for an intranet site).

              However, my php.exe (Yep, I am running as a CGI) continues to get left loaded and using 100% CPU usage randomly. I'll try to load the isapi module to see if that helps.

              -JoshB

                Oh yeah... Upgrading to PHP 4.1.0 did not make any difference... I'm using the php.ini-dist (not php.ini-recommended) with a few customizations to it).

                -JoshB

                  I just thought about looking at newsgroups, more specifically news://comp.infosystems.www.servers.ms-windows (found the link on apache).

                  There is a subject named "Apache problems on XP - update" where the question is investigated and a possible php fix is given (spoiler: turning "implicit_flush" on).

                  As it doesn't seem php related (the same problem occurs with server parsed files), maybe the topic should be closed and all further remarks posted on the newsgroup.

                  Will try the fix and post my conclusion.

                    @gatorette: Thanks for telling me about this thread!

                    Well, I have the same problem and really tried many many things and even posted it to the bug reports of Apache.

                    It does not appear over the LAN.
                    It does not depend on having installed php or enabled ssi; it even appears on very long html-only pages.
                    Other servers like IIS or Omnihttpd do not have any problems serving the same files.
                    It does not take an efffect to en-/disable the XP-firewall or un-/check any of the preconfigured items.

                    Special things about my configuration:

                    I have an USB-NIC with that I am connected to the Internet (I just saw somebody else with this problem having an USB-Modem).
                    I have the doc-root on an own partition.

                    I hope you now have to test a few things less...
                    (Is everybody with this problem connected to the Internet over an USB-device????)

                      What I forgot:

                      The same Apache Configuration with the same hardware worked fine on WinME and Win2000...
                      (I've hidden the XP Partition and installed a new WinME, started Apache from WinME ...: NO PROBLEMS!)

                        4 months later

                        Exactly same problems with above, after upgrading to apache 2.0.35 and php 4.2RC4 i get even more corruption, im using XP so i guess im just gonna have to run it on something else, a shame seems how XP is so stable

                          Write a Reply...