Board index   FAQ   Search  
Register  Login
Board index PHP PHP Installation

PHP pages hanging?

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

PHP pages hanging?

Postby JeffM » Thu Sep 09, 2004 10:36 pm

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. :-o
JeffM
New php-forum User
New php-forum User
 
Posts: 4
Joined: Thu Sep 09, 2004 10:31 pm

Re: PHP pages hanging?

Postby WiZARD » Fri Sep 10, 2004 9:52 am

try restart your computer some time to time maby this is your problem...
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

Postby JeffM » Fri Sep 10, 2004 11:06 am

Rebooting my computer doesn't help. Restarting IIS doesn't help either.

Why would MSIE hang on a PHP webpage that doesn't even exist? :-o

How can I debug this problem, because I get no error messages? Doing php.exe -i is no help.
JeffM
New php-forum User
New php-forum User
 
Posts: 4
Joined: Thu Sep 09, 2004 10:31 pm

Postby swirlee » Fri Sep 10, 2004 11:09 am

If it still happens even if the page doesn't exist, then it's no a PHP problem, it's an IIS problem. Try the Microsoft knowledgebase.
User avatar
swirlee
Moderator
Moderator
 
Posts: 2272
Joined: Sat Jul 05, 2003 1:18 pm
Location: A bunk in the back

Postby JeffM » Fri Sep 10, 2004 3:37 pm

Woohoo! I got it working! :grin:

Here's the page:
http://us2.php.net/manual/sv/printwn/install.iis.php

Instead of using CGI binary, I used the ISAPI module method. I don't know why the other
method didn't work.
JeffM
New php-forum User
New php-forum User
 
Posts: 4
Joined: Thu Sep 09, 2004 10:31 pm

Postby JeffM » Fri Sep 10, 2004 8:54 pm

Even though it works, I don't recommend using ISAPI. Every time I restart IIS now,
it crashes on me, which is really bogus. I think I've read somewhere the CGI method is
preferred over ISAPI. I have a strange feeling I'm going to have a lot of problems
with PHP. :(
JeffM
New php-forum User
New php-forum User
 
Posts: 4
Joined: Thu Sep 09, 2004 10:31 pm

Postby ruturajv » Mon Sep 13, 2004 7:56 pm

I have a great idea for you, Why don't you use Apache.. its a free download
User avatar
ruturajv
php-forum Super User
php-forum Super User
 
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Postby WiZARD » Wed Oct 13, 2004 5:10 am

could you try see logEvent your windows os?
maby you can see somthing in it?
by the way how about IIS6?
User avatar
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol


Return to PHP Installation

Who is online

Users browsing this forum: Majestic-12 [Bot] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.