Creating an AdminSettings.php
From Organic Design wiki
Creating an AdminSettings.php Organic Design procedure |
To be able to run maintenance scripts, a file called AdminSettings.php must be created which contains global variables for the username and password for the database that the instance of mediawiki uses.
The file in OD/Wikia is located in /var/www/mediawiki-[version]. The file AdminSettings.sample in the same directory is an example. Inside the file AdminSettings.php, populate the variables with the real mysql passwords for a user that has root privileges;
Set $domain to the domain of the wiki you're running the script on (don't prepend the domain with www or wiki).
The bash commands to change the file are provided;
Alternatively, already created AdminSettings.php files could be copied to new instances of mediawiki.