On Jan 3, 2004, at 18:42, Denny Vrandecic wrote:
is there a possibility to install Mediawiki on a Sourceforge-Website?, and if yes, how do I do it? I'd love to use Mediawiki as the wiki for the Website of my Sourceforge-Project, and yes, I know, it is overkill in some instances, but it's so great in many others (I love free links, and not having the strange looking '?' characters in my text, and much more).
Sourceforge seems to have PHP 4.1.2 installed, which is a little old but I think should work.
The default installation script probably will not work; it assumes root access etc. You can try a manual install...
If you haven't already, get a database set up for your project. See: http://sourceforge.net/docman/display_doc.php?docid=3052&group_id=1
Now, grab MediaWiki-1.1.0.tar.gz and untar it in your user space somewhere (logged into shell.sourceforge.net).
Go into the maintenance subdirectory, and set up the table skeleton: $ cat tables.sql indexes.sql initialdata.sql interwiki.sql | \ mysql -u projectname -p -h mysql.sourceforge.net projectname
It'll ask for the password that you set up the database with, and if all is well will populate the tables.
*WARNING* MediaWiki expects to have a database all to itself. If you are using your project's database for other purposes, please check that there are no conflicts between MediaWiki's table names and anything you're using, or they'll get wiped out.
Make a 'wiki' subdirectory under your project's htdocs dir, and cp or mv in wiki.phtml, redirect.phtml, includes/*.php, and languages/*.php. Also copy in the 'stylesheets' directory as 'wiki/style', and perhaps 'images' as 'wiki/upload'.
You'll need to set up a LocalSettings.php as well, which at a minimum should look something like this:
<? $IP="/home/groups/p/pr/projectname/wiki"; include("DefaultSettings.php"); $wgSitename = "Projectname";
$wgDBserver = "mysql.sourceforge.net"; $wgDBuser = "projectname"; $wgDBpassword = "yourpassword"; ?>
assuming you put everything under the 'wiki' subdirectory.
I haven't tested any of this, so good luck. :)
-- brion vibber (brion @ pobox.com)