PHP script executed twice on each request
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: php5-fpm
I wrote simple script /var/www/
<?php
syslog(LOG_NOTICE, 'TEST.PHP RUN! '.time());
sleep(1);
syslog(LOG_NOTICE, 'TEST.PHP EXITED! '.time());
?>
Here is the part of my nginx config /etc/nginx/
location ~ \.php$ {
}
I can see next lines in my /var/log/syslog:
Apr 23 22:55:57 illumium php5-fpm: TEST.PHP RUN! 1303577757
Apr 23 22:55:58 illumium php5-fpm: TEST.PHP EXITED! 1303577758
Apr 23 22:55:58 illumium php5-fpm: TEST.PHP RUN! 1303577758
Apr 23 22:55:59 illumium php5-fpm: TEST.PHP EXITED! 1303577759
description: | updated |
description: | updated |
Changed in php5 (Ubuntu): | |
status: | New → Invalid |
Hmm,
When I'm sniffing fcgi traffic between nginx and fpm with wireshark, I can see that nginx sends request twice.
Why it may be so?