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.
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.