Manual:AdminSettings.php

From MediaWiki.org
(Redirected from AdminSettings.php)
Jump to: navigation, search
MediaWiki File: AdminSettings.php
Location: /
Source code:

Not in Git (created by user)

Classes: None


Contents

[edit] Overview

The requirement for AdminSettings.php (along with supporting file AdminSettings.sample) was removed in MediaWiki 1.16. Prior to MediaWiki 1.16, AdminSettings.php was used to store database authentication credentials for maintenance scripts and to control the availability of profileinfo.php.

[edit] Upgrading

If upgrading from a pre-1.16 version of MediaWiki to version 1.16 or later, the variables set in AdminSettings.php file can be safely moved to LocalSettings.php. If AdminSettings.php still exists, it will be loaded by maintenance scripts to retain backward compatibility.

[edit] Prior to 1.16

Manually create AdminSettings.php in the root directory the MediaWiki installation. Typically, this is done by renaming AdminSettings.sample to AdminSettings.php and then editing AdminSettings.php appropriately.

AdminSettings.php should set three variables:

[edit] Example

<?php
/* Database authentication credentials */
$wgDBadminuser      = 'wikiadmin';
$wgDBadminpassword  = 'adminpass';
 
/* Whether to enable the profileinfo.php script. */
$wgEnableProfileInfo = false;

[edit] Security

AdminSettings.php contains sensitive information (account names and passwords) that can help an attacker compromise your database management system. Ensure that you've taken the relevant preventative measures listed in Manual:Security and Manual:Securing database passwords.

[edit] PostgreSQL-specific issues

If using PostgreSQL with your MediaWiki installation, the authentication credentials used for $wgDBadminuser and $wgDBadminpassword should be the same as the credentials used for $wgDBuser and $wgDBpassword. This is necessary to ensure that the owner for new tables is set correctly.

Language: English  • Deutsch • 日本語 • polski • русский