Showing posts with label Wiki. Show all posts
Showing posts with label Wiki. Show all posts

Friday, March 23, 2007

Upgrading MediaWiki 1.8.4 to 1.9

I've just upgrade my MediaWiki from 1.8.4 to 1.9.3. Here is step-by-step instruction how I upgrade the Wiki.

  1. Make a full backup of the database.
    From shell,
    mysqldump -u wikidbuser -p --opt
    --databases wikdb > wikidb-backup.sql
    If you don't have insufficient privilege to MySQL database, you might get following errors:
    mysqldump: Got error: 1044: Access denied for
    user 'wikidbuser'@'localhost' to database 'wikidb'
    when using LOCK TABLES
    You may have to use MySQL root account to backup or without --opt option. Since the MediaWiki installation, I've actually used MySQL so I've done full backup.
    mysqldump -u root -p --add-drop-table
    --all-databases > backup.sql
    Of course, you can also use phpMyAdmin to all the work.
  2. Make a backup the MediaWiki directory.
    Make sure at least you backup AdminSettings.php file, LocalSettings.php file, images folder, and extensions directory. I've just done full backup.
    cp -a /var/www/mediawiki
    ~/Backup/mediawiki.backup
  3. Upgrading WikiMedia
    Getting the newest WikiMedia source
    wget http://mirror/mediawiki-1.9.3.tar.gz
    tar xvfz mediawiki-1.9.3.tar.gz
    Updating files
    /bin/cp -R mediawiki-1.9.3.tar.gz /var/www/mediawiki
  4. Run maintenance script.
    cd /var/www/mediawiki/maintenance
    php update.php
    I've just renamed LocalSettings.php and re-run the web installation. And move back LocalSettings.php file. Check Special:Version for MediaWiki version.
  5. Copy back extensions and images folder if necessary.

I've had problem with file permission on MediaWiki files which were own by apache:apache and I was installing from user account. If you have root account, it shouldn't be a problem.

Monday, January 01, 2007

Installing MediaWiki on WAMP

Since I was forced to use Windows and I'm having terrible time install anything on Cygwin (usually due to lock of program installed that requires anther program), I've decided to try out WAMP. I've managed to run phpinfo() less than 10 minutes. Another 10 minutes to figure out setting all the passwords and try out all the features that WAMP provided.

Installing MediaWiki was effortless. Only got one error message but it was due to Windows permission issue. It prompt me what to do.

Only problem was that It didn't not support any math formula. I've already uninstalled MiKTeX, Ghostview, and Ghostscript long time ago to save disk space. And I don't want to install them again. I need a Linux box!