Mediawiki/QuickReference
From r00tedvw.com wiki
- Edit sidebar, place after domain
/index.php?title=MediaWiki:Sidebar&action=edit
- Allow anonymous users to view all pages
- change the following in LocalSettings.php
$wgGroupPermissions['*']['read'] = true;
- backup wiki mysql db
- wiki db name, username, & password can be found in the mediawiki config, LocalSettings.php
sudo -s mysqldump -u <user> -p <db name> --password > wikidatabasebackup.sql i.e. mysqldump -u wikiuser -p wikidb --password > /var/www/mediawiki/backup/wikidatabasebackup10_4_12.sql
- backup mediawiki file system
- this tars everything in the webpage folder
sudo -s tar zcvhf <tar file> /<wiki local location> i.e. tar zcvhf wikidatabackup03_11_14.tgz /var/www/mediawiki/
- backup XML data
- this backs up the content of the wiki, like pages and their revisions
sudo -s <location of maintenance folder>$ php dumpBackup.php --full > <backupfile.xml> i.e. sudo -s /var/www/mediawiki/maintenance$ php dumpBackup.php --full > XMLbackup03_11_14.xml
- Remove the discussion tab from all pages. Add the following to the MediaWiki
- Common.css page (which is accessible by typing that into the search box on the wiki - i.e. type MediaWiki:Common.css into the search field)
ca-talk { display:none!important; }