Debian Bug report logs -
#419714
libapache-mod-php4: Apache doesn't use the right php.ini when starting
Reported by: "tech@mediaforest.net" <tech@mediaforest.net>
Date: Tue, 17 Apr 2007 15:03:11 UTC
Severity: normal
Fixed in version 6:4.4.6-2+rm
Done: Marco Rodrigues <gothicx@gmail.com>
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#419714; Package libapache-mod-php4.
(full text, mbox, link).
Acknowledgement sent to "tech@mediaforest.net" <tech@mediaforest.net>:
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: libapache-mod-php4
Version: 6:4.4.4-9
Severity: normal
Hello,
since an upgrade off my debian testing, on 2007-04-11
I get permanently many errors of this kind in my apache error logs :
mod_mime_magic: invalid type 0 in mconvert().
I looked into bugs.debian.org and I found a corresponding bug report : 357373
unfortunately, the publication date for this bug shows obvously that it cannot be the same,
furthermore, this bug was initialy linked to the libmagic1 package, then to the file package,
and finaly to the php4 package. Though it's an apache bug.
Here are some precisions :
If I run :
php4 -c /etc/php4/apache/php.ini
or
php4 -c /etc/php4/cli/php.ini
or with any well configured php.ini, I don't get any error.
If I run
php4 -c /etc/php.ini
or with an inexistant or bad configured php.ini,
I get :
PHP Warning: mime_magic: type search/400 \\input text/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type search/400 \\section text/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type search/400 \\setlength text/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type search/400 \\documentstyle text/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type search/400 \\chapter text/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type search/400 \\documentclass text/x-tex invalid in Unknown on line 0
PHP Warning: mime_magic: type regex [Cc]onstant[[:space:]]+[Ss]tory text/x-inform invalid in Unknown on line 0
And when I start or restart Apache either with apachectl restart or /etc/init.d/apache restart, I get exactly the same messages :
[Tue Apr 17 16:58:06 2007] [error] mod_mime_magic: type search/400\t\\\\input\t\ttext/x-tex invalid
[Tue Apr 17 16:58:06 2007] [error] mod_mime_magic: type search/400\t\\\\section\ttext/x-tex invalid
[Tue Apr 17 16:58:06 2007] [error] mod_mime_magic: type search/400\t\\\\setlength\ttext/x-tex invalid
[Tue Apr 17 16:58:06 2007] [error] mod_mime_magic: type search/400\t\\\\documentstyle\ttext/x-tex invalid
[Tue Apr 17 16:58:06 2007] [error] mod_mime_magic: type search/400\t\\\\chapter\ttext/x-tex invalid
[Tue Apr 17 16:58:06 2007] [error] mod_mime_magic: type search/400\t\\\\documentclass\ttext/x-tex invalid
[Tue Apr 17 16:58:06 2007] [error] mod_mime_magic: type regex\t\t[Cc]onstant[[:space:]]+[Ss]tory\ttext/x-inform invalid
I think it means that, when starting, Apache doesn't use the right php.ini config file, so php run with the default values
which aren't the good ones.
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.18-4-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash
Versions of packages libapache-mod-php4 depends on:
ii apache-c 1.3.34-4.1 support files for all Apache webse
ii libbz2-1 1.0.3-6 high-quality block-sorting file co
ii libc6 2.3.6.ds1-13 GNU C Library: Shared libraries
ii libcomer 1.39+1.40-WIP-2006.11.14+dfsg-2 common error description library
ii libdb4.4 4.4.20-8 Berkeley v4.4 Database Libraries [
ii libexpat 1.95.8-3.4 XML parsing C library - runtime li
ii libkrb53 1.4.4-8 MIT Kerberos runtime libraries
ii libmagic 4.20-4 File type determination library us
ii libpcre3 6.7-1 Perl 5 Compatible Regular Expressi
ii libssl0. 0.9.8e-4 SSL shared libraries
ii libzzip- 0.12.83-8 library providing read access on Z
ii mime-sup 3.39-1 MIME files 'mime.types' & 'mailcap
ii php4-com 6:4.4.4-9 Common files for packages built fr
ii ucf 2.0020 Update Configuration File: preserv
ii zlib1g 1:1.2.3-13 compression library - runtime
libapache-mod-php4 recommends no packages.
-- debconf information:
php4/update_apache_php_ini: true
Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#419714; Package libapache-mod-php4.
(full text, mbox, link).
Acknowledgement sent to Thomas Themel <thomas@themel.com>:
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 419714@bugs.debian.org (full text, mbox, reply):
Hi,
I just ran into this myself, and it's caused by Apache2.2's mime_magic
module. The offending lines are in /usr/share/file/magic.mime,
commenting them (by prepending a #) causes the PHP warnings to go away.
ciao,
--
[*Thomas Themel*] Informationsfreiheit bedeutet, die Medien sind frei
[extended contact] von Informationen. (Das ist wie beim "Ausbau" von
[info provided in] Schienenstrecken. Nach dem Ausbau sind die Gleise weg.)
[*message header*] - Ralf Bader in de.soc.recht.datennetze
Information forwarded to debian-bugs-dist@lists.debian.org, Debian PHP Maintainers <pkg-php-maint@lists.alioth.debian.org>:
Bug#419714; Package libapache-mod-php4.
(full text, mbox, link).
Acknowledgement sent to Lucas Nussbaum <lucas@lucas-nussbaum.net>:
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 419714@bugs.debian.org (full text, mbox, reply):
reassign 301824 libapache2-mod-php5
reassign 330419 libapache2-mod-php5
reassign 317577 libapache2-mod-php5
reassign 321460 libapache2-mod-php5
reassign 319398 libapache2-mod-php5
reassign 419714 libapache2-mod-php5
thanks
The libapache-mod-php4 package has been removed from Debian testing, unstable and
experimental. I am reassigning its bugs to the libapache2-mod-php5 package. Please
have a look at them, and close them if they don't apply to
libapache2-mod-php5 anymore.
Don't hesitate to reply to this mail if you have any question.
--
Lucas
Reply sent
to Marco Rodrigues <gothicx@gmail.com>:
You have taken responsibility.
(Fri, 26 Mar 2010 21:03:17 GMT) (full text, mbox, link).
Notification sent
to "tech@mediaforest.net" <tech@mediaforest.net>:
Bug acknowledged by developer.
(Fri, 26 Mar 2010 21:03:17 GMT) (full text, mbox, link).
Message #24 received at 419714-done@bugs.debian.org (full text, mbox, reply):
Version: 6:4.4.6-2+rm
You filed the bug http://bugs.debian.org/419714 in Debian BTS
against the package libapache-mod-php4. I'm closing it at *unstable*, but it will
remain open for older distributions.
For more information about this package's removal, read
http://bugs.debian.org/428266. That bug might give the reasons why
this package was removed and suggestions of possible replacements.
Don't hesitate to reply to this mail if you have any question.
Thank you for your contribution to Debian.
--
Marco Rodrigues
Bug archived.
Request was from Debbugs Internal Request <owner@bugs.debian.org>
to internal_control@bugs.debian.org.
(Sat, 24 Apr 2010 07:29:32 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 02:34:41 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.