[php-maint] Bug#419714: libapache-mod-php4: Apache doesn't use the
right php.ini when starting
tech at mediaforest.net
tech at mediaforest.net
Tue Apr 17 15:01:54 UTC 2007
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 at euro, LC_CTYPE=fr_FR at 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
More information about the pkg-php-maint
mailing list