Manual:Configuration settings

This is an index of all supported configuration options based on DefaultSettings.php.

$wgVersion
Contains the current version of MediaWiki, as displayed to the user.
 * Default Value - '1.4.0'

$wgSitename
The name of the site. Should be changes
 * Default Value - 'MediaWiki'

$wgMetaNamespace
The meta-namespace if different from $wgSitename
 * Default Value - FALSE

$wgServer
The base URL of the server, including protocol. (eg, "http://en.wikipedia.org")
 * Default Value - (dynamically created)

$wgServerName
The name of the server without the protocol. (eg, "en.wikipedia.org")
 * Default Value - (dynamically created)

$wgScriptPath
The base URL path.
 * Default Value - '/wiki'

$wgUsePathInfo
Whether to use 'pretty' URLs.
 * Default Value - (dynamically created)

$wgScript
the URL of index.php.
 * Default Value - "{$wgScriptPath}/index.php"

$wgRedirectScript

 * Default Value - "{$wgScriptPath}/redirect.php"

$wgStylePath
The URL of the skins directory.
 * Default Value - "{$wgScriptPath}/skins"

$wgStyleDirectory
The file system path to the skins directory
 * Default Value - "{$IP}/skins"

$wgStyleSheetPath
The URL of the directory containing the stylesheets. (Or the skins directory.)
 * Default Value - &$wgStylePath

$wgStyleSheetDirectory
The file system path of the directory containing the stylesheets. (Or the skins directory.)
 * Default Value - &$wgStyleDirectory

$wgArticlePath
The URL template used to create article links.
 * Default Value - "{$wgScript}?title=$1"

$wgUploadPath
The URL base of the upload directory.
 * Default Value - "{$wgScriptPath}/upload"

$wgUploadDirectory
The file system path of the upload directory.
 * Default Value - "{$IP}/upload"

$wgHashedUploadDirectory
If true, use the /a/ab/foo.png directory structure.
 * Default Value - true

$wgLogo
The URL of the site logo.
 * Default Value - "{$wgUploadPath}/wiki.png"

$wgMathPath
The URL base of the directory containing LaTeX math images.
 * Default Value - "{$wgUploadPath}/math"

$wgMathDirectory
The file system path of the directory containing LaTeX math images.
 * Default Value - "{$wgUploadDirectory}/math"

$wgTmpDirectory
The URL of the temporary directory.
 * Default Value - "{$wgUploadDirectory}/tmp"

$wgUploadBaseUrl

 * Default Value - ""

$wgUseSharedUploads
If $wgUseSharedUploads is set, the wiki will look in the shared repository if no file of the given name is found in the local repository (for, [[Media:..]] links). Thumbnails will also be looked for and generated in this directory.
 * Default Value - false

$wgSharedUploadPath
Full path on the web server where shared uploads can be found.
 * Default Value - " http://commons.wikimedia.org/shared/images "

$wgSharedUploadDirectory
Path on the file system where shared uploads can be found.
 * Default Value - "/var/www/wiki3/images"

$wgHashedSharedUploadDirectory
Set this to false especially if you have a set of files that need to be accessible by all wikis, and you do not want to use the hash (path/a/aa/) directory layout.

See also $wgHashedUploadDirectory.


 * Default Value - true

$wgSharedLatin1
set true if the repository uses latin1 filenames.
 * Default Value - false

$wgEmergencyContact
Site admin email address
 * Default Value - 'wikiadmin@' . $wgServerName

$wgPasswordSender
Password reminder email address The address we should use as sender when a user is requesting his password.
 * Default Value - 'Wikipedia Mail '

$wgEnableEmail
Set to true to enable the e-mail basic features: Password reminders, etc. If sending e-mail on your server doesn't work, you might want to disable this.
 * Default Value - true

$wgEnableUserEmail
Set to true to enable user-to-user e-mail. This can potentially be abused, as it's hard to track.
 * Default Value - false;

$wgSMTP
For using a direct (authenticated) SMTP server connection. Default to false or fill an array : $wgSMTP = array( "host" => 'SMTP domain',  "IDHost" => 'domain for MessageID',  "port" => "25",  "auth" => true/false,  "username" => user,  "password" => password );


 * Default Value - false;

$wgDBserver
Database host name or ip address.
 * Default Value - 'localhost'

$wgDBname
Name of the database.
 * Default Value - 'wikidb'

$wgDBconnection

 * Default Value - ''

$wgDBuser
Database username.
 * Default Value - 'wikiuser'

$wgDBtype
Use "mysql" for working code and "PostgreSQL" for development/broken code.
 * Default Value - "mysql"

$wgSearchType
Use "MyISAM" for MySQL native full text search, "Tsearch2" for PostgreSQL based search engine.
 * Default Value - "MyISAM"

$wgDBprefix
Table name prefix.
 * Default Value - ''

$wgDBschema
On some databases this allows separate logical namespace for application data.
 * Default Value - 'mediawiki'