I'm trying to install and run PHP 5.0.1 locally on Windows XP Pro with IIS 5.1.
PHP package is unzipped to C:\PHP. My webpage document root is C:\inetpub\wwwroot.
PHP.ini is in C:\PHP and loads fine.
I added an application mapping in IIS for the .php extension to call C:\php\php.exe.
I ran this reg file:
REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\w3svc\parameters\Script Map]
".php"="C:\PHP\php.exe"
After installing PHP, I created a simple test.php page:
<?php echo "Hello"; ?>
If I try to access this page using MSIE browser, the browser statusbar
says 'Opening page...' and nothing happens. It just stays like that forever
until it finally times out.
If I run php.exe -i from a MSDOS window, it spits out a bunch of variables.
Everything looks fine, I don't see any error messages. I can even run the test.php
page successfully from the MSDOS window:
php.exe C:\inetpub\wwwroot\test.php
and I get "Hello" as expected.
Why is my browser hanging on PHP pages? IIS is up and running. I get no error
messages, no logs, nothing. Tried using a PHP installer, instead of doing it
manually, but still get the same result.
I can even type in a webpage that doesn't exist, like test123.php, and the
browser still hangs on it.