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' );