Bug#490023: install of php5-pgsql should ideally reload apache2 if libapache2-mod-php5 is in use
Package: php5-pgsql Version: 5.2.0-8+etch11 Severity: wishlist When upgrading an etch web server from PHP4 to PHP5 I recently did something like apt-get install libapache2-mod-php5 php5-cli php5-common php5-pgsql php5-mysql . and all went reasonably well, except that when I went to look at the main web application it was down due to pgsql not being available. This was because apache2 was restarted when libapache2-mod-php5 was installed, but php5-pgsql was subsequently installed without a restart of apache2, so PHP5 had not yet loaded the pgsql support. It seems like installing modules like php5-pgsql should probably trigger this restart if libapache2-mod-php5 is installed? -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-6-686 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages php5-pgsql depends on: ii libapache2-mod-php5 [p 5.2.0-8+etch11server-side, HTML-embedded scripti ii libc6 2.3.6.ds1-13etch5 GNU C Library: Shared libraries ii libpq4 8.1.11-0etch1 PostgreSQL C client library ii php5-cli [phpapi-20060 5.2.0-8+etch11command-line interpreter for the p ii php5-common5.2.0-8+etch11Common files for packages built fr php5-pgsql recommends no packages. -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#490023: [php-maint] Bug#490023: install of php5-pgsql should ideally reload apache2 if libapache2-mod-php5 is in use
hi gavin, the problem with this approach is that every php5 module would require such a reload of apache whenever it was installed or upgraded, which is less than ideal, and why i believe that it has not yet been implemented. i'm pretty sure this problem has been reported in the past but after digging through the open reports i can't seem to find it. could be that it was reassigned or otherwise lost during the php4-php5 migration. or that i suck at digging through bug reports. however, now that dpkg supports triggers, i think the correct way to fix this is to implement via file or directory based triggers watching the conf.d directories for php and reloading apache2 at the end of the dpkg/apt run if any files/directories were modified. however, i am not at all familiar with the triggers implementation. if anyone else is knowledgeable and/or interested in implementing such a feature, i'd be happy to review it (though time is quite limited for making it to lenny with such a patch). otherwise i'll throw a help tag and forward it to a wider audience. sean On Wednesday 09 July 2008 01:09:50 pm Gavin McCullagh wrote: Package: php5-pgsql Version: 5.2.0-8+etch11 Severity: wishlist When upgrading an etch web server from PHP4 to PHP5 I recently did something like apt-get install libapache2-mod-php5 php5-cli php5-common php5-pgsql php5-mysql . and all went reasonably well, except that when I went to look at the main web application it was down due to pgsql not being available. This was because apache2 was restarted when libapache2-mod-php5 was installed, but php5-pgsql was subsequently installed without a restart of apache2, so PHP5 had not yet loaded the pgsql support. It seems like installing modules like php5-pgsql should probably trigger this restart if libapache2-mod-php5 is installed? -- System Information: Debian Release: 4.0 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-6-686 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) Versions of packages php5-pgsql depends on: ii libapache2-mod-php5 [p 5.2.0-8+etch11server-side, HTML-embedded scripti ii libc6 2.3.6.ds1-13etch5 GNU C Library: Shared libraries ii libpq4 8.1.11-0etch1 PostgreSQL C client library ii php5-cli [phpapi-20060 5.2.0-8+etch11command-line interpreter for the p ii php5-common5.2.0-8+etch11Common files for packages built fr php5-pgsql recommends no packages. -- no debconf information ___ pkg-php-maint mailing list [EMAIL PROTECTED] http://lists.alioth.debian.org/mailman/listinfo/pkg-php-maint signature.asc Description: This is a digitally signed message part.
Bug#490023: [php-maint] Bug#490023: install of php5-pgsql should ideally reload apache2 if libapache2-mod-php5 is in use
Hi, On Wed, 09 Jul 2008, sean finney wrote: the problem with this approach is that every php5 module would require such a reload of apache whenever it was installed or upgraded, which is less than ideal, and why i believe that it has not yet been implemented. i'm pretty sure this problem has been reported in the past but after digging through the open reports i can't seem to find it. Yeah, that problem occurred to me (I myself was installing several PHP packages) and I had guessed that triggers was probably the answer. I'm afraid my dpkg-foo is far below yours though so I won't be much help at this moment. if anyone else is knowledgeable and/or interested in implementing such a feature, i'd be happy to review it (though time is quite limited for making it to lenny with such a patch). otherwise i'll throw a help tag and forward it to a wider audience. Sounds like a good plan. Gavin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]