- LocalSettings.php: This file contains the configuration settings of your wiki. This file is owned by the webserver, but you have read and write permissions through Solaris ACLs.
- index.php: This is the main wiki script. The file is owned by you.
- uploads/: This directory holds the files uploaded to your wiki. This directory is initially owned by you, but will be chowned to the webserver if wiki uploads are enabled. On older wiki installs this directory is called images/.
Customizing Wiki Settings
LocalSettings.php is the file that controls your wiki configuration. This is the file that you will modify should you want to change your wiki settings. Changing a setting usually involves changing a php variable.
MediaWiki’s website has a nice page that explains LocalSettings.php in depth. You can find it here.
File and Image Uploads
Advanced Customization Options
You can allow people with CS accounts to log in to your wiki with their department username and password. To enable this option (NIS authentication), uncomment the lines
$wgAuth = new UnixLocalAuth();
in your LocalSettings.php file. Please note that if you enable NIS authentication, you will not be able to login to the wiki with any new wiki accounts that have been created. Only CS logins will work.
- Create an extensions/ folder in your wiki directory. Make sure that it is world readable.
- Add your MediaWiki extension code files (.php) in there.
- To use your extension file, add this line to the end of your LocalSettings.php file: include(“extensions/filename.php”);
- Log onto your wiki as an administrator.
- Go to Special Pages -> User Rights Management.
- Enter the username you want to give privileges to and click ‘Edit User Groups.’
- Select ‘sysop’ and ‘Bureacrat’ from the Available Groups list.
- Click ‘Save User Groups.’
To restrict anonymous (non logged-in user) views, edits and account creation on your wiki, add the appropriate line to LocalSettings.php.
$wgGroupPermissions['*']['read'] = false;
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createaccount'] = false;