Difference between revisions of "Mediawiki migration"
From Finninday
(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…") |
|||
(One intermediate revision by the same user not shown) | |||
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> | ||
+ | |||
+ | I think this is the package that I'm missing: | ||
+ | php5-mysql |
Latest revision as of 15:53, 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?
I think this is the package that I'm missing:
php5-mysql