MediaWiki Initial Config

ๆญคๆ–‡็ณปๆ—ฉๅนดๅšๅฎข็š„ๅค‡ไปฝ๏ผŒไป…็”จไบŽๅ‚่€ƒๅญฆไน ใ€‚
This article is an archival copy of my early years’ blog posts.

Enable File Upload Function:

Edit file LocalSettings.php in the Mediawiki root directory, change $wgEnableUploads to true, then you’ll see that a Upload File link appear under Toolbox on the sidebar. You also have to change the properties of the default upload directory “image” to allow it to be read/write.

Edit php.ini file:

Edit your php.ini file to make sure the file size limit fits your needs. If you have full access to your hosting server, you can just edit it yourself, if not, you can simply ask your technical support to change it for you.

Make Mediawiki allow more file extensions:

Edit includes/DefaultSettings.php, add more file extensions in the array:

$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg','xls' );

Also, change $wgVerifyMimeType= false; to true.

Edit sidebar:

Search for mediawiki:sidebar and edit it.

Change mediawiki’s default logo:

The logo’s default file path is at: /skins/common/images/wiki.png

Limit anonymous users’ rights:

Change the following configs to false:

$wgGroupPermissions['']['createaccount'] = false;
$wgGroupPermissions['']['edit'] = false;