Topic on Project:Support desk

[RESOLVED] How to Upgrade MediaWiki 1.12 to 1.24

23
69.174.58.20 (talkcontribs)

Currently, we are using MediaWiki 1.12 and wanted to upgrade it to the latest stable version i.e. MediaWiki 1.24. The associated PHP version is 5.1.6-39 and MYSQL version is 5.0.77-4. Please provide me the steps which needs to follow. The development environment is WINDOWs and our PROD is linux based. Kindly help me on this regards.

Florianschmidtwelzow (talkcontribs)

First, you should upgrade your webserver system. PHP 5.1.6 is really old and the support for it was stopped in MediaWiki 1.16 (which is stopped, too, and may contain security holes like your actual version), see Compatibility. The support for this php version was already stopped by php, too, see (eol 8 years ago now: http://php.net/eol.php). After this, you can follow Manual:Upgrade to upgrade your installation, but read the complete document first before you start your work, there are important notices about how to upgrade from an old version of MediaWiki. And the most important thing: Backups, backups, backups :)

69.174.58.20 (talkcontribs)

Hi,

Can we do fresh installation of MediaWiki 1.24 on server and then move the existing contents from MediaWiki 1.12 to 1.24 by dumping the data from existing MYSQL to newer version.

Florianschmidtwelzow (talkcontribs)

What do you mean with dumping? Maybe i would be possible, but it would take more time and work to do it and i wouldn't do that :)

69.174.58.20 (talkcontribs)

Hi,

So if I understand your suggestion correctly, you are saying that 1- upgrade the existing PHP to the compatible version of PHP (used in MediaWiki 1.24). 2 - Then follow the manual upgrade to upgrade the existing MediaWiki version to never version.

question -by manual upgrade, would it upgrade the MYSQL too ? or we need to upgrade it 1st before upgrading the MediaWiki.

69.174.58.20 (talkcontribs)

Hi Florian,

Please reply on my above understanding.

88.130.105.213 (talkcontribs)

MediaWiki, also newest versions, are compatible with MySQL 5.0. You can upgrade MySQL, but you do not need to upgrade MySQL in order to be able to use MediaWiki 1.24. MediaWiki 1.24 will also work with MySQL 5.0.

The MySQL upgrade would be an additional step - upgrading MediaWiki or PHP will not change the MySQL version.

Yes, first upgrading PHP and then MediaWiki is the correct order. Note that in the time between, after the PHP upgrade and before the MediaWiki upgrade, MediaWiki will most likely not be working correctly. In that time, I would just not use it.

69.174.58.20 (talkcontribs)

Hi,

In my environment, Mediawiki and postNuke folders are side by side under XAMPP. 1. Is it possible to upgrade MediaWiki PHP only without touching PostNuke. 2. How to upgrade PHP, I tried goggling but did not get any clue toward this direction. Any help would be highly appreciated.

88.130.65.99 (talkcontribs)

Hi!

Looks like you partly did the last updates back in 2006 - this will be a long upgrade path for you. Let's start:

PHP, MediaWiki and PostNuke are three separate programmes. Each of them can be upgraded separately.

However, PHP is the base on which MediaWiki and PostNuke are working. Meaning: The PHP version, which you use, must be fitting for them. According to de:PostNuke, PostNuke has last been updated back in 2006. MediaWiki 1.24 needs PHP 5.3 at least. PHP 5.3 was first released after 2006. So I guess that even when you upgrade PHP to version 5.3 only, PostNuke will most likely break. So better do not start with the PHP upgrade.

The successor of PostNuke is en:Zikula, which got its last update last year. There are PostNuke .764 -> Zikula 1.1.2 Migration Instructions, which bring you from PostNuke 0.764 to Zikula 1.1.2. A direct migration to a newer version of Zikula most likely is impossible. As far as I found out quickly, Zikula 1.1.2 should work fine with PHP 5.2 and I guess also with 5.1. So first, you should upgrade PostNuke to version 0.764 and then to Zikula.

After you did that update to Zikula, you can upgrade PHP. This can be done by using a new version of XAMPP, e.g. XAMPP 5.6.3. This includes a current version of PHP - I guess it is PHP 5.6.

After that you can upgrade MediaWiki to 1.24 and Zikula to its latest version.

69.174.58.20 (talkcontribs)

It seems very long path for me if I proceed up gradation this way. 1. Is it possible if I mirror the existing production environment without POSTNUKE (XAMPP + Mediawiki 1.12) and then upgrade the compatible PHP version needed for MediaWiki 1.24 then upgrade the current media wiki with wiki 1.24. 2. Any document which shows the proper step of PHP upgradation.

88.130.69.230 (talkcontribs)

For your number 1: When you take Postnuke out of the equation, that will make things much easier. In that case I would not only upgrade PHP (which might be slightly more difficult as you would have to compile PHP into your old XAMPP stack). Instead, you can directly start upgrading XAMPP. XAMPP comes with the Apache webserver, with MySQL and with PHP. So if you upgrade XAMPP, these three will automatically be upgraded. That way you can also be sure that all three (Apache, PHP and MySQL) work together properly. When you do that XAMPP upgrade, take care that

  • you do not overwrite or delete the files of your MediaWiki installation (which most likely are in htdocs/) and
  • that you do not overwrite/delete files in the folder mysql/data/ (there are your databases, among them your MediaWiki database).

After the XAMPP upgrade you can then upgrade MediaWiki.

Naimish88 (talkcontribs)

How can I prevent overwriting/deleting the files under htdocs or mysql/data? Would it be in my control during up-gradation. Do you mean that by taking backup of all those files under mentioned folders.

88.130.69.230 (talkcontribs)

Yes, you can control that: When I upgrade XAMPP, I usually take the 7z archive (http://sourceforge.net/projects/xampp/files/XAMPP%20Windows/5.6.3/xampp-win32-5.6.3-0-VC11.7z/download, I guess the zip file contains the same stuff, but the 7z file is way more compressed giving a faster download) and extract that one. So when I move the new files to the location of my original xampp/ folder, I take care that I do not move files from e.g. htdocs/ of the archive into my original xampp/htdocs folder.

Naimish88 (talkcontribs)

Hi,

I took XAMPP 5.6.3 7z archive (http://sourceforge.net/projects/xampp/files/XAMPP%20Windows/5.6.3/xampp-win32-5.6.3-0-VC11.7z/download), unzipped it into local folder. Then I replaced the existing files of XAMPP 1.5.5 with the XAMPP 5.6.3 (except htdocs and mysql/data/). Restarted the apache server again, everything is working fine till now. But on PHPMyAdmin site (http://127.0.0.1/phpmyadmin/), It still shows the old version, please see the below info i.e.

phpMyAdmin - 2.9.1.1 MySQL client version: 5.0.27

Am I missing something or PHPMyAdmin/SQL versions are still same in XAMPP 5.6.3?

How to find the PHP/MYSQL versions in XAMPP ?, please advice me.

88.130.126.70 (talkcontribs)

The current XAMPP version contains phpmyadmin 4.3.x and MySQL 5.6.x. When you visit phpmyadmin with your webbrowser you will also see the Apache version (which is 2.4.x in current XAMPP versions). I guess you see an old version there as well?

Please make sure that you have overwritten the files in the right folders. E.g. for phpmyadmin: In the phpmyadmin/ folder. Same for mysql (except that you should leave out the subfolder mysql/data).

If I remember correctly, after installation/upgrade, you once have to run the file setup_xampp.bat in order to have the correct paths set inside the configuration files.

Naimish88 (talkcontribs)

Hi Due to major version change between XAMPP 1.5.5 and XAMPP 5.6.3, I guess upgrading the XAMPP would be problematic as XAMPP 1.5.5 contains MySQL 5.0.27, XAMPP 5.6.3 contains MySQL 5.6.24.

Is it possible if I create fresh installation of XAMPP (latest version) and install MediaWiki 1.24 and then export MediaWiki 1.12 databases and import them again in the new XAMPP environment. Anybody has any idea if I do this way or if there is any better solution.

88.130.86.109 (talkcontribs)

> Is it possible if I create fresh installation of XAMPP (latest version) and install MediaWiki 1.24 and then export MediaWiki 1.12 databases and import them again in the new XAMPP environment.

Yes, that is possible. For the details see Manual:Moving a wiki!

Naimish88 (talkcontribs)

Hi Don't think we can restore the backup between 2 different wiki versions as per written in Notes section of Manual:Moving a wiki! Below is the Notes section. If following the latter process, ensure that your "fresh install" consists of the same version of MediaWiki as the old one didItalic text my current wiki version is 1.12 and wanted to upgrade it to 1.24

I am still not able to find any correct way to get it done, or i am doing something wrong.

Naimish88 (talkcontribs)

The complete upgrade has been done on Dev server from MediaWiki 1.12 to MediaWiki 1.24.2 without any major issues except few minor ones, still testing is going on . Once everything is good, then we will start upgrading the Prod server.

Very very thank you to all of you guys who helped me a lot.

Rajeshrjsh (talkcontribs)

Hi,

It is bit difficult from Mw 1.12 to Mw 1.23, recently we upgraded from Mw1.12 to Mw1.21 , faced lot of issues with skins,tables,and customized extensions,

1.Do you customized any predefined mediawiki tables?. 2.you developed your own skin? 3.list of extension also post here.

then i will assist you in this upgrade.

Naimish88 (talkcontribs)

Hi Rajesh,

We did not customize any said features, so I hope it would be a smooth upgrade. Will let you know once I start upgrading it on my dev machine, but before that I wanted to upgrade the existing XAMPP. Very-very thank you for proving me assistance.

Naimish88 (talkcontribs)

Hi Rajesh,

Could you tell what version of XAMPP you have? and how you upgraded from Mw1.12 to Mw1.21? From customization point - We have no customization from our end infact people do not use the wiki but no they are going to start using the wiki, so prior to that I wanted to upgrade to latest version.

Reply to "[RESOLVED] How to Upgrade MediaWiki 1.12 to 1.24"