I've set up a pathetic little web server for personal use and local development. It's just a basic Apache server with PHP and mySQL (I know, I know) running on a Win32 system (I know, I know). It was chugging along nicely and I was gleefully coding into the wee hours of the morning when a friend digitally taps me on my shoulder and informs me that he can't access my website from his college campus which is behind all manner of firewalls, proxies and such. He says that every time he tries to connect, the PHP script times out. I direct him to a pure HTML page and it loads without a problem. I direct him to a PHP page on another server and it loads without a problem. But as soon as he hits a PHP page on my server, it craps out. However, other users (those not behind firewalls or using proxies) have connected to my server and used various PHP programs without a hitch.
Wondering if I could duplicate this error, I used a Magusnet.com proxy to connect to my own server ... and poof! a three line Hello World script times out. So I go back to that pure HTML page ... poof! it loads correctly. Error duplicated!

You can imagine my consternation.

After running through PHP and Apache settings, I realized that I was way out of my league. Does anyone have an idea of why this is happening and how I can fix it?

    That will occur if you have the php settings wrong in Apache.

      That will occur if you have the php settings wrong in Apache.

      Thanks. Can you be slightly more specific?

        Read the php documentation and follow the instructions. That's what I did and it worked. I had accidentally skipped a step.

          Er ... yeah, I had plumbed the depths of the installation instructions to no avail.

          So I went and reinstalled the entire Apache server with the latest Apache 2 binary and php with 4.3.0 and now everything is peachy (until someone reports the 4.3.0 security hole, eh?).

          Thanks anyway.

            Write a Reply...