Forum archive
How to install the latest version of MediaWiki?
Hello everyone,
I'm a new user to Turnkey Linux and I'm interested in starting 2 MediaWiki servers that are running the latest version of the MediaWiki software.
So far I have started a micro server using the free usage tier and selected the mediawiki applicance to be installed. This worked like a charm, no problems there. However, I realised the version installed (1.15) is incompatible with the extensions I need (such as Semantic Wiki, which requires at least 1.17).
I did a search on how to upgrade and came across this thread: /forum/support/20110920/how-upgrade-mediawiki... (note that I'd like to upgrade to 1.21.2)
With no data no backup, I decided to proceed with removing the mediawiki 1.15 appliance using:
apt-get purge mediawiki
I now need to install from the upstream and this is where I'm unsure on what next step to take. The main thing I'm concerned about is installing it in the most efficient way possible. I have zero experience with managing servers from a command line--and my command line knowledge is very limited in the first place.
There's a few questions I have in this regard which I was hoping someone could help me out with. I just need a few pointers in the right direction:
- Does installing the latest MediaWiki version from scratch on a TLK server imply I have to follow every single step listed here: http://www.mediawiki.org/wiki/Installing (?) For example I don't know whether I'd have to mess around with MySQL. I think those are still present on the server as I only removed the mediawiki appliance.
- Is there a way of installing the entire thing over the command line or do I have to upload the .tar.gz to the server and *then* perform the necessary operations?
- In relation to #2, have there been any changes over the last two years (since the time of writing for the post I linked), where someone can install the default mediawiki appliance and then upgrade through the command line?
I'd like to first set-up 1 MediaWiki server, take a snapshot of that, and then use it for the second one. I understand that going "upstream" means more maintenance time and potential security risks if I fail to update. These aren't issues.
Thank you for reading!
Optimae
But the other thing I would consider if I were you would be to start with the LAMP appliance rather than the Mediawiki one. The logic behind that suggestion is that if you use the LAMP appliance then iwhen you do a backup with TKLBAM all the Mediawiki files will also be included. This will make your backup larger, but will also mean that if you restore your backup (to a new TKL LAMP server) then it will work OOTB. Whereas if you restore to a Mediawiki appliance it will require tweaking and mucking around to get it all working again.
So assuming that you follow my suggestion (and start with a LAMP appliance) then the answers to your questions are:
Bottom line is though that this probably won't make a huge difference, it's just better practice IMO
If you go this way then you should then be able to run a TKLBAM backup (or a snapshot) and start a fresh and all should be good to go! :)
If you have any issues post back and I'll try to help.