Manual:Installing MediaWiki on SourceForge.net
This page is obsolete. It is being retained for archival purposes. It may document extensions or features that are obsolete and/or no longer supported. Do not rely on any information on this page.
These are the instructions for manually installing MediaWiki on SourceForge.net. SourceForge, however, now supports MediaWiki as a hosted app. To install, you can just go to Project Admin -> Feature Settings, click the Available Features tab, and then check "MediaWiki". The hosted app doesn't have much flexibility (it doesn't allow you to change skins or add extensions), although it does integrate with the SourceForge user accounts.
Let's say that:
- your project is named "myproject"
- your login on sourceforge is "username"
Log in on sourceforge, go to "Project Admin" > "Feature Settings", then "Configure" side "MySQL Database". You must set the passwords.
For example :
Create the database m12345_wikidb on https://mysql-m.sourceforge.net/ (https://mysql-[your project character].sourceforge.net/)
Copy mediawiki on your siteEdit
Copy content of your MediaWiki folder to sftp://username,firstname.lastname@example.org/home/project-web/myproject/htdocs/wiki
* Wiki name: MyProject * Contact e-mail: email@example.com * Admin username: WikiSysop * Password : mypassword * Shared memory caching: CACHE_ACCEL * E-mail (general): enabled * mysql: mysql-m * Database name: m12345_wikidb * DB username : m12345admin * DB password: passworddb
Remove config folder
Start LocalSettings.php with
<?php # If PHP's memory limit is very low, some operations may fail. ini_set( 'memory_limit', '32M' );
SourceForge requires that you ask their permission before you use this setting 
To enable email, set up an email password by going to "Project Settings -> Features", clicking on "Manage" beside "Project Web" and setting it from there. After that, add to LocalSettings.php:
$wgSMTP = array( 'host' => "prwebmail", //could also be an IP address 'IDHost' => "YOUR_PROJECT_NAME_HERE", 'port' => 25, 'auth' => true, 'username' => "YOUR_PROJECT_NAME_HERE", 'password' => "YOUR_PROJECT_EMAIL_PASS_HERE" );
Email should now work, but SourceForge will monitor abuse of the service. As such, it is recommended to disable the send out of watchlist emails or install Extension:ConfirmEdit.
Add these lines to LocalSettings.php:
$wgFooterIcons['poweredby']['sourceforge'] = array( "src" => "http://sflogo.sourceforge.net/sflogo.php?group_id=353187&type=1", "url" => "http://sourceforge.net/projects/myproject", "alt" => "Get myproject at SourceForge.net. Fast, secure and Free Open Source software downloads", );
You then need to change a setting in LocalSettings.php to enable upload:
$wgEnableUploads = true;
Block anonymous IP-addressesEdit
Using a Short URLEdit
In order to use short URLs, you will need to follow the directions at Manual:Short URL/wiki/Page title -- no root access. Note that these directions assume that you installed the wiki in the "w" directory and want "wiki" to be a part of the short URL.
Dealing with slow performanceEdit
If you suffer from (very) slow performance, have a look at Manual:Performance tuning.