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....
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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 |
|
|||
|
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? |