Just to note: It's not just a matter of restarting apache2. People might a) be using a different webserver which needs to get restarted => restart the other webserver, b) be using a different webserver which doesn't need to get restarted => Don't do anything, c) be using php5 for scripting purposes and might just happen to have an apache server running doing other things. => don't do anything, d) be using apache, but php5 as a cgi interpreter => don't do anything, e) or something entirely different that I forgot to take into account.
The best we can do (off the top of my head) is to notify the user of the possible need to restart. The postinst should do this and a mail should be sent to root (the common way to notify users about these things on servers). -- Need user notification after installing php-mysql https://bugs.launchpad.net/bugs/104270 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs