Upgrading Wamp and MediaWiki

From MetaSharp

Jump to: navigation, search

Article Author(s): Audric Thevenet
All Rights Reserved.


Upgrading MediaWiki

Most of the time it's a pretty easy task.

  • Extract the new version over the old one.
  • Open a command-line tool (start->execute->cmd.exe) and go to wamp\www\wiki\maintenance\ folder then execute this:
php.exe update.php

You might need to add this folder to your path: ...\wamp\php

  • Update your extensions.
  • Think about replacing the wamp\www\wiki\includes\maths.php file if you set up LaTeX.
  • If you modded your footer, think about doing it again here: wamp\www\wiki\skins\MonoBook.php.

Upgrading Wamp

Removing the old version

  • Open a command-line tool (start->execute->cmd.exe) and go to wamp\mysql\bin\ folder then execute this:
mysqldump.exe -u root -p --all-databases >backup.sql

It will ask for password (just press return if root has no password on localhost).

  • Save somewhere the following elements:
    • file wamp\mysql\bin\backup.sql (your databases)
    • file wamp\phpmyadmin\config.inc.php (phpmyadmin configuration file)
    • folder wamp\phpmyadmin\upload\ (SQL scripts upload folder specified in the conf file)
    • folder wamp\www\ (all your web sites)
  • Uninstall the obsolete WAMP version.
  • Delete the remaining wamp\ folder.

Setting up the new version

  • Install the new version of WAMP wherever you want.
  • Delete the wamp\www\ folder content.
  • Restore these elements from where you previously saved them:
    • file backup.sql in wamp\mysql\bin\
    • file config.inc.php in wamp\phpmyadmin\
    • folder upload\ content in wamp\phpmyadmin\upload\
    • folder www\ content in wamp\www\
  • Open a command-line tool (start->execute->cmd.exe) and go to wamp\mysql\bin\ folder then execute this:
mysql.exe -u root -p

It will ask for password (just press return if root has no password on localhost). Then type this command:

source backup.sql
  • Open wamp\Apache2\conf\httpd.conf file and replace:
<Directory "D:/wamp/www">
...
  Deny from all
  Allow from 127.0.0.1
</Directory>

with:

<Directory "D:/wamp/www">
...
  Allow from all
</Directory>
  • Open wamp\php\php.ini and wamp\Apache2\bin\php.ini files and replace:
memory_limit = 8M      ; Maximum amount of memory a script may consume (8MB)

with:

memory_limit = 32M      ; Maximum amount of memory a script may consume (8MB)
  • Restart MySql and Apache services.
  • Verify everything is working correctly
  • If it's ok, delete the file wamp\mysql\bin\backup.sql.
Personal tools