[Pkg-mediawiki-devel] Bug#581177: Default configuration file layout makes mediawiki thinks its installed in /etc/mediawiki

guillaume ranquet guillaume.ranquet at inria.fr
Tue May 11 12:06:10 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Package: mediawiki
Version: 1:1.12.0-2lenny5
Severity: important

*** Please type your report below this line ***
The default file layout which simlinks
/usr/share/mediawiki/LocalSettings.php to
/etc/mediawiki/LocalSettings.php makes mediaiwiki thinks it's installed
in /etc/mediawiki.
this is the error message as seen in a browser
- ---------------->8
Warning: require_once(/etc/mediawiki/includes/SiteConfiguration.php)
[function.require-once]: failed to open stream: No such file or
directory in /usr/share/mediawiki/includes/DefaultSettings.php on line 30

Fatal error: require_once() [function.require]: Failed opening required
'/etc/mediawiki/includes/SiteConfiguration.php'
(include_path='/etc/mediawiki:/etc/mediawiki/includes:/etc/mediawiki/languages:/usr/share/php5/PEAR/:.:/usr/share/php:/usr/share/pear')
in /usr/share/mediawiki/includes/DefaultSettings.php on line 30
8<----------------

I fixed the issue by moving things around but any update of mediawiki
tends to erase my {Local,Admin}Settings.php files without any warning
(this is really upsetting and apt should at least make a backup... but
that's another topic)

- ---------------->8
    * root at g5k:/etc/mediawiki# ls -al /etc/mediawiki/*Settings.php
    * lrwxrwxrwx 1 root root 38 2010-03-04 12:12
/etc/mediawiki/AdminSettings.php -> /usr/share/mediawiki/AdminSettings.php
    * lrwxrwxrwx 1 root root 38 2010-03-08 16:50
/etc/mediawiki/LocalSettings.php -> /usr/share/mediawiki/LocalSettings.php
    * root at g5k:/etc/mediawiki# ls -al /var/lib/mediawiki/*Settings.php
    * lrwxrwxrwx 1 root root 32 2010-03-04 12:07
/var/lib/mediawiki/AdminSettings.php -> /etc/mediawiki/AdminSettings.php
    * lrwxrwxrwx 1 root root 32 2010-03-04 12:07
/var/lib/mediawiki/LocalSettings.php -> /etc/mediawiki/LocalSettings.php
    * root at g5k:/etc/mediawiki# ls -al /usr/share/mediawiki/*Settings.php
    * -r--r--r-- 1 root root 822 2010-03-04 12:11
/usr/share/mediawiki/AdminSettings.php
    * -r--r--r-- 1 root root 4195 2010-03-08 16:53
/usr/share/mediawiki/LocalSettings.php
8<----------------


I'm not really familiar with debian and the whole apt thing (I'm more
familiar with gentoo)
maybe I'm missing something?

Steps to reproduce:
on lenny from a fresh debootstrap:
apt-get install mediawiki apache2
tweak /etc/mediawiki/apache.conf
restart apache
elinks http://127.0.0.1/mediawiki/
Reproductible:
Always
Severity:
Important
I think this is an important issue as mediawiki won't work as it's
installed by apt-get.

- -- System Information:
Debian Release: 5.0.4
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-24-xen (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=locale: Cannot
set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages mediawiki depends on:
ii  apache2            2.2.9-10+lenny7       Apache HTTP Server metapackage
ii  apache2-mpm-prefor 2.2.9-10+lenny7       Apache HTTP Server -
traditional n
ii  debconf [debconf-2 1.5.24                Debian configuration
management sy
ii  mime-support       3.44-1                MIME files 'mime.types' &
'mailcap
ii  php5               5.2.6.dfsg.1-1+lenny8 server-side, HTML-embedded
scripti
ii  php5-mysql         5.2.6.dfsg.1-1+lenny8 MySQL module for php5

Versions of packages mediawiki recommends:
ii  mysql-server       5.0.51a-24+lenny3     MySQL database server
(metapackage
ii  mysql-server-5.0 [ 5.0.51a-24+lenny3     MySQL database server binaries
ii  php5-cli           5.2.6.dfsg.1-1+lenny8 command-line interpreter
for the p

Versions of packages mediawiki suggests:
pn  clamav          <none>                   (no description available)
ii  imagemagick     7:6.3.7.9.dfsg2-1~lenny3 image manipulation programs
pn  mediawiki-math  <none>                   (no description available)
pn  memcached       <none>                   (no description available)

- -- debconf information:
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
        LANGUAGE = (unset),
        LC_ALL = (unset),
        LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
  mediawiki/webserver: apache2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJL6UgyAAoJEEzIl7PMEAlijBYIAOymhh1NmfECsR+D/KA9AnZd
X1cc7DPJSbIy3BOa1rgBk1gTo6AM6lrnmp2al0uWvtmt4LUPyRxkwMLHGhpQPAcF
Xk8pe8tR+3Zz6wTaGqjNR+u2lgiW8XYcPYNxUhdzYJSk7POQtFTKZXnd62VhuWLP
BeDlyZ1cuKM3JJhtMTP0Vj4u4v/KrdPr+npQPR5ll6O1qcx/QuSQcXGwhjEKW8S0
hnE4lQsEvsweyQKSK2Ay0ASIU3I0qXdFHhdIpSmNrJ9cVCTH+nLBT4NT4D3jvEBI
UGTTAZdAwziyiCtn6Mlq72yuf20yBZe3ubEmsDu/6U59zqQzSxp6gHg3mohJ0JU=
=ZPbM
-----END PGP SIGNATURE-----

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4312 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-mediawiki-devel/attachments/20100511/86b34f1a/attachment.bin>


More information about the Pkg-mediawiki-devel mailing list