Mediawiki migration

From Finninday
Revision as of 15:53, 21 May 2011 by Rday (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Steps to migrate mediawiki to a new machine:

  • install packages
    • mediawiki
    • mysql
    • apache2
  • copy configs
  • dump database
  • create database
  • restore database
  • create mysql users

After these steps, I was getting a blank page when trying to view the wiki. Looking at the headers, I saw a 500 error.

I verified that I could log into mysql as the wikiuser and see the tables and it worked fine.

However, php was unable to see the database as I found like this:

root@ferret:/var/lib/mediawiki/maintenance# php ./update.php 
MediaWiki 1.15.5-3 Updater

DB connection error: MySQL functions missing, have you compiled PHP with the --with-mysql option?

I think this is the package that I'm missing:

php5-mysql