Difference between revisions of "Mediawiki migration"

From Finninday
Jump to: navigation, search
(Created page with "Steps to migrate mediawiki to a new machine: * install packages ** mediawiki ** mysql ** apache2 * copy configs * dump database * create database * restore database * create my…")
 
Line 11: Line 11:
 
* restore database
 
* restore database
 
* create mysql users
 
* 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:
 +
<pre>
 +
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?
 +
</pre>

Revision as of 15:51, 21 May 2011

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?