<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://studioware.com/wikislax/index.php?action=history&amp;feed=atom&amp;title=MediaWiki</id>
		<title>MediaWiki - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://studioware.com/wikislax/index.php?action=history&amp;feed=atom&amp;title=MediaWiki"/>
		<link rel="alternate" type="text/html" href="http://studioware.com/wikislax/index.php?title=MediaWiki&amp;action=history"/>
		<updated>2026-05-07T15:21:34Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.2</generator>

	<entry>
		<id>http://studioware.com/wikislax/index.php?title=MediaWiki&amp;diff=36&amp;oldid=prev</id>
		<title>Wikislax: Created page with &quot;{{RightTOC}}  == What is Mediawiki ? ==  [http://www.mediawiki.org/wiki/MediaWiki Mediawiki] is the powerful wiki software used by [http://www.wikipedia.org Wikipedia].  == In...&quot;</title>
		<link rel="alternate" type="text/html" href="http://studioware.com/wikislax/index.php?title=MediaWiki&amp;diff=36&amp;oldid=prev"/>
				<updated>2017-12-06T21:34:38Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{RightTOC}}  == What is Mediawiki ? ==  [http://www.mediawiki.org/wiki/MediaWiki Mediawiki] is the powerful wiki software used by [http://www.wikipedia.org Wikipedia].  == In...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{RightTOC}}&lt;br /&gt;
&lt;br /&gt;
== What is Mediawiki ? ==&lt;br /&gt;
&lt;br /&gt;
[http://www.mediawiki.org/wiki/MediaWiki Mediawiki] is the powerful wiki software used by [http://www.wikipedia.org Wikipedia].&lt;br /&gt;
&lt;br /&gt;
== Installing Mediawiki ==&lt;br /&gt;
&lt;br /&gt;
[http://www.mediawiki.org/wiki/Download Download] the software - a PHP application - so there is nothing to compile or make. Untar in any directory, for example /usr/local, and use a link from /var/www/htdocs/wiki.&lt;br /&gt;
&lt;br /&gt;
 # tar -C /usr/local -xvf mediawiki-x.y.z.tar.gz&lt;br /&gt;
&lt;br /&gt;
== Multiple instances ==&lt;br /&gt;
&lt;br /&gt;
Instead of copying distribution files and directories under /var/www/htdocs for each wiki, it is possible to create directories of links pointing to the same original shared mediawiki installation, modifying only these files and directories differing across sites (obviously the databases will also have to differ) : '''/mw-config''', '''/images''', and '''LocalSettings.php'''.&lt;br /&gt;
&lt;br /&gt;
 # cd /var/www/htdocs&lt;br /&gt;
 # mkdir wiki&lt;br /&gt;
 # cd wiki&lt;br /&gt;
 # mkdir mw-config&lt;br /&gt;
 # mkdir images&lt;br /&gt;
 # cp -R /usr/local/mediawiki-x.y.z/mw-config .&lt;br /&gt;
 # cp -R /usr/local/mediawiki-x.y.z/images .&lt;br /&gt;
 # ln -s /usr/local/mediawiki-x.y.z/* .&lt;br /&gt;
 ln: failed to create symbolic link './images': File exists&lt;br /&gt;
 ln: failed to create symbolic link './mw-config': File exists # cd ..&lt;br /&gt;
 # chown -R apache:apache wiki&lt;br /&gt;
&lt;br /&gt;
== Configuring Mediawiki ==&lt;br /&gt;
&lt;br /&gt;
Create an empty database wikidb and database user wikiuser on localhost. This can be done using [[phpMyAdmin]] on the User accounts tab. Keep % for the host name, choose &amp;quot;Create database with same name and grant all privileges&amp;quot; and click Go. Then point your browser to the newly created wiki directory to run the installation script. Click the “Install MediaWiki” button, make sure it worked, then move file LocalSettings.php to the wiki directory. Use your browser again to visit the newly configured wiki directory.&lt;br /&gt;
&lt;br /&gt;
 # chown -R apache:apache LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
== Mediawiki Security ==&lt;br /&gt;
&lt;br /&gt;
When releasing a free-write-access MediaWiki site, you might find that low-attention pages start to get filled with spam messages. To avoid that, you can restrict write-access to adminitrators by adding the lines below to LocalSettings.php. The login token is encrypted, so that would be hopefully enough to keep spammers out.&lt;br /&gt;
&lt;br /&gt;
 $wgGroupPermissions['*']['edit'] = false;&lt;br /&gt;
 $wgGroupPermissions['user']['edit'] = false;&lt;br /&gt;
 $wgGroupPermissions['sysop']['edit'] = true;&lt;br /&gt;
 $wgGroupPermissions['*']['createaccount'] = false;&lt;br /&gt;
&lt;br /&gt;
== Rendering Math ==&lt;br /&gt;
&lt;br /&gt;
Mediawiki's '''extension:math''' affords rendering math. It requires compilation of '''texvc''' which requires installing '''ocaml''', that you can download from http://caml.inria.fr. Install in the usual way then compile using the instructions in INSTALL :&lt;br /&gt;
&lt;br /&gt;
 # tar -C /usr/local -xvf ocaml-x.y.z.tar.gz&lt;br /&gt;
 # cd /usr/local&lt;br /&gt;
 # chown -R root:root ocaml-x.y.z&lt;br /&gt;
 # cd ocaml-x.y.z&lt;br /&gt;
 # ./configure -libdir /usr/local/lib64/ocaml&lt;br /&gt;
 # make world&lt;br /&gt;
 # make bootstrap&lt;br /&gt;
 # make opt&lt;br /&gt;
 # make opt.opt&lt;br /&gt;
 # umask 022&lt;br /&gt;
 # make install&lt;br /&gt;
 # make clean&lt;br /&gt;
&lt;br /&gt;
Download [http://www.mediawiki.org/wiki/Extension:Math extension:math], run update.php so as to setup the math database files, compile '''texvc''' and '''texvccheck''', then link in /usr/bin :&lt;br /&gt;
&lt;br /&gt;
 # tar -C /usr/local/mediawiki-x.y.z/extensions -xvf Math-RELx_y-ztttttt.tar.gz&lt;br /&gt;
 # su apache&lt;br /&gt;
 $ ln -s /var/www/htdocs/math/LocalSettings.php /usr/local/mediawiki-x.y.z&lt;br /&gt;
 $ cd /usr/local/mediawiki-x.y.z/maintenance&lt;br /&gt;
 $ php update.php&lt;br /&gt;
 $ rm /usr/local/mediawiki-x.y.z/LocalSettings.php&lt;br /&gt;
 &amp;lt;ctrl&amp;gt;-d&lt;br /&gt;
 # cd ../extensions/Math/math&lt;br /&gt;
 # make&lt;br /&gt;
 # ln -s /usr/local/mediawiki-x.y.z/extensions/Math/math/texvc /usr/bin&lt;br /&gt;
 # cd ../texvccheck&lt;br /&gt;
 # make&lt;br /&gt;
 # ln -s /usr/local/mediawiki-x.y.z/extensions/Math/texvccheck/texvccheck /usr/bin&lt;br /&gt;
&lt;br /&gt;
Also link '''latex''', '''dvips''', and '''dvipng''' in /usr/bin (/usr/local/bin doesn't work because of environment questions when ran under apache) :&lt;br /&gt;
&lt;br /&gt;
 # ln -s /usr/share/texmf/bin/latex /usr/bin&lt;br /&gt;
 # ln -s /usr/share/texmf/bin/dvips /usr/bin&lt;br /&gt;
 # ln -s /usr/share/texmf/bin/dvipng /usr/bin&lt;br /&gt;
&lt;br /&gt;
'''Latex''' needs '''math''' and '''tmp''' directories :&lt;br /&gt;
&lt;br /&gt;
 # cd ../../../images&lt;br /&gt;
 # mkdir math&lt;br /&gt;
 # mkdir tmp&lt;br /&gt;
 # chown apache:apache *&lt;br /&gt;
&lt;br /&gt;
Last modify your '''LocalSettings.php''' file adding the lines below at the end of the file. Lines '''$wgShowDebug = true; $wgDebugComments = true; $wgEnableParserCache = false; $wgCachePages = false;''' will make troubleshooting easier. When testing, also use Firefox's « Tools » « Clear recent history... » « Cache » to reinitialize the cache before page reloads. Otherwise you can never be totally sure if your last change had no effect or was just not taken into account due to the cache.&lt;br /&gt;
&lt;br /&gt;
 #################################################################################&lt;br /&gt;
 # math changes&lt;br /&gt;
 #################################################################################&lt;br /&gt;
 &lt;br /&gt;
 require_once(&amp;quot;$IP/extensions/Math/Math.php&amp;quot;);&lt;br /&gt;
 $wgTexvc = '/usr/bin/texvc';&lt;br /&gt;
 &lt;br /&gt;
 # $wgUseTeX = true;&lt;br /&gt;
 # $wgShowDebug = true;&lt;br /&gt;
 # $wgDebugComments = true;&lt;br /&gt;
 # $wgEnableParserCache = false;&lt;br /&gt;
 # $wgCachePages = false;&lt;br /&gt;
&lt;br /&gt;
From this point, mathematical expressions such as '''&amp;lt;math&amp;gt;\sqrt{1-e^2}&amp;lt;/math&amp;gt;''' will be correctly displayed in mediawiki. Not working ? '''su apache''' then try execuring commands such as '''texvc /home/wiki/tmp /home/wiki/math &amp;quot;y=x+2&amp;quot;''' to observe behaviour interactively.&lt;br /&gt;
&lt;br /&gt;
Also check page http://www.mediawiki.org/wiki/Manual:Troubleshooting_math_display_errors.&lt;br /&gt;
&lt;br /&gt;
== Wiki Maintenance ==&lt;br /&gt;
&lt;br /&gt;
Maintenance scripts are included in the maintenance subdirectory. To work, the maintenance scripts require a copy of the LocalSettings.php file in the parent directory. If the maintenance subdirectory is a link as described in the &amp;quot;Multiple instances&amp;quot; paragraph above, then the LocalSettings.php file must be copied or linked under the /usr/local/mediawiki-x.y.z first.&lt;br /&gt;
&lt;br /&gt;
 # cd /var/www/htdocs/wiki&lt;br /&gt;
 # ln -s LocalSettings.php /usr/local/mediawiki-x.y.z&lt;br /&gt;
 # cd maintenance&lt;br /&gt;
 # php deleteOldRevisions.php --help&lt;br /&gt;
 # rm /usr/local/mediawiki-x.y.z/LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Here are a few useful scripts. Be sure to check /usr/local/mediawiki-x.y.z/maintenance directory and README file to find more maintenance scripts.&lt;br /&gt;
&lt;br /&gt;
{| {{thead}}&lt;br /&gt;
|-&lt;br /&gt;
! {{chead}} width=&amp;quot;150&amp;quot; | Script&lt;br /&gt;
! {{chead}} | Usage&lt;br /&gt;
|-&lt;br /&gt;
|changePassword.php&lt;br /&gt;
|Reset the password of a specified user&lt;br /&gt;
|-&lt;br /&gt;
|deleteOldRevisions.php&lt;br /&gt;
|Erase old revisions of pages from the database&lt;br /&gt;
|-&lt;br /&gt;
|edit.php&lt;br /&gt;
|Edit a page to change its content&lt;br /&gt;
|-&lt;br /&gt;
|importImages.php&lt;br /&gt;
|Import images into the wiki&lt;br /&gt;
|-&lt;br /&gt;
|importTextFile.php&lt;br /&gt;
|Import the contents of a text file into a wiki page&lt;br /&gt;
|-&lt;br /&gt;
|moveBatch.php&lt;br /&gt;
|Move a batch of pages&lt;br /&gt;
|-&lt;br /&gt;
|nukePage.php&lt;br /&gt;
|Wipe a page and all revisions from the database&lt;br /&gt;
|-&lt;br /&gt;
|undelete.php&lt;br /&gt;
|Undelete all revisions of a page&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br clear=all&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{pFoot|[[PhpMyAdmin]]|[[Main Page]]|[[RoundCube]]}}&lt;/div&gt;</summary>
		<author><name>Wikislax</name></author>	</entry>

	</feed>