Mediawiki/QuickReference

From r00tedvw.com wiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
;Edit sidebar, place after domain
+
===Edit sidebar, place after domain===
 
  /index.php?title=MediaWiki:Sidebar&action=edit
 
  /index.php?title=MediaWiki:Sidebar&action=edit
 
<br\>
 
<br\>
Line 6: Line 6:
 
  $wgGroupPermissions['*']['read'] = true;
 
  $wgGroupPermissions['*']['read'] = true;
 
<br\>
 
<br\>
;backup wiki mysql db
+
===backup wiki mysql db===
 
:wiki db name, username, & password can be found in the mediawiki config, LocalSettings.php
 
:wiki db name, username, & password can be found in the mediawiki config, LocalSettings.php
 
  sudo -s
 
  sudo -s
Line 13: Line 13:
 
  mysqldump -u wikiuser -p wikidb --password > /var/www/mediawiki/backup/wikidatabasebackup10_4_12.sql
 
  mysqldump -u wikiuser -p wikidb --password > /var/www/mediawiki/backup/wikidatabasebackup10_4_12.sql
 
<br\>
 
<br\>
;backup mediawiki file system
+
===backup mediawiki file system===
 
:this tars everything in the webpage folder
 
:this tars everything in the webpage folder
 
  sudo -s
 
  sudo -s
Line 20: Line 20:
 
  tar zcvhf wikidatabackup03_11_14.tgz /var/www/mediawiki/  
 
  tar zcvhf wikidatabackup03_11_14.tgz /var/www/mediawiki/  
 
<br>
 
<br>
;backup XML data
+
===backup XML data===
 
:this backs up the content of the wiki, like pages and their revisions
 
:this backs up the content of the wiki, like pages and their revisions
 
  sudo -s
 
  sudo -s
Line 28: Line 28:
 
  /var/www/mediawiki/maintenance$ php dumpBackup.php --full > XMLbackup03_11_14.xml  
 
  /var/www/mediawiki/maintenance$ php dumpBackup.php --full > XMLbackup03_11_14.xml  
 
<br>
 
<br>
;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)
+
===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; }
 
  ca-talk { display:none!important; }
;Enable hide/delete history
+
===Enable hide/delete history===
 
:Add the following to /var/www/mediawiki/Localsettings.php
 
:Add the following to /var/www/mediawiki/Localsettings.php
 
  # Enabling Sysops (admins) to hide revisions and log items from users
 
  # Enabling Sysops (admins) to hide revisions and log items from users
 
  $wgGroupPermissions['sysop']['deletelogentry'] = true;
 
  $wgGroupPermissions['sysop']['deletelogentry'] = true;
 
  $wgGroupPermissions['sysop']['deleterevision'] = true;
 
  $wgGroupPermissions['sysop']['deleterevision'] = true;

Revision as of 19:45, 30 April 2014

Contents

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; }

Enable hide/delete history

Add the following to /var/www/mediawiki/Localsettings.php
# Enabling Sysops (admins) to hide revisions and log items from users
$wgGroupPermissions['sysop']['deletelogentry'] = true;
$wgGroupPermissions['sysop']['deleterevision'] = true;
Personal tools
Namespaces

Variants
Actions
Navigation
Mediawiki
Confluence
DevOps Tools
Ubuntu
Ubuntu 22
Mac OSX
Oracle Linux
AWS
Windows
OpenVPN
Grafana
InfluxDB2
TrueNas
OwnCloud
Pivotal
osTicket
OTRS
phpBB
WordPress
VmWare ESXI 5.1
Crypto currencies
HTML
CSS
Python
Java Script
PHP
Raspberry Pi
Canvas LMS
Kaltura Media Server
Plex Media Server
MetaSploit
Zoneminder
ShinobiCE
Photoshop CS2
Fortinet
Uploaded
Certifications
General Info
Games
Meal Plans
NC Statutes
2020 Election
Volkswagen
Covid
NCDMV
Toolbox