I have a very old mediawiki at a legacy company, I think version 1.9. I am trying to migrate this to a new server, including new hostname/domain. I just want to keep the legacy data in there around as its pretty useful. Read only is fine. I really don't want to print out a few hundred pages and stick them in a book ;-)
Old server(s) : web.olddomain.tld, mysql.olddomain.tld - CentOS 4.9 w/PHP 5.2.6 New Server: web.newdomain.tld - CentOS 6.3 w/PHP 5.3.3
I put a new NameVirtualHost in the new server and it works as expected. Time to move the old mediawiki over. DB dumped (mysqldump), old web files tarred and both are scp'd over to the new server. New DB is created and the old data imported. Username created and given access to DB, same as existed on the old server. The only change I make on the new server is in the LocalSettings.php file, I point at the new DB on localhost, username and the rest of the info stays the same. If I try to run this as is, without upgrading the mediawiki code, I get an error in Apache. "Parse error: syntax error, unexpected T_NAMESPACE, expecting T_STRING in /var/www/html/documentation/includes/Namespace.php on line 44" According to the FAQ this is due to upgrades in PHP and old code. I figured at this point I needed to upgrade to a newer version of mediawiki code.
I download the new mediawiki code and follow the upgrade script/process here : http://www.mediawiki.org/wiki/Manual:Upgrading#How_do_I_upgrade_from_a_reall...
New files are untarred over the old files. I run the update.php script from maintenance directory. I made one additional change, which is the file under the web root 'StartProfiler.php' contains the line 'require_once( dirname(__FILE__).'/includes/ProfilerStub.php' );' and I change that to 'require_once( dirname(__FILE__).'/includes/profiler/ProfilerStub.php' );' as the new Profiler code seems to be running from includes/profile and not just includes.
The server now serves a "Not Found" error, "The requested URL /wiki/Main_Page was not found on this server." Nothing shows up in error_log.
Not sure if what I am doing is "too many steps at once" and if there is any way to upgrade to 1.19 on the existing server (with the older version of php) and THEN move it, or if I can get the older mediawiki running with the newer version of php, and THEN upgrade it. It seems like the move+upgrade makes things go a little wonky.
Any advice?
Thank you,
Nick
PS - If this is a dupe, sorry. I subscribed and then something happened and my post was rejected as I wasn't subscribed. I resubscribed a few days ago and made sure I was getting mail from the list before sending this time :)