PHP script executed twice on each request

Bug #769580 reported by Katyo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php5 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: php5-fpm

I wrote simple script /var/www/nginx-default/test.php with contents:

<?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/sites-available/default for php5-fpm:

location ~ \.php$ {
                root /var/www/nginx-default;
                fastcgi_pass 127.0.0.1:9000;
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
                include fastcgi_params;
        }

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

Katyo (kayo-k11-4)
description: updated
description: updated
Revision history for this message
Katyo (kayo-k11-4) wrote :

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?

Katyo (kayo-k11-4)
Changed in php5 (Ubuntu):
status: New → Invalid
Revision history for this message
Andreas (arabus) wrote :

Why invalid?
looks like a nginx / php issue (perhaps conf?)
But how to solve this?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.