[Bug 403599] Re: Installing PHP5 performs a reload to apache instead of a restart

Andreas Olsson andreas at arrakis.se
Sat Aug 15 18:56:02 BST 2009


Noticed a rather significant historical detail...

The construction of using "invoke-rc.d apache2 force-reload" in
libapache2-mod-php5.postinst originates from at least back in 2004. At
that time (well, actually didn't go further back than Ubuntu 6.06)
/etc/init.d/apache2 had force-reload as being equivalent to to restart.
Today, at least from Ubuntu 8.04 and forward, /etc/init.d/apache2 has
force-reload instead acting as merely a reload. In other words, it seems
as the original intent of the packager was to have apache2 restart
during the installation of libapache2-mod-php5, an effect which later
was lost due to the changing nature of /etc/init.d/apache2.

Also, it seems reasonable to force a restart of apache2 when libapache2
-mod-php5 to make sure it's really activated. Hence I'm attachning a
debdiff which explicitly tells invoke-rc.d to restart apache2.

That said, we might not want to have apache2 automatically restart at
every php5 upgrade, and by that potentially disturbing a live website.
Especially not since we've been gracefully reloading now for a while.
Hence the debdiff also libapache2-mod-php5.postinst to differ between
doing a restart on installation and merely reloading on an upgrade.

** Attachment added: "php5_5.2.10.dfsg.1-2ubuntu2.debdiff"
   http://launchpadlibrarian.net/30369386/php5_5.2.10.dfsg.1-2ubuntu2.debdiff

-- 
Installing PHP5 performs a reload to apache instead of a restart
https://bugs.launchpad.net/bugs/403599
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to php5 in ubuntu.



More information about the Ubuntu-server-bugs mailing list