Your message dated Mon, 22 May 2006 22:52:29 +0200
with message-id <[EMAIL PROTECTED]>
and subject line It was a misunderstanding
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: mediawiki1.5
Version: 1.5.8-1
Severity: grave

I've had big troubles installing mediawiki1.5 due to LocalSettings.php
permissions and directory. But let's start from the beginning...

After having installed mediawiki1.5, this is what installation page
says: "Installation successful! Move
/var/lib/mediawiki1.5/config/LocalSettings.php to
/etc/mediawiki1.5/LocalSettings.php with rights 600, then follow this
link to your wiki."

I've done what requested, but got this error:
>>
Warning: main(./LocalSettings.php): failed to open stream: Permission
denied in /usr/share/mediawiki1.5/index.php on line 62

Fatal error: main(): Failed opening required './LocalSettings.php'
(include_path='.:/usr/share/php:/usr/share/pear') in
/usr/share/mediawiki1.5/index.php on line 62
<<

and it's OK, since there is no file './LocalSettings.php' under
/usr/share/mediawiki1.5/ , where mediawiki do runs.

So I've taken LocalSettings.php and put it under
/usr/share/mediawiki1.5/ , but still got the same error, and this is
because './LocalSettings.php' doesn't work and you have to use
'LocalSettings.php' instead.

But it is not enough: 600 permission is too restrective and apache can't
read LocalSettings.php since it forks its child as running under user
www-data, which cannot read that file. chmoded 644 (640 doesn't work for
the same reasons as before) everything worked out fine.

Sorry for this very long report, but I hope I've filled a complete one,
even about permission.

I'm attaching 2 patches against index.php, one if you choose to put
LocalSettings.php under /usr/share/mediawiki1.5, the other if you choose
to live that file under /etc/ dir.

Regards,
Sandro

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.15-1-686-smp
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages mediawiki1.5 depends on:
ii  apache2                       2.0.54-5   next generation, scalable, extenda
ii  apache2-mpm-prefork [httpd]   2.0.54-5   traditional model for Apache2
ii  debconf [debconf-2.0]         1.4.48     Debian configuration management sy
ii  mime-support                  3.31-1     MIME files 'mime.types' & 'mailcap
ii  php4                          4:4.4.0-2  server-side, HTML-embedded scripti
ii  php4-mysql                    4:4.4.0-4  MySQL module for php4

Versions of packages mediawiki1.5 recommends:
ii  mysql-server                  4.0.24-9   mysql database server binaries

-- debconf information:
* mediawiki/webserver: apache2
  mediawiki/upgrade:
--- /tmp/index.php      2006-05-15 22:53:52.000000000 +0200
+++ /usr/share/mediawiki1.5/index.php   2006-05-15 23:36:27.000000000 +0200
@@ -59,7 +59,7 @@
        die();
 }
 
-require_once( './LocalSettings.php' );
+require_once( 'LocalSettings.php' );
 require_once( 'includes/Setup.php' );
 
 wfProfileIn( 'main-misc-setup' );
--- /tmp/index.php      2006-05-15 22:53:52.000000000 +0200
+++ /tmp/index.php.new  2006-05-15 23:25:35.000000000 +0200
@@ -16,7 +16,7 @@
 define( 'MEDIAWIKI', true );
 require_once( './includes/Defines.php' );
 
-if( !file_exists( 'LocalSettings.php' ) ) {
+if( !file_exists( '/etc/mediawiki1.5/LocalSettings.php' ) ) {
        $IP = "." ;
        require_once( 'includes/DefaultSettings.php' ); # used for printing the 
version
 ?>
@@ -59,7 +59,7 @@
        die();
 }
 
-require_once( './LocalSettings.php' );
+require_once( '/etc/mediawiki1.5/LocalSettings.php' );
 require_once( 'includes/Setup.php' );
 
 wfProfileIn( 'main-misc-setup' );

--- End Message ---
--- Begin Message ---
Hi,
sorry for this misfired bug!

This is the situation:

# ls -l /var/lib/mediawiki1.5/config/LocalSettings.php
-rw-rw-rw-  1 www-data www-data 3824 May 15 22:50
/var/lib/mediawiki1.5/config/LocalSettings.php

but if you do

# cp /var/lib/mediawiki1.5/config/LocalSettings.php
/etc/mediawiki1.5/LocalSettings.php

the destination file will be owned by root. This lead to my bug report.

Now, with this situation:

# ls -l /etc/mediawiki1.5/LocalSettings.php
-rw-------  1 www-data www-data 3824 May 15 22:50
/etc/mediawiki1.5/LocalSettings.php

everything is working fine, so I'm closing this bug.

Cheers,
Sandro

--
Sandro Tosi (aka Morpheus, matrixhasu)
My (little) site: http://matrixhasu.altervista.org/

--- End Message ---

Reply via email to