[php-maint] Bug#463905: Bug#463905: PHP scripts fail after install of php5-common 5.2.5-2

Steve Langasek vorlon at debian.org
Mon Feb 4 06:27:39 UTC 2008


reassign 463905 libapache2-mod-php5
forcemerge 463905 463906
thanks

Please keep the bug number cc:ed on replies.

On Sun, Feb 03, 2008 at 09:22:29PM -0800, Cam Ellison wrote:
> > The php5-common package has nothing to do with apache2.  Which
> > version of libapache2-mod-php5 is available according to 'apt-cache
> > policy libapache2-mod-php5'?

> This:
> libapache2-mod-php5:
>   Installed: 5.2.5-1
>   Candidate: 5.2.5-2

Er, then that's a problem since you said you did *not* try php5-common
5.2.5-1, and libapache2-mod-php5 depends on php5-common of the same version.
You seem to be doing something quite unsupported with the packages.

And this would explain why php5 was not enabled in apache2, because
libapache2-mod-php5 cannot be in an installed state if there's a version
mismatch between libapache2-mod-php5 and php5-common; and before it's in
state "installed", the module is not enabled for apache2's use (this is done
in the libapache2-mod-php5 postinst).

> I just filed a bug report against libapache2-mod-php5 version 5.2.5-2, 
> erroneously as it turns out - it should have been against 5.2.5-1.  It 
> does not seem to install php5.conf nor php5.load 
> into /etc/apache2/mods-available.  It does install libphp5.so.

I think these two bug reports should be merged.  There is at most one bug
here - and more likely zero bugs.

> What do you suggest?  Should I try to install libapach2-mod-php5 version 
> 5.2.5-2 via dpkg and see what that does?  I'm hesitant to try that 
> while I have someone trying to use the system.

You should probably stick to using apt-get/aptitude for installing the
packages, since that will check things like the versioned package
dependencies ahead of time and guard against things like accidentally
deconfiguring libapache2-mod-php5 when installing php5-common, which is what
it looks like happened here.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org





More information about the pkg-php-maint mailing list