The following are the details of the software versions installed on both the boxes.
MediaWiki 1.15.2
PHP 5.1.6 (apache2handler)
MySQL 5.0.77
Lets start the detailed step of the upgrade as follows,
On Old Server:-
- Shutdown apache server for stoping further updates to the wiki (#service httpd stop)
- Backed up all the content of the web folder of apache (mediawiki files) (#tar -zcvf wiki.tar.gz /var/www/html/wiki)
- Copy the tar file to the new server
- Dump the MySQL database (#mysqldump -u (username) -p (password) wikidb >backup-wikidb.sql )
- Copy the dump file to the new server
- Restore the database from the backup-wikidb.sql file (sql>mysql -u (username) -p (password) wikidb )
- Untar the copied wiki.tar.gz file and copy it in to the documentroot of apache (#tar -zxvf wiki.tar.gz; cp -R wiki /var/www/html)
- Edit the Localsettings.php and Adminsettings.php files to match the wikidb and wiki user credentials
- Restart apache server (#service httpd restart)
- If everything went well go and browse the wiki with existing user credentials.
No comments:
Post a Comment