<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.occupyboston.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Creating_a_MediaWiki_Development_Environment</id>
	<title>Creating a MediaWiki Development Environment - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.occupyboston.org/wiki/index.php?action=history&amp;feed=atom&amp;title=Creating_a_MediaWiki_Development_Environment"/>
	<link rel="alternate" type="text/html" href="https://wiki.occupyboston.org/wiki/index.php?title=Creating_a_MediaWiki_Development_Environment&amp;action=history"/>
	<updated>2026-04-03T19:57:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.occupyboston.org/wiki/index.php?title=Creating_a_MediaWiki_Development_Environment&amp;diff=13913&amp;oldid=prev</id>
		<title>Srevilak: /* Setup a Virtual Host */ typo</title>
		<link rel="alternate" type="text/html" href="https://wiki.occupyboston.org/wiki/index.php?title=Creating_a_MediaWiki_Development_Environment&amp;diff=13913&amp;oldid=prev"/>
		<updated>2012-04-07T18:53:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Setup a Virtual Host: &lt;/span&gt; typo&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:53, 7 April 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l24&quot;&gt;Line 24:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 24:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Setup a Virtual Host ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Setup a Virtual Host ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Add an IP/hostname mapping to your hosts &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;files &lt;/del&gt;(e.g., /etc/hosts).  For example:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Add an IP/hostname mapping to your hosts &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;file &lt;/ins&gt;(e.g., /etc/hosts).  For example:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   127.0.0.1     obwiki.local&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   127.0.0.1     obwiki.local&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Add a virtualhost to your web server.  For example&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Add a virtualhost to your web server.  For example&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;:&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;lt;VirtualHost localhost:80&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &amp;lt;VirtualHost localhost:80&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Srevilak</name></author>
	</entry>
	<entry>
		<id>https://wiki.occupyboston.org/wiki/index.php?title=Creating_a_MediaWiki_Development_Environment&amp;diff=13912&amp;oldid=prev</id>
		<title>Srevilak: Initial revision</title>
		<link rel="alternate" type="text/html" href="https://wiki.occupyboston.org/wiki/index.php?title=Creating_a_MediaWiki_Development_Environment&amp;diff=13912&amp;oldid=prev"/>
		<updated>2012-04-07T18:48:42Z</updated>

		<summary type="html">&lt;p&gt;Initial revision&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Creating a MediaWiki development environment = &lt;br /&gt;
&lt;br /&gt;
== Obtaining the Source ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir wiki.occupyboston.org&lt;br /&gt;
cd wiki.occupyboston.org&lt;br /&gt;
git init&lt;br /&gt;
git remote add origin ssh://obwiki@boggs.mayfirst.org/home/members/occupyboston/sites/wiki.occupyboston.org/include/site_hub&lt;br /&gt;
git fetch origin&lt;br /&gt;
git checkout master&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Here's what the result should look like.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ls&lt;br /&gt;
total 8&lt;br /&gt;
4 mediawiki/  4 robots.txt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;mediawiki&amp;quot; directory will be your document root.&lt;br /&gt;
&lt;br /&gt;
== Setup a Virtual Host ==&lt;br /&gt;
&lt;br /&gt;
Add an IP/hostname mapping to your hosts files (e.g., /etc/hosts).  For example:&lt;br /&gt;
&lt;br /&gt;
  127.0.0.1     obwiki.local&lt;br /&gt;
&lt;br /&gt;
Add a virtualhost to your web server.  For example&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;VirtualHost localhost:80&amp;gt;&lt;br /&gt;
    ServerName obwiki.local&lt;br /&gt;
    DocumentRoot /PATH/TO/wiki.occupyboston.org/mediawiki&lt;br /&gt;
  &amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Initial Wiki Install ==&lt;br /&gt;
&lt;br /&gt;
Go to &amp;lt;nowiki&amp;gt;http://obwiki.local&amp;lt;/nowiki&amp;gt;; click &amp;quot;set up the wiki&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Go through the wiki installation process.  I'll assume that you're&lt;br /&gt;
using MySQL, a username of &amp;quot;obwiki&amp;quot;, and a database name of &amp;quot;obwiki&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Don't worry too much about the initial configuration parameters.&lt;br /&gt;
We'll set up the confgiuration in a subsequent step.&lt;br /&gt;
&lt;br /&gt;
At the end of the installation, MediaWiki will ask you to save a&lt;br /&gt;
LocalSettings.php file.  Save this file as '''LocalSettings-install.php.'''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Configuration Setup ==&lt;br /&gt;
&lt;br /&gt;
 cd mediawiki   # this is the document root&lt;br /&gt;
 cp LocalSettings-example.php LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
Now, edit LocalSettings.php.  Fill in the values from LocalSettings-install.php.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Noteworthy Configuration Directives ===&lt;br /&gt;
&lt;br /&gt;
If you'd like to use mod_rewrite, add the following to your&lt;br /&gt;
webserver's virtualhost definition:&lt;br /&gt;
&lt;br /&gt;
    RewriteEngine On&lt;br /&gt;
    RewriteRule ^/*$ http://obwiki.local/wiki/Main_Page [L]&lt;br /&gt;
    RewriteRule ^/?wiki/(.*)$ /index.php?title=$1  [PT,L,QSA]&lt;br /&gt;
&lt;br /&gt;
If you don't want to use mod_rewrite, add this line to LocalSettings.php&lt;br /&gt;
&lt;br /&gt;
  $wgArticlePath = false;&lt;br /&gt;
&lt;br /&gt;
You may also want to add&lt;br /&gt;
&lt;br /&gt;
  $wgUseSquid = false;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Additional Setup for Plugins ==&lt;br /&gt;
&lt;br /&gt;
We enable several MediaWiki plugins, and some of these plugins require&lt;br /&gt;
additional database tables.  To install the additional database&lt;br /&gt;
tables:&lt;br /&gt;
&lt;br /&gt;
 cd mediawiki&lt;br /&gt;
 php maintenance/update.php&lt;br /&gt;
&lt;br /&gt;
At this point, you should be able to create and edit pages in your development environment.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Miscellaneous Notes ==&lt;br /&gt;
&lt;br /&gt;
If you'd like to look at boggs server configuration for&lt;br /&gt;
wiki.occupyboston.org, you'll find it in&lt;br /&gt;
&amp;lt;tt&amp;gt;~obwiki/wiki.occupyboston.org/.red/apache2&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The live document root is&lt;br /&gt;
&amp;lt;tt&amp;gt;~obwiki/wiki.occupyboston.org/web/mediawiki/&amp;lt;/tt&amp;gt;.  Note that this&lt;br /&gt;
is a checked out copy of git repository.&lt;/div&gt;</summary>
		<author><name>Srevilak</name></author>
	</entry>
</feed>