[Mediawiki-l] fixing the localsettings.php file

Graham Chiu compkarori at gmail.com
Sat Jan 22 19:27:49 UTC 2005


Since I can't get the config/index.php file to complete, can someone
tell me what is wrong with this one I've altered?

$IP = "/homepages/38/d94368847/htdocs/";
ini_set( "include_path", ".:$IP:$IP/includes:$IP/languages" );
require_once( "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" );
	}
} else {
	## Compress output if the browser supports it
	if( !ini_get( 'zlib.output_compression' ) ) @ob_start( 'ob_gzhandler' );
}

$wgSitename         = "WikiMetamed";

$wgScriptPath	    = "";
$wgScript           = "$wgScriptPath/index.php";
$wgRedirectScript   = "$wgScriptPath/redirect.php";

## If using PHP as a CGI module, use the ugly URLs
# $wgArticlePath      = "$wgScript/$1";
$wgArticlePath      = "$wgScript?title=$1";

$wgStylePath        = "$wgScriptPath/stylesheets";
$wgStyleDirectory   = "$IP/stylesheets";
$wgLogo             = "$wgStylePath/images/wiki.png";

$wgUploadPath       = "$wgScriptPath/images";
$wgUploadDirectory  = "$IP/images";

When I run the site, it has the wrong paths when I look at the page source

http://www.wikimetamed.org



More information about the MediaWiki-l mailing list