Difference between revisions of "Creating an AdminSettings.php"
From Organic Design wiki
(Another way) |
|||
Line 18: | Line 18: | ||
The bash commands to change the file are provided; | The bash commands to change the file are provided; | ||
cd /var/www/mediawiki-[version] | cd /var/www/mediawiki-[version] | ||
− | [[Cp_(Unix)|cp]] AdminSettings.sample AdminSettings.php | + | [[W:Cp_(Unix)|cp]] AdminSettings.sample AdminSettings.php |
[[W:Nano_(text_editor)|nano]] AdminSettings.php | [[W:Nano_(text_editor)|nano]] AdminSettings.php | ||
[[w:chmod|chmod]] 700 AdminSettings.php # Changing the permissions of the file | [[w:chmod|chmod]] 700 AdminSettings.php # Changing the permissions of the file | ||
+ | |||
+ | Alternatively, already created [[MW:Manual:AdminSettings.php|AdminSettings.php]] files could be copied to new instances of mediawiki. | ||
==See also== | ==See also== | ||
*[[MW:Manual:Maintenance_scripts]] | *[[MW:Manual:Maintenance_scripts]] |
Revision as of 04:35, 17 July 2008
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;
The bash commands to change the file are provided;
cd /var/www/mediawiki-[version] cp AdminSettings.sample AdminSettings.php nano AdminSettings.php chmod 700 AdminSettings.php # Changing the permissions of the file
Alternatively, already created AdminSettings.php files could be copied to new instances of mediawiki.