On Thursday 23 December 2004 10:59 pm, Brion Vibber wrote:
In that case you probably should not be setting
$wgDBservers (plural)
at all. You would get the reported error if for instance you have this
in LocalSettings.php:
$wgDBservers = array( 'localhost' );
That's not the case here.
Would you mind reproducing your LocalSettings.php here
so we can take
a look at what you're doing? (minus passwords and such sensitive
material, naturally)
Certainly!
Make sure also that you don't have a mix of files
from two versions.
Check the include paths, etc.
I don't carry over anything but images.
<?php
# This file was automatically generated by the MediaWiki installer.
# If you make manual changes, please keep track in case you need to
# recreate them later.
$IP = "/var/www/wiki";
ini_set( "include_path", ".:$IP:$IP/includes:$IP/languages" );
require_once( "includes/DefaultSettings.php" );
# If PHP's memory limit is very low, some operations may fail.
# ini_set( 'memory_limit', '20M' );
if ( $wgCommandLineMode ) {
if ( isset( $_SERVER ) && array_key_exists( 'REQUEST_METHOD',
$_SERVER ) ) {
die( "This script must be run from the command line\n" );
}
} elseif ( empty( $wgConfiguring ) ) {
## Compress output if the browser supports it
if( !ini_get( 'zlib.output_compression' ) )
@ob_start( 'ob_gzhandler' );
}
$wgSitename = "Ursine";
$wgScriptPath = "/wiki";
$wgScript = "$wgScriptPath/index.php";
$wgRedirectScript = "$wgScriptPath/redirect.php";
## If using PHP as a CGI module, use the ugly URLs
$wgArticlePath = "/$1";
# $wgArticlePath = "$wgScript?title=$1";
$wgStylePath = "$wgScriptPath/skins";
$wgStyleDirectory = "$IP/skins";
$wgLogo = "$wgStylePath/common/images/wiki.png";
$wgUploadPath = "$wgScriptPath/images";
$wgUploadDirectory = "$IP/images";
$wgEmergencyContact = "webmaster(a)ursine.dyndns.org".org";
$wgPasswordSender = "webmaster(a)ursine.dyndns.org".org";
$wgDBserver = "localhost";
$wgDBname = "wikidb";
$wgDBuser = "user";
$wgDBpassword = "password";
$wgDBprefix = "";
## To allow SQL queries through the wiki's Special:Askaql page,
## uncomment the next lines. THIS IS VERY INSECURE. If you want
## to allow semipublic read-only SQL access for your sysops,
## you should define a MySQL user with limited privileges.
## See MySQL docs:
http://www.mysql.com/doc/en/GRANT.html
#
# $wgAllowSysopQueries = true;
# $wgDBsqluser = "sqluser";
# $wgDBsqlpassword = "sqlpass";
# If you're on MySQL 3.x, this next line must be FALSE:
$wgDBmysql4 = $wgEnablePersistentLC = true;
## Shared memory settings
$wgUseMemCached = false;
$wgMemCachedServers = array();
$wgUseTurckShm = function_exists( 'mmcache_get' ) && php_sapi_name() ==
'apache';
## To enable image uploads, make sure the 'images' directory
## is writable, then uncomment this:
$wgDisableUploads = false;
$wgUseImageResize = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";
## If you have the appropriate support software installed
## you can enable inline LaTeX equations:
$wgUseTeX = true;
$wgMathPath = "{$wgUploadPath}/math";
$wgMathDirectory = "{$wgUploadDirectory}/math";
$wgTmpDirectory = "{$wgUploadDirectory}/tmp";
$wgLocalInterwiki = $wgSitename;
$wgLanguageCode = "en";
$wgUseLatin1 = false;
$wgProxyKey = "key";
## Default skin: you can change the default skin. Use the internal
symbolic
## names, ie 'standard', 'nostalgia', 'cologneblue',
'monobook':
# $wgDefaultSkin = 'monobook';
## For attaching licensing metadata to pages, and displaying an
## appropriate copyright notice / icon. GNU Free Documentation
## License and Creative Commons licenses are supported so far.
$wgEnableCreativeCommonsRdf = true;
$wgRightsPage = ""; # Set to the title of a wiki page that describes
your license/copyright
$wgRightsUrl = "http://www.gnu.org/copyleft/fdl.html";
$wgRightsText = "GNU Free Documentation License 1.2";
$wgRightsIcon = "${wgStylePath}/common/images/gnu-fdl.png";
# $wgRightsCode = "gfdl"; # Not yet used
?>
--
Paul Johnson
baloo(a)ursine.dyndns.org
http://ursine.dyndns.org/~baloo/