Mediawiki/QuickReference

From r00tedvw.com wiki
(Difference between revisions)
Jump to: navigation, search
Line 69: Line 69:
 
  );
 
  );
  
===Password Reset 24 hour limit==
+
===Password Reset 24 hour limit===
 
http://www.mediawiki.org/wiki/Manual:$wgPasswordReminderResendTime<br>
 
http://www.mediawiki.org/wiki/Manual:$wgPasswordReminderResendTime<br>
 
By default in v1.9+ you can only reset your password once every 24 hours.  Use the following to change that:
 
By default in v1.9+ you can only reset your password once every 24 hours.  Use the following to change that:

Revision as of 17:57, 1 May 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;

change upload limit

goto /etc/apache2/sites-available/mediawiki
add the following anywhere inside <Virtual Host>

php_value upload_max_filesize 20M
php_value post_max_size 20M

add new file extension to be allowed for upload

goto /var/www/mediawiki/Localsettings.php
find $wgFileExtensions, add new extension to array surrounded by quotes ('txt')
restart apache2

enable email v1.20+

http://www.mediawiki.org/wiki/Manual:$wgSMTP
starting with v1.20 you can easily enable email by installing pear on your linux/apache config. Start by installing the required package:

~$ sudo yum install php-pear

Once installed, you then have to use pear to install a couple of dependencies, like so:

~$ sudo pear install mail
~$ sudo pear install Net_SMTP

Now let's edit LocalSettings.php. Some of these may already have values, but make sure that they have what is listed below.

$wgEnableEmail = true;
$wgEmailAuthentication = true;
$wgEmergencyContact = '[email protected]';
$wgPasswordSender = 'email address displayed as sender in password resets';

#Email Settings
$wgSMTP = array (
       'IDHost' => 'can be your server fqdn or site name', //this is used to build the Message-ID mail header
       'host'   => 'smtp server host name', //this is the outgoing mail server name (SMTP server)
       'localhost' => 'wiki server fqdn', //if you want the wiki to identify itself with a resolvable hostname instead of localhost
       'port'   => 25, //this is the port used by the SMTP server
       'auth'   => true,  //if authentication is required to relay through the SMTP
       'username' => 'username', //username for smtp server
       'password' => 'password' //password for smtp server
);

Password Reset 24 hour limit

http://www.mediawiki.org/wiki/Manual:$wgPasswordReminderResendTime
By default in v1.9+ you can only reset your password once every 24 hours. Use the following to change that:

#Email Password 24 hour resend limit.
#To override the email password limit of once every 24 hours, the following is added. value is in hours:
$wgPasswordReminderResendTime = 0;
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