This is the fastest way to upgrade/update Mediawiki old version to the Latest Version 1.14.0

I've mediawiki installed on the server with 1.6.x version so i just want to upgrade it to the latest version.

First We need to backup mediawiki files and DB.
You need to change the server path to your server own path.
Login into the server.

Backup mediawiki web files

[code]#cd /home/mediawiki/
#tar -cf mediawiki.tar public_html
#cp mediawiki.tar /root[/code]

Backup mediawiki MySQL DB

[code]#cd /root
#mysqldump -uwiki wikidb > mediawiki.sql -p[/code]

You will see a mediawiki.sql file in /root

Download Latest mediawiki stable version

[code]#cd /root
#wget [url="http://download.wikimedia.org/mediawiki/1.14/mediawiki-1.14.0.tar.gz"]http://download.wikimedia.org/mediawiki/1....i-1.14.0.tar.gz[/url][/code]

Unpack mediawiki

[code]#tar xvfz mediawiki-1.14.0.tar.gz
#cp -R mediawiki-1.14.0/* /home/mediawiki/public_html[/code]

Run Update Script

[code]#cd /home/mediawiki/public_html/maintenance
#php update.php --aconf ../AdminSettings.php[/code]

wait... until finished.
You're done !!

Troubleshooting "No superuser credentials" error

[code]#cd /home/mediawiki/public_html
#cp AdminSettings.sample AdminSettings.php 
#pico AdminSettings.php 

#### Edit below lines to match your DB user and password ####
$wgDBadminuser      = 'wiki';
$wgDBadminpassword  = 'wikipassword';[/code]

After edit the AdminSettings.php.
You need to reapply update

[code]#cd /home/mediawiki/public_html/maintenance
#php update.php --aconf ../AdminSettings.php[/code]

wait... until finished.
You're done !!


Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

Sponsors

Chat Box

Poll

What is your favorite Virtualization Server ?:
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
2 + 8 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

Alexa Rank

Counter

  • Site Counter: 39,485
  • Unique Visitor: 8,165
  • Registered Users: 69
  • Unregistered Users: 62
  • Blocked Users: 3
  • Your IP: 95.211.132.49
  • Visitors:
  • Today: 582
    This week: 3429
    This month: 1956
    This year: 12464

Donate Me

Does this site make your life easier?
Help me keep it online.

Who's online

There are currently 0 users and 14 guests online.