Debian Bug report logs -
#463905
PHP scripts fail after install of php5-common 5.2.5-2
Reported by: cam@ellisonpsychology.ca
Date: Mon, 4 Feb 2008 04:36:01 UTC
Severity: normal
Tags: moreinfo, unreproducible
Merged with 463906
Found in version php5/5.2.5-2
Fixed in versions php5/5.2.6-5, 5.2.6.dfsg.1-1+lenny3
Done: Ondřej Surý <ondrej@sury.org>
Bug is archived. No further changes may be made.
Toggle useless messages
Report forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#463905; Package php5-common.
(full text, mbox, link).
Acknowledgement sent to cam@ellisonpsychology.ca:
New Bug report received and forwarded. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(full text, mbox, link).
Message #5 received at submit@bugs.debian.org (full text, mbox, reply):
Package: php5-common
Version: 5.2.5-2
After installation of php5-common_5.2.5-2_i386.deb, apache2 does not
appear to recognize php scripts. Browser pops up request to specify an
application to open it. Downgrading to php5-common_5.2.4-2+b1_i386.deb
resolved the problem. I have not tested php5-common_5.2.5-1_i386.deb -
this is a production website, and it's in use at the moment.
This machine runs combined lenny/sid, kernel 2.6.23, and
apache2-mpm-prefork version 2.2.8
--
Cam Ellison Ph.D. R.Psych. #01417
Cam Ellison & Associates Ltd.
Management Psychology
3446 Beach Avenue
Roberts Creek BC V0N 2W2
Phone: 604.885.4806
Fax: 604.885.4809
Cell: 604.989.0635
Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#463905; Package php5-common.
(full text, mbox, link).
Acknowledgement sent to Steve Langasek <vorlon@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(full text, mbox, link).
Message #10 received at 463905@bugs.debian.org (full text, mbox, reply):
On Sun, Feb 03, 2008 at 08:35:26PM -0800, Cam Ellison wrote:
> Package: php5-common
> Version: 5.2.5-2
> After installation of php5-common_5.2.5-2_i386.deb, apache2 does not
> appear to recognize php scripts. Browser pops up request to specify an
> application to open it. Downgrading to php5-common_5.2.4-2+b1_i386.deb
> resolved the problem. I have not tested php5-common_5.2.5-1_i386.deb -
> this is a production website, and it's in use at the moment.
> This machine runs combined lenny/sid, kernel 2.6.23, and
> apache2-mpm-prefork version 2.2.8
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'?
If you're pulling from an out-of-date mirror, then installing the newest
php5-common could leave libapache2-mod-php5 uninstallable.
--
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@ubuntu.com vorlon@debian.org
Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#463905; Package php5-common.
(full text, mbox, link).
Acknowledgement sent to Steve Langasek <vorlon@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(full text, mbox, link).
Message #15 received at 463905@bugs.debian.org (full text, mbox, reply):
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@ubuntu.com vorlon@debian.org
Forcibly Merged 463905 463906.
Request was from Steve Langasek <vorlon@debian.org>
to control@bugs.debian.org.
(Mon, 04 Feb 2008 06:30:04 GMT) (full text, mbox, link).
Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#463905; Package libapache2-mod-php5.
(full text, mbox, link).
Acknowledgement sent to Steve Langasek <vorlon@debian.org>:
Extra info received and forwarded to list. Copy sent to Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>.
(full text, mbox, link).
Message #24 received at 463905@bugs.debian.org (full text, mbox, reply):
On Mon, Feb 04, 2008 at 07:36:37AM -0800, Cam Ellison wrote:
> > 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.
> Actually, using apt-get there was php5-common version 5.2.5-2 and
> libapache2-mod-php5 version 5.2.5-1. I ran apt-get install with other
> packages after installing this version of php5-common, with no errors.
> I ran apt-get install with selected packages instead of apt-get upgrade
> in order to avoid those packages with bugs.
I would like to see an apt log of this (/var/log/apt/term.log). apt should
never behave this way, it should honor the dependencies declared by the
packages; and clearly dpkg *did* honor them, or else the libapache2-mod-php5
package would have been (wrongly) configured and you wouldn't have had any
problems.
> > 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 understand this, but why would there not be a warning and refusal to
> continue, or inclusion of libapache2-mod-php5 version 5.2.5-2 in the
> install process? It was only after the error came up and I went
> searching for reasons that I discovered the .conf and .load files were
> missing.
I don't know. The apt log should show this.
> What I didn't include with the previous message was this attempt, which
> I made after I found that php5 wasn't working, and before I discovered
> that php5.conf and php5.load were not present:
> $ dpkg -i libapache2-mod-php5_5.2.5-1_i386.deb
> dpkg - warning: downgrading libapache2-mod-php5 from 5.2.5-2 to 5.2.5-1.
> (Reading database ... 202474 files and directories currently installed.)
> Preparing to replace libapache2-mod-php5 5.2.5-2 (using
> libapache2-mod-php5_5.2.5-1_i386.deb) ...
> Unpacking replacement libapache2-mod-php5 ...
> dpkg: dependency problems prevent configuration of libapache2-mod-php5:
> libapache2-mod-php5 depends on php5-common (= 5.2.5-1); however:
> Version of php5-common on system is 5.2.5-2.
> dpkg: error processing libapache2-mod-php5 (--install):
> dependency problems - leaving unconfigured
> Errors were encountered while processing:
> libapache2-mod-php5
> Would the existing php5.conf and php5.load have been removed by dpkg,
> even though it was refusing to configure?
No, the conffiles in /etc/apache2/mods-available/ would remain intact. The
symlinks under /etc/apache2/mods-*enabled*/, however, *would* be removed
during the upgrade, and would only be restorted once libapache2-mod-php5 is
configured.
> Regardless, this does not explain why php5 was not working with version
> 5.2.5-2 of php5-common, but does work with the earlier version.
If there was a warning message you overlooked indicating that
libapache2-mod-php5 was going to be auto-deconfigured, or if apt had failed
to display this warning, that would explain all of your symptoms.
I can't reproduce any of these problems here, though, short of forcing
libapache2-mod-php5 into a state of broken dependencies.
--
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@ubuntu.com vorlon@debian.org
Tags added: moreinfo, unreproducible
Request was from Raphael Geissert <atomo64@gmail.com>
to control@bugs.debian.org.
(Fri, 25 Jul 2008 03:00:06 GMT) (full text, mbox, link).
Reply sent
to Ondřej Surý <ondrej@sury.org>:
You have taken responsibility.
(Tue, 12 Jan 2010 07:48:05 GMT) (full text, mbox, link).
Notification sent
to cam@ellisonpsychology.ca:
Bug acknowledged by developer.
(Tue, 12 Jan 2010 07:48:05 GMT) (full text, mbox, link).
Message #31 received at 463905-done@bugs.debian.org (full text, mbox, reply):
Version: 5.2.6.dfsg.1-1+lenny3
Looks more like a messing with apt/dpkg than bug in php5.
Marking as fixed in current stable.
--
Ondřej Surý <ondrej@sury.org>
http://blog.rfc1925.org/
Reply sent
to Ondřej Surý <ondrej@sury.org>:
You have taken responsibility.
(Tue, 12 Jan 2010 07:48:05 GMT) (full text, mbox, link).
Notification sent
to cam@ellisonpsychology.ca:
Bug acknowledged by developer.
(Tue, 12 Jan 2010 07:48:05 GMT) (full text, mbox, link).
Bug Marked as fixed in versions php5/5.2.6-5.
Request was from Raphael Geissert <geissert@debian.org>
to control@bugs.debian.org.
(Sat, 01 May 2010 22:27:06 GMT) (full text, mbox, link).
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sun, 30 May 2010 07:30:12 GMT) (full text, mbox, link).
Send a report that this bug log contains spam.
Debian bug tracking system administrator <owner@bugs.debian.org>.
Last modified:
Sun Jul 2 03:07:50 2023;
Machine Name:
bembo
Debian Bug tracking system
Debbugs is free software and licensed under the terms of the GNU
Public License version 2. The current version can be obtained
from https://bugs.debian.org/debbugs-source/.
Copyright © 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson,
2005-2017 Don Armstrong, and many other contributors.