Installing Media Wiki on Debian
I followed these instructions http://meta.wikimedia.org/wiki/Running_MediaWiki_on_Debian_GNU/Linux
Which was pretty good. It forgot to mention that /etc/apach2/sites-avalible
Alias /wiki/ "/var/lib/mediawiki1.5/"
<Directory "/var/lib/mediawiki1.5/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
Change the permissions for all mediawiki files
sudo chown -R webapp:webapp /var/lib/mediawiki1.5/ sudo chown -R webapp:webapp /usr/share/mediawiki1.5/ sudo chown -R webapp:webapp /etc/mediawiki1.5/ sudo -u webapp chmod 777 /var/lib/mediawiki1.5/upload/
Copy the same AdminSettings.php to the right place and edit
sudo -u webapp cp /usr/share/doc/mediawiki1.5/examples/AdminSettings.sample /etc/mediawiki1.5/AdminSettings.php
To dis-allow anyonomous edits add the following to LocalSettings.php
# # Permission keys given to users in each group. # All users are implicitly in the '*' group including anonymous visitors; # logged-in users are all implicitly in the 'user' group. These will be # combined with the permissions of all groups that a given user is listed # in in the user_groups table. # # This replaces wgWhitelistAccount and wgWhitelistEdit # # The following line should be commented, otherwise these settings will # throw away the settings on DefaultSettings.php (you probably don't want this). # With this line commented you will only overwrite the settings you explicitly # define here (that's what you probably want). #$wgGroupPermissions = array(); $wgGroupPermissions['*' ]['createaccount'] = true; $wgGroupPermissions['*' ]['read'] = true; $wgGroupPermissions['*' ]['edit'] = false;
Next log in as WikiSysop and