Alexander Chen's Blog

Yes, we can!

“Your time is limited, so don’t waste it living someone else’s life. Don’t be trapped by dogma – which is living with the results of other people’s thinking. Don’t let the noise of other’s opinions drown out your own inner voice. And most important, have the courage to follow your heart and intuition. They somehow already know what you truly want to become. Everything else is secondary.”
By Steve Jobs

First time configuration on MediaWiki

Posted on:  January 9, 2012  |   Category: Computer, Website
Comments:  No Comments
Print Friendly

1. Enable File Upload Function:

Edit this file

LocalSettings.php

under the Mediawiki root directory, change the parameter of

$wgEnableUploads

to be true,

then you can see that a Upload File link appears under Toolbox on the sidebar.

Also, you have to change the properties of the default upload directory “image” to allow it to be read/write.

2. Revise 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 revise it yourself, if not, you can simply ask your technical support to revise it for you.

3. Make Mediawiki allow more file extensions:

Edit

DefaultSettings.php,

add more file extensions in the array:

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

Also, revise

$wgVerifyMimeType= false;

to be true.

File path:

includes/DefaultSettings.php

4. Edit sidebar:

Search for

mediawiki:sidebar

and edit it.

5. Change mediawiki’s default logo:

Its default file path is here:

/skins/common/images/wiki.png

6. Limit anonymous users’ rights:

Change the corresponding items to be false, such as

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

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

Comments

Leave a Comment




Google Custom Search


About

Welcome to Alexander Chen's Blog. This blog is about a little bit everything, but mainly focuses on my thoughts, and some computer and smart device tips.

Any content here is welcomed to be used or referenced, but before you use it freely, please follow THIS agreement.

This blog is optimized for MOBILE DEVICES.

Contact Me


Function