Comment 2 for bug 104270

Revision history for this message
Soren Hansen (soren) wrote : Re: [Bug 104270] Re: Need user notification after installing php-mysql

On Wed, Oct 17, 2007 at 12:50:16PM -0000, Ondřej Surý wrote:
> Same for libapache2-mod-php5 itself (#152410).

No, libapache2-mod-php5 already does that. Snippet from its postinst:

reload_apache()
{
 if apache2ctl configtest 2>/dev/null; then
  invoke-rc.d apache2 force-reload || true
 else
  echo "Your apache2 configuration is broken, so we're not restarting it for you."
 fi
}

if [ -n "$2" ]; then
# we're upgrading. test if we're enabled, and if so, restart to reload the module.
 if [ -e /etc/apache2/mods-enabled/php5.load ]; then
  reload_apache
 fi
        exit 0
fi

--
Soren Hansen
Ubuntu Server Team
http://www.ubuntu.com/