<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://training-course-material.com/index.php?action=history&amp;feed=atom&amp;title=MediaWiki_in_Depth%2FSetup</id>
	<title>MediaWiki in Depth/Setup - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://training-course-material.com/index.php?action=history&amp;feed=atom&amp;title=MediaWiki_in_Depth%2FSetup"/>
	<link rel="alternate" type="text/html" href="https://training-course-material.com/index.php?title=MediaWiki_in_Depth/Setup&amp;action=history"/>
	<updated>2026-05-13T23:42:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://training-course-material.com/index.php?title=MediaWiki_in_Depth/Setup&amp;diff=26854&amp;oldid=prev</id>
		<title>Bernard Szlachta at 13:21, 10 July 2015</title>
		<link rel="alternate" type="text/html" href="https://training-course-material.com/index.php?title=MediaWiki_in_Depth/Setup&amp;diff=26854&amp;oldid=prev"/>
		<updated>2015-07-10T13:21:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Cat|MediaWiki}}&lt;br /&gt;
{{Cat|course_code_mwdev1}}&lt;br /&gt;
[[MediaWiki in Depth|Click to jump back to MediaWiki in Depth]]&lt;br /&gt;
&lt;br /&gt;
==Interlude: The Real Requirements for Installing Mediawiki==&lt;br /&gt;
&lt;br /&gt;
Now with that background in place, it should be of no surprise that there are essential skills to be able to successfully install MediaWiki. It is an industrial-strength piece of software that does very little to hold your hands; and it is the opinion of many that if you are installing any software that is open to the entire web (including malicious users and bots), you should without exception know what you are doing.&lt;br /&gt;
&lt;br /&gt;
Naturally, these topics are all outside the scope of this course, but if we have time left over for question-and-answer, we could explore these more.&lt;br /&gt;
&lt;br /&gt;
Do note that for a local install for your own personal use, none of the above need apply!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Prerequisites===&lt;br /&gt;
* Linux/UNIX experience&lt;br /&gt;
** System installation, configuration (Debian, Ubuntu, etc.)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* PHP configuration experience: the more, the less trouble&lt;br /&gt;
** PHP is rough. It&amp;#039;s riddled with inconsistencies and gotchas that you &amp;#039;&amp;#039;must&amp;#039;&amp;#039; be aware of to keep your installation afloat&lt;br /&gt;
** If you know how to create a php.ini from scratch, you&amp;#039;re in a good spot&lt;br /&gt;
*** &amp;#039;&amp;#039;Stay away from PHP &amp;gt; 5.4&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Basic MySQL experience&lt;br /&gt;
** For a professional installation, security concerns also come to play--again: the more, the less trouble&lt;br /&gt;
** SQLite is also an option&lt;br /&gt;
&lt;br /&gt;
* Apache configuration&lt;br /&gt;
** There are lots of tutorials for this, but to get certain features to work (url rewriting, etc), a fundamental understanding is necessary&lt;br /&gt;
&lt;br /&gt;
==Setup (Debian Linux)==&lt;br /&gt;
This setup will be specific to Debian Linux, but the concepts and basic procedures I will go over differ little between distributions. If you sysadmin a different distribution at your workplace, you will know where to make the according changes.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Using aptitude to install what we need===&lt;br /&gt;
* We need php &amp;lt;= 5.4, mysql database server/client, apache2 webserver and its php module (so it can run php software such as MediaWiki)&lt;br /&gt;
** sudo aptitude update &lt;br /&gt;
** sudo aptitude install apache2 libapache2-mod-php5 php5-mysql mysql-server mysql-client&lt;br /&gt;
&lt;br /&gt;
===Downloading the latest version of MediaWiki===&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Note:&amp;#039;&amp;#039;&amp;#039; your company&amp;#039;s policy may vary-- it might be wise to create your own deb repository for easier maintenance&lt;br /&gt;
* [https://www.mediawiki.org/wiki/Download Get MediaWiki]&lt;br /&gt;
** cp mediawiki-1.23.3.tar.gz /var/www&lt;br /&gt;
** tar xzvf mediawiki-1.23.3.tar.gz&lt;br /&gt;
** mv mediawiki-1.23.3.tar.gz mw&lt;br /&gt;
&lt;br /&gt;
* Basic sysadmin practice: &amp;#039;&amp;#039;always read the release notes&amp;#039;&amp;#039;&lt;br /&gt;
* Marking the images/ directory as writable by the apache user (www-data)&lt;br /&gt;
&lt;br /&gt;
===Configuring Apache===&lt;br /&gt;
* This will be very specific to your install&lt;br /&gt;
* [[More Resources]]&lt;br /&gt;
&lt;br /&gt;
===Configuring MySQL===&lt;br /&gt;
* Creating our database and user for MediaWiki&lt;br /&gt;
** mysql -u root -p&lt;br /&gt;
** CREATE DATABASE wikidb;&lt;br /&gt;
** GRANT ALL ON wikidb.* to &amp;#039;wikiuser&amp;#039;@&amp;#039;localhost&amp;#039; identified by &amp;#039;samplePassword&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Installing MediaWiki===&lt;br /&gt;
* Getting your LocalSettings.php&lt;/div&gt;</summary>
		<author><name>Bernard Szlachta</name></author>
	</entry>
</feed>