MediaWiki
From Proxmox VE
Contents |
Appliance Details
| Package: | mediawiki |
| Version: | 1.15-5 |
| Certified: | no |
| Section: | www |
| Location: | http://download.proxmox.com/appliances/www/debian-6.0-mediawiki_1.15-5_i386.tar.gz |
| Maintainer: | Proxmox Support Team |
| OS: | debian-6.0 |
Introduction
MediaWiki is a wiki engine (a program for creating a collaboratively edited website). It is designed to handle heavy websites containing library-like document collections, and supports user uploads of images/sounds, multilingual content, TOC autogeneration, ISBN links, etc. MediaWiki is a free software wiki package originally written for Wikipedia.
MediaWiki v1.16 has it's own page now.
Virtual Appliances can be downloaded directly via the Central Web-based Management.
For more details see: MediaWiki
Recommended settings for Proxmox VE
- Memory (MB): 512
- Swap (MB): 512
- Hard disk (GB): 8
Appliance specific settings
- Mysql root password: admin
Please change this for security reason:
- via command line after the first boot:
mysqladmin -u root -p password yournewpasswordhere
MediaWiki settings
- Main software packages: Debian Squeeze, MediaWiki 1.15, MySQL5.1, Postfix, Apache2, PHP5.3
First steps
Start the VM and open a VNC console and install the latest security updates.
apt-get update apt-get upgrade
Now connect to the MediaWiki web installer http://youripaddress and follow the instructions.
Upgrading to Mediawiki v1.16.0
Note: Manual upgrading is not recommended, use the Debian packages instead.
If you are upgrading between major releases of MediaWiki, the preferred procedure is as follows:
- 1.Unpack the new version of MediaWiki into a new directory
- 2.Prepare that new directory: copy your current LocalSettings.php from the old directory, copy any installed extensions and custom skins (if any).
- 3.Enable read-only mode in LocalSettings.php of the old directory:
$wgReadOnly = 'Upgrading to MediaWiki 1.16.0';
- 4.Run the upgrade script in the new directory.
- 5.Swap the old directory and the new directory.
Password Resetting
You can use the maintenance/changePassword.php maintenance script to reset a user's password.
You have to run the script from the command line. In other words, log into the server where your wiki is installed, then open a command prompt. Go to the installation directory, then go to the maintenance subdirectory. Run the following command:
php changePassword.php --user=someuser --password=somepass
Where obviously "somepass" is changed to the password you want to set and "someuser" is changed to the user name as it is listed in the table "user".
Additional Info is at MediaWiki Password Reset Page.
Enable ZIP, DOC, etc upload
In /etc/mediawiki/LocalSettings.php set the variable
$wgEnableUploads = true;
In the same file, append the following:
$wgFileExtensions[] = 'zip'; $wgFileExtensions[] = 'doc'; $wgFileExtensions[] = 'xls'; $wgFileExtensions[] = 'ppt'; $wgFileExtensions[] = 'pdf';
In /var/lib/mediawiki/includes/DefaultSettings.php (gets overwritten on each update) remove (or comment out) the element 'application/zip' from the $wgMimeTypeBlacklist array.
Now we can upload these extensions as well as the default graphic format extensions!
