269
edits
(→Sandbox: Minor fix to page) |
(→Upgrading MediaWiki: Addings notes on upgrade MediaWiki after upgrading to 1.4.12) |
||
Line 84: | Line 84: | ||
################################################## | ################################################## | ||
==Upgrading MediaWiki== | ==Upgrading MediaWiki (1.4.X) == | ||
One of the reasons for using MediaWiki is that it'll be easier for upgrading. MediaWiki is trival for upgrading as all the data is stored in an SQL database and the settings are stored in a file called 'LocalSettings.php'. | One of the reasons for using MediaWiki is that it'll be easier for upgrading. MediaWiki is trival for upgrading as all the data is stored in an SQL database and the settings are stored in a file called 'LocalSettings.php'. | ||
First, make a backup! | |||
Then extract the contents of the mediawiki-1.4.X.tar.gz release your upgrading to. SFTP the files up to where MediaWiki is installed on Redbrick i.e. "/webtree/w/wiki/wiki/", overwriting the original files. | |||
You must perform two modifications after uploading: | |||
* Add '#!/usr/local/bin/php' to the beginning of index.php | |||
* Add these lines of code to the execute function in Userlogin.php, found in includes/templates: | |||
<nowiki>/* these lines added to enable pub cookie login! */ | |||
header("Location: http://www.redbrick.dcu.ie/~wiki/wiki/custom/login1.php"); | |||
exit;</nowiki> | |||
Once thats done then login to deathray and go to the maintaince directory and run the update script: | |||
php update.php | |||
Now, go to the [[Main Page|front page]] and attempt to modify an article to make sure everything is up and running. | |||
==Customisations such as Extenstions and Scripts== | ==Customisations such as Extenstions and Scripts== |
edits