Setting up your own MediaWiki?

From InterSciWiki

Jump to: navigation, search

Contents

[edit] On wikis

  • www.mediawiki.org Wikis by nature are a collection of "pages" - where a page can be structured independently of other pages. This makes it very easy for many users to create or modify content. But it can make organizing all of the content a difficult task. www.mediawiki.org is the homepage which shows a default template - you can browse around there to get a feel for how they organize their content and the general layout. If you use mediawiki, your pages would have a similar "look and feel" unless you do heavy modifications to the template. --Jon Nilsson, who helped set up our site.
Jon: I gave some structure to our links through hierarchies for types of authors and subject areas. Doug 11:44, 20 June 2007 (PDT)

[edit] Getting started (as MediaWiki Developer)

[edit] Captcha (Did this! It was easy)

Web sites that accept postings from the public, like this wiki, are often abused by spammers who use automated tools to post their links to many sites. While these spam links can be removed, they are a significant nuisance.

Sometimes, especially when adding new web links to a page, the wiki may show you an image of colored or distorted text and ask you to type the words shown. Since this is a task that's hard to automate, it will allow most real humans to make their posts while stopping most spammers and other robotic attackers.

Unfortunately this may inconvenience users with limited vision or using text-based or speech-based browsers. At the moment we do not have an audio alternative available. Please contact the site administrators for assistance if this is unexpectedly preventing you from making legitimate posts.

See http://en.wikipedia.org/wiki/Captcha

[edit] If ever you set up your own media site

Here is an idea: http://www.playingwithwire.com/2007/03/a-more-comprehensive-mediawiki-guide/

Perhaps easier than MediaWiki proper


This was easy to do and free because they use keystroke recognition to help digitize books. I edited localSettings to activate the keys. It asked for the keys, which I had on paper only. Asked for new keys. Entered them. There was no need to do that but when testing, Captcha is only activated when you add a new external link. So you might not think it works if you only edit as a test.

[edit] Getting <ref></ref> footnotes to work

http://www.mwusers.com/ Wiki Media Users has the answer: Stéphane Thibault Senior Member Join Date: Dec 2005 Location: Montreal, Qc., Canada Posts: 403 Says I tried to have a look at the original "Ref" template and it seems that they added something in their local MonoBook. After a little digging around, I believe the Cite extension is what you're looking for. Check it out and post back if you need more help with it. Instructions are at http://www.mediawiki.org/wiki/Extension:Cite/Cite.php.

[edit] Getting svg graphics to work

Try this? http://forum.dreamhosters.com/3rdparty/65634-Installing-librsvg.htm

[edit] Getting LATEX math symbols to work

http://scripts.mit.edu/faq/55/how-do-i-enable-math-support-in-my-mediawiki-wiki

I asked Remi who runs Wikiversity:

What did you follow to implement Latex characters for math symbols. Seems to be quite alot of perplexity about this on google-search sites.Douglas R. White 23:17, 5 July 2007 (UTC)
http://en.wikipedia.org/wiki/Help:Formula ← I think that is the page you are looking for. I found it on http://en.wikipedia.org/wiki/Help:Contents/Editing_Wikipedia. Wikipedia is a sister project of Wikiversity (which could probably be considered a much younger less mature sibling); both projects are run by the Wikimedia foundation. I hope that helps. --Remi 23:31, 5 July 2007 (UTC)

Retrieved from "http://en.wikiversity.org/wiki/User_talk:Douglas_R._White"

see below on installing texvc http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/math/README?view=markup

this is referenced at http://en.wikipedia.org/wiki/Texvc

and this at http://en.wikipedia.org/wiki/Help:Formula

which was found by Remi at http://en.wikipedia.org/wiki/Help:Contents/Editing_Wikipedia

Dao Vuong set up our system so it works... e.g., testing <math> commands:

<math>\sum_{m=1}^\infty\sum_{n=1}^\infty\frac{m^2\,n} {3^m\left(m\,3^n+n\,3^m\right)}</math>

\sum_{m=1}^\infty\sum_{n=1}^\infty\frac{m^2\,n}  {3^m\left(m\,3^n+n\,3^m\right)}

more sample math commands at: http://meta.wikimedia.org/wiki/Help:Formula

[edit] Ways we can make changes in our MediaWiki

  • Set $wgLogo to the URL path to your own logo image (the current image is $wgLogo = "$wgStylePath/common/images/wiki.png"
  • (you do this in LocalSettings.php which you can edit in ascii format)
  • No help here: http://lifehacker.com/software/wikipedia/geek-to-live-set-up-your-personal-wikipedia-163707.php
  • The easy way: Backup-Skins-Common-Images-wiki.png
  • rename your preferred image wiki.png, then copy it over
  • Tip: The logo image should be 135 pixels square.
  • If uploads are enabled in the wiki, files will be put in subdirectories under here (images).
  • Note to upgraders: as of MediaWiki 1.5, the images used in the user interface have been moved to skins/common/images.


[edit] RSS and WordPress

  • RSS in Plain English http://blip.tv/file/205570/
  • (What is RSS? Rich Site Summary?) alt:RSS (Really Simple Syndicate) is a dynamical content that can be issued by various sources (scientific journals, new papers, etc.) and can be displayed on this website pages. You can thus customize your pages so that all the relevant informations for you appear within the page. To learn more about RSS and how it works : read this, look on the right bar to read about Popular Feed Readers and let --Doug know if you think we want to go there -- provide RSS updates for our wiki.
  • Word Press is a more structured format, but allows for easy template changes. It is actually a blogging application intended to provide one page which consists of sequential update entries, and any number of auxiliary pages organized into a hierarchy. The auxiliary pages are like normal website pages - they are pretty much static content pages. And this differs from the main page which will show the most recent "entries" by any contributors - in your case this could be news updates, published articles, research findings, or whatever. You mentioned that you want RSS feeds of the content. Wordpress is equipped for Rss by default, since it's content is a list of successive entries. To familiarize yourself with Wordpress, go to www.wordpress.org - their "home page" is actually a static page with sub-pages on the left side (you should especially read the section that contains pages for those "new to Wordpress"). The "Blog" page is the dynamic content page which shows a list of successive entries: you can see the title of the entry, the date, which user posted it, etc.

[edit] Allowing or blocking search engines in Wikis

http://en.wikipedia.org/wiki/Robots.txt

The information specifying the parts that should not be accessed is specified in a file called robots.txt in the top-level directory of the website, above or under wiki, the url server name, i.e., at InterSci. I chose

User-agent: *
Disallow: /cgi-bin/
Disallow: /images/
Disallow: /tmp/
Disallow: /private/

[edit] Math images setup (FOLLOWING REMI ABOVE)

in LocalSettings.php $wgUseTeX = true;

http://intersci.ss.uci.edu/wiki/README-fromMATHsubdirectory

says:

[edit] Requirements

OCaml 3.06 or later is required to compile texvc; this can be acquired from http://caml.inria.fr/ if your system doesn't have it available.

(but for the novice this is pretty difficult to figure out)


http://www.megashear.org/wiki/index.php?title=Help:Running_MediaWiki_on_Windows#Another_way_to_use_math_under_windows says: Another way to use math under windows Maybe you will find that compile texvc is so complicated. (I am the one.) Here is another solution (Using LatexRender, thanks to Benjamin Zeiss).

You must replace the content of math.php file with this at first. I found that the last link is broken. you can find this page here

Append follow content at the end of LocalSettings.php: $wgUseTeX = true;

Where is your ImageMagick -- ON THE WIKI SERVER $wgImageMagickConvertCommand = 'D:\WebServer\ImageMagick\convert.exe'; $wgImageMagickIdentifyCommand = 'D:\WebServer\ImageMagick\identify.exe';

Where is your Tex $wgLaTexCommand = 'latex.exe'; $wgDvipsCommand = 'dvips.exe';Create folder "math" and "tmp" in the "images" folder if not exist. MATH DOES EXIST temp file created Make sure you have a working ImageMagick and Latex. Now you can try in the sandbox to see whether it works.


LocalSettings.php has a switch I could change to true:

  1. If you have the appropriate support software installed
  2. you can enable inline LaTeX equations:

$wgUseTeX = false;

http://www.mediawiki.org/wiki/Manual:Configuration_settings says

$wgMathDirectory - The file system path of the directory containing LaTeX math images. ("{$wgUploadDirectory}/math") $wgMathPath - The URL base of the directory containing LaTeX math images. ("{$wgUploadPath}/math")


[edit] If ever you set up your own wiki site

Some modification of WikiChart could count hits on your site: http://tools.wikimedia.de/~leon/stats/wikicharts/index.php?ns=articles&limit=100&month=08%2F2006&wiki=enwiki; wherein you can visualized the link structure of wiki visits between different pages http://www.firstmonday.org/issues/issue12_4/spoerri/.

Here is an idea: http://www.playingwithwire.com/2007/03/a-more-comprehensive-mediawiki-guide/ Perhaps easier than MediaWiki proper

[edit] Manuals

http://meta.wikimedia.org/wiki/MediaWiki_User's_Guide#For_administrators

/MediaWiki-Administrators-Tutorial-Guide

Mozilla wiki: http://wiki.mozilla.org/Documentation:_Administrator's_Guide

[edit] Security

Mediawiki administrators: Nowhere is it documented that the three commands that govern secure edits (by those logged in), which are

####################
$wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['user']['edit'] = true;
$wgNeedConfirmedEmailForEditing = true;

Should follow this command which is 2/3s the way down in the Local*.php Or somewhere in this area, but not at the top of the file

$wgEnableUploads       = true;
Personal tools