[php-maint] Bug#490023: Bug#490023: install of php5-pgsql should ideally reload apache2 if libapache2-mod-php5 is in use

sean finney seanius at debian.org
Wed Jul 9 17:07:50 UTC 2008


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: LANG=en_IE at euro, LC_CTYPE=en_IE at euro (charmap=ISO-8859-15)
>
> Versions of packages php5-pgsql depends on:
> ii  libapache2-mod-php5 [p 5.2.0-8+etch11    server-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+etch11    command-line
> interpreter for the p ii  php5-common            5.2.0-8+etch11    Common
> files for packages built fr
>
> php5-pgsql recommends no packages.
>
> -- no debconf information
>
>
>
> _______________________________________________
> pkg-php-maint mailing list
> pkg-php-maint at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-php-maint
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://lists.alioth.debian.org/pipermail/pkg-php-maint/attachments/20080709/c1aca0ca/attachment-0001.pgp 


More information about the pkg-php-maint mailing list