Apache/IE hangs with PHP

This is a discussion on Apache/IE hangs with PHP within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Hi, I have this strange problem. I have Apache 1.3.28 on Windows XP Home SP1 with PHP 4....


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-25-2004
Vincent Bouret
 
Posts: n/a
Default Apache/IE hangs with PHP

Hi,

I have this strange problem. I have Apache 1.3.28 on Windows XP Home SP1
with PHP 4.3.4 as a module:

httpd.conf
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml

//After a list of modules
AddModule mod_php4.c

Let's say I have test.php that does nothing more than sleeping for 30
seconds:
<?php
sleep(30);
?>
<html>
content
</html>

When I open up this script in IE with http://localhost/test.php and within
the 30 seconds sleep I try to load another file with .php extension
(regardless of whether there are some php statements or not in the file) on
the same localhost server with another IE window, IE or Apache hangs until
the first script is done and then gives output of the second script.

The thing is that when I connect to Apache manually with Telnet during the
same 30 seconds and I request a PHP script, I get the answer immediately.

I've tried almost everything, Apache 2.0, PHP5, disabling Keep-Alive in
Apache, nothing works.

What am I doing wrong? Is that a natural behaviour.

Thanks for your help,
Vincent


Reply With Quote
  #2 (permalink)  
Old 02-26-2004
J.O. Aho
 
Posts: n/a
Default Re: Apache/IE hangs with PHP

Vincent Bouret wrote:
> Hi,
>
> I have this strange problem. I have Apache 1.3.28 on Windows XP Home SP1
> with PHP 4.3.4 as a module:
>
> httpd.conf
> LoadModule php4_module c:/php/sapi/php4apache.dll
> AddType application/x-httpd-php .php
> AddType application/x-httpd-php .phtml
>
> //After a list of modules
> AddModule mod_php4.c
>
> Let's say I have test.php that does nothing more than sleeping for 30
> seconds:
> <?php
> sleep(30);
> ?>
> <html>
> content
> </html>
>
> When I open up this script in IE with http://localhost/test.php and within
> the 30 seconds sleep I try to load another file with .php extension
> (regardless of whether there are some php statements or not in the file) on
> the same localhost server with another IE window, IE or Apache hangs until
> the first script is done and then gives output of the second script.
>
> The thing is that when I connect to Apache manually with Telnet during the
> same 30 seconds and I request a PHP script, I get the answer immediately.
>
> I've tried almost everything, Apache 2.0, PHP5, disabling Keep-Alive in
> Apache, nothing works.
>
> What am I doing wrong? Is that a natural behaviour.
>
> Thanks for your help,
> Vincent
>
>

At least it's not sql problem.
May be that you have configured your apache wrongly and don't allow it more
one thread at the time, so while the one php page is sleeping it keeps the one
and only thread occupied. The answer you get on the telnet, is that anything
more than headers?
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 01:53 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0