| 37 | |
| 38 | == Mediawiki == |
| 39 | |
| 40 | There is a development copy of the http://wiki.transitionnetwork.org/ site at http://wiki.dev.transitionnetwork.org/Main_Page which is running on kiwi.transitionnetwork.org it is installed in /web/wiki.dev.transitionnetwork.org/www and the apache !VirtualHost is configured in /etc/apache2/sites-available/wiki.dev.transitionnetwork.org |
| 41 | |
| 42 | To upgrade the site to the latest version of Mediawiki, download the latest version from http://www.mediawiki.org/wiki/Download and follow the instructions from http://www.mediawiki.org/wiki/Upgrade |
| 43 | |
| 44 | {{{ |
| 45 | # backup the databases |
| 46 | /usr/local/bin/mysql_backup |
| 47 | cd /web/wiki.dev.transitionnetwork.org/www |
| 48 | wget http://download.wikimedia.org/mediawiki/mediawiki-1.16.0.tar.gz |
| 49 | # check the gog dig |
| 50 | wget http://download.wikimedia.org/mediawiki/mediawiki-1.16.0.tar.gz.sig |
| 51 | gpg --verify mediawiki-1.16.0.tar.gz.sig |
| 52 | gpg: Signature made Wed 28 Jul 2010 08:17:34 BST using DSA key ID F9F8CD79 |
| 53 | gpg: Can't check signature: public key not found |
| 54 | gpg --recv-keys F9F8CD79 |
| 55 | gpg: Signature made Wed 28 Jul 2010 08:17:34 BST using DSA key ID F9F8CD79 |
| 56 | gpg: Good signature from "Tim Starling <tstarling@wikimedia.org> |
| 57 | # extract the tgz and copy it over the existing install |
| 58 | tar -zxvf mediawiki-1.16.0.tar.gz |
| 59 | rsync -av mediawiki-1.16.0/ www/ |
| 60 | # run the update script |
| 61 | cd /web/wiki.dev.transitionnetwork.org/www/maintenance |
| 62 | php php update.php |
| 63 | # i'm not sure why the update script generates this error, but it can be ignored i think |
| 64 | ALERT - script tried to increase memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file '/web/wiki.dev.transitionnetwork.org/www/maintenance/Maintenance.php', line 395) |
| 65 | ALERT - script tried to increase memory_limit to 4294967295 bytes which is above the allowed value (attacker 'REMOTE_ADDR not set', file '/web/wiki.dev.transitionnetwork.org/www/maintenance/Maintenance.php', line 655) |
| 66 | }}} |