Documentation:Mediawiki
| Line 10: | Line 10: | ||
mv config/LocalSettings.php . | mv config/LocalSettings.php . | ||
After this, your wiki is ready to go. | After this, your wiki is ready to go. | ||
| + | |||
| + | |||
| + | NOTE: You cannot have more than one wiki per UGCS account due to various bugs in mediawiki. If you have more than one wiki, it might kinda work, but upgrades might cause data loss. | ||
==Enabling Uploads== | ==Enabling Uploads== | ||
Latest revision as of 07:09, 6 February 2011
Mediawiki
Many people want to use MediaWiki on UGCS. Since you need a patch to make MediaWiki connect with kerberos, we have create a utility that automatically applies the patches. See setup-mediawiki for more information. To use it, run
setup-mediawiki <target directory>
As of October 6, 2009, there is a bug in MediaWiki that prevents you from setting the schema to something other than "mediawiki". We've submitted it to the MediaWiki bugzilla and hopefully it will get fixed soon.
The script will then install and patch the software. You then need to go to the wiki's web directory and follow its instructions to set it up. The database type should be "postgres", database host "postgres", database user "<username>_cgi", database name "username", and the password should be left blank (despite what the page says). The defaults have been set up to be correct. After this, you need to move the LocalSettings.php file to the wiki installation root.
mv config/LocalSettings.php .
After this, your wiki is ready to go.
NOTE: You cannot have more than one wiki per UGCS account due to various bugs in mediawiki. If you have more than one wiki, it might kinda work, but upgrades might cause data loss.
Enabling Uploads
You can enable uploads by running
mediawiki-enable-uploads <target>
If <target> is left off, it will use the current directory. This script edits the appropriate line in LocalSettings.php and sets the correct AFS ACL on the upload directory.
Updates
We also have a utility to automatically update a MediaWiki installation to the newest version that UGCS supports. To use it, run
update-mediawiki <target directory>