← Back to team overview

ius-coredev team mailing list archive

[Bug 1098319] Re: php-fpm should be reloaded on upgrade

 

Hey Mark,

I have been doing some research into this request.   In my testing, I
found that php-fpm reload is not very gracefully.  Here is the output
when php-fpm gets reloaded while a page is still loading:

$ curl testsite.local/sleep_10_echo_date.php
<html>
<head><title>502 Bad Gateway</title></head>
<body bgcolor="white">
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx/1.2.6</center>
</body>
</html>

I see that there is an open bug with PHP about this issue:

https://bugs.php.net/bug.php?id=60961

I also tested restart, force-reload, condrestart and try-restart, but
they all gave the same result.

I think it might be a good idea not to make any changes till php-fpm can
get gracefully restarted.  When  the time has come, we can revisit this
request.

-Ben

** Bug watch added: bugs.php.net/ #60961
   http://bugs.php.net/bug.php?id=60961

-- 
You received this bug notification because you are a member of IUS Core
Development, which is subscribed to IUS Community Project.
https://bugs.launchpad.net/bugs/1098319

Title:
  php-fpm should be reloaded on upgrade

Status in IUS Community Project:
  New

Bug description:
  If you're using php-fpm, you need to reload php-fpm when php is
  updated, otherwise all the members of the php-fpm pool will continue
  to run on the older version of PHP. This can be a quite old version
  depending on when the last time you did a php-fpm reload.

  You can check this by upgrading a server and checking the phpinfo of a
  site, it will still show the old version. If you do a 'lsofp -p $PID |
  grep deleted' on the php-fpm process, you'll see it is running off the
  older deleted php-fpm binary. When you do a reload of php-fpm, it will
  fix it.

  Fedora now does a reload of php-fpm on upgrade:
  http://pkgs.fedoraproject.org/cgit/php.git/plain/php.spec

To manage notifications about this bug go to:
https://bugs.launchpad.net/ius/+bug/1098319/+subscriptions


References