[Bug 769580] [NEW] PHP script executed twice on each request
Katyo
769580 at bugs.launchpad.net
Sat Apr 23 18:09:47 UTC 2011
Public bug reported:
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
** Affects: php5 (Ubuntu)
Importance: Undecided
Status: New
** Description changed:
- Binary package hint: php5
+ 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;
- }
+ 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 RUNNED! 1303577757
Apr 23 22:55:58 illumium php5-fpm: TEST.PHP EXITED! 1303577758
Apr 23 22:55:58 illumium php5-fpm: TEST.PHP RUNNED! 1303577758
Apr 23 22:55:59 illumium php5-fpm: TEST.PHP EXITED! 1303577759
** Description changed:
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 RUNNED! 1303577757
+ 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 RUNNED! 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
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in Ubuntu.
https://bugs.launchpad.net/bugs/769580
Title:
PHP script executed twice on each request
More information about the Ubuntu-server-bugs
mailing list