view docs/INSTALL.html @ 6133:a6283e189869 tip

fixup: remove nonexisting passlib.utils._blowfish this was removed by the passlib 1.7.1 upgrade.
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Thu, 01 Jun 2017 18:10:19 +0200
parents 3e398ac7ab6b
children
line wrap: on
line source
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<link rel="shortcut icon" href="//static.moinmo.in/favicon.ico">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta name="robots" content="noindex,nofollow">

<title>InstallDocs - 1.9 Master Wiki</title>
<script type="text/javascript" src="../MoinMoin/web/static/htdocs/common/js/common.js"></script>


<link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="../MoinMoin/web/static/htdocs/modernized/css/common.css">
<link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="../MoinMoin/web/static/htdocs/modernized/css/print.css">

<!-- css only for MS IE6/IE7 browsers -->
<!--[if lt IE 8]>
   <link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="../MoinMoin/web/static/htdocs/modernized/css/msie.css">
<![endif]-->


<link rel="alternate" title="1.9 Master Wiki: InstallDocs" href="/action/rss_rc/InstallDocs?diffs=1&amp;show_att=1&amp;action=rss_rc&amp;unique=0&amp;page=InstallDocs&amp;ddiffs=1" type="application/rss+xml">


<link rel="Start" href="/FrontPage">
<link rel="Alternate" title="Wiki Markup" href="/action/raw/InstallDocs?action=raw">
<link rel="Alternate" media="print" title="Print View" href="/action/print/InstallDocs?action=print">
<link rel="Search" href="/FindPage">
<link rel="Index" href="/TitleIndex">
<link rel="Glossary" href="/WordIndex">
<link rel="Help" href="/HelpOnFormatting">
</head>

<body  lang="en" dir="ltr">
<div id="page" lang="en" dir="ltr">
<span id="interwiki"><a href="/FrontPage" rel="nofollow">MoinMaster</a><span class="sep">: </span></span>
<ul id="pagelocation">
<li><a href="/InstallDocs">InstallDocs</a></li>
</ul>
<div dir="ltr" id="content" lang="en"><span class="anchor" id="top"></span>
<span class="anchor" id="line-1"></span><span class="anchor" id="line-2"></span><span class="anchor" id="line-3"></span><span class="anchor" id="line-4"></span><span class="anchor" id="line-5"></span><span class="anchor" id="line-6"></span><span class="anchor" id="line-7"></span><span class="anchor" id="line-8"></span><span class="anchor" id="line-9"></span><span class="anchor" id="line-10"></span><span class="anchor" id="line-11"></span><p class="line867">
<h1 id="About_MoinMoin">About MoinMoin</h1>
<span class="anchor" id="line-12"></span><p class="line867">MoinMoin is a full-featured wiki engine. <span class="anchor" id="line-13"></span><span class="anchor" id="line-14"></span><p class="line862">For a more detailed description, please see the <a class="http" href="http://moinmo.in/">MoinMoin Homepage</a> and the <a class="http" href="http://moinmo.in/HowTo">HowTos</a>. <span class="anchor" id="line-15"></span><span class="anchor" id="line-16"></span><p class="line874">Skip to: <span class="anchor" id="line-17"></span><ul><li><p class="line891"><a href="#requirements">Installation Requirements</a> <span class="anchor" id="line-18"></span></li><li><p class="line891"><a href="#quick">Quick Installation (easy, no admin knowledge required)</a> <span class="anchor" id="line-19"></span></li><li><p class="line891"><a href="#server">Server Installation (admin knowledge required)</a> <span class="anchor" id="line-20"></span><span class="anchor" id="line-21"></span></li></ul><p class="line867"><hr /><p class="line874"> <span class="anchor" id="line-22"></span><span class="anchor" id="line-23"></span><p class="line867"><span class="anchor" id="requirements"></span> <span class="anchor" id="line-24"></span><div dir="ltr" id="InstallDocs.2FRequirements.content" lang="en"><span class="anchor" id="InstallDocs.2FRequirements.top"></span>
<span class="anchor" id="InstallDocs.2FRequirements.line-1"></span><span class="anchor" id="InstallDocs.2FRequirements.line-2"></span><span class="anchor" id="InstallDocs.2FRequirements.line-3"></span><span class="anchor" id="InstallDocs.2FRequirements.line-4"></span><span class="anchor" id="InstallDocs.2FRequirements.line-5"></span><span class="anchor" id="InstallDocs.2FRequirements.line-6"></span><span class="anchor" id="InstallDocs.2FRequirements.line-7"></span><span class="anchor" id="InstallDocs.2FRequirements.line-8"></span><span class="anchor" id="InstallDocs.2FRequirements.line-9"></span><span class="anchor" id="InstallDocs.2FRequirements.line-10"></span><span class="anchor" id="InstallDocs.2FRequirements.line-11"></span><p class="line867">
<h1 id="InstallDocs.2FRequirements.Installation_Requirements">Installation Requirements</h1>
<span class="anchor" id="InstallDocs.2FRequirements.line-12"></span><p class="line862">Before you start installing MoinMoin, some requirements have to be met. The actual requirements depend largely on what kind of setup you plan for your wiki installation. <span class="anchor" id="InstallDocs.2FRequirements.line-13"></span><span class="anchor" id="InstallDocs.2FRequirements.line-14"></span><p class="line867">
<h2 id="InstallDocs.2FRequirements.What_do_you_need_to_know.3F">What do you need to know?</h2>
<span class="anchor" id="InstallDocs.2FRequirements.line-15"></span><p class="line862">There are two major ways of using MoinMoin, requiring different knowledge about the environment it is going to be installed in (e.g. operating system, server software, etc.): <span class="anchor" id="InstallDocs.2FRequirements.line-16"></span><span class="anchor" id="InstallDocs.2FRequirements.line-17"></span><ul><li>Quick installation: <span class="anchor" id="InstallDocs.2FRequirements.line-18"></span><ul><li>A likely scenario for use on a personal computer or laptop <span class="anchor" id="InstallDocs.2FRequirements.line-19"></span></li><li>No knowledge about administration of servers is required, but <span class="anchor" id="InstallDocs.2FRequirements.line-20"></span></li><li>You should be familiar with your chosen operating system <span class="anchor" id="InstallDocs.2FRequirements.line-21"></span><span class="anchor" id="InstallDocs.2FRequirements.line-22"></span></li></ul></li><li class="gap">Server installation: <span class="anchor" id="InstallDocs.2FRequirements.line-23"></span><ul><li>General server administration knowledge is required <span class="anchor" id="InstallDocs.2FRequirements.line-24"></span></li><li>You have to know about web server configuration <span class="anchor" id="InstallDocs.2FRequirements.line-25"></span></li><li>You have to know about permissions, users, groups and the like <span class="anchor" id="InstallDocs.2FRequirements.line-26"></span><span class="anchor" id="InstallDocs.2FRequirements.line-27"></span></li></ul></li></ul><p class="line867"><img alt="(!)" height="16" src="../MoinMoin/web/static/htdocs/modernized/img/idea.png" title="(!)" width="16" /> Please note, that there are <a class="interwiki" href="http://moinmo.in/ServiceProviders" title="MoinMoin">service providers</a> who offer hosted, pre-configured MoinMoin installations. Also, in case you need MoinMoin on your own server, please see the <a class="http" href="http://moinmo.in/Support">Support Options</a> about how to get help with installation/configuration. <span class="anchor" id="InstallDocs.2FRequirements.line-28"></span><span class="anchor" id="InstallDocs.2FRequirements.line-29"></span><span class="anchor" id="InstallDocs.2FRequirements.line-30"></span><p class="line867">
<h2 id="InstallDocs.2FRequirements.What_software_do_you_need_to_have_installed.3F">What software do you need to have installed?</h2>
<span class="anchor" id="InstallDocs.2FRequirements.line-31"></span><p class="line862">The software that has to be installed on the target machine, also largely depends on the type of deployment AND on the features you want to make use of. While the largest amount of functionality in MoinMoin works with a minimal set of requirements, some features can only be activated in the presence of additional software: <span class="anchor" id="InstallDocs.2FRequirements.line-32"></span><span class="anchor" id="InstallDocs.2FRequirements.line-33"></span><p class="line867">
<h3 id="InstallDocs.2FRequirements.Required_software">Required software</h3>
<span class="anchor" id="InstallDocs.2FRequirements.line-34"></span><p class="line874">For details, see docs/REQUIREMENTS in your moin download archive. <span class="anchor" id="InstallDocs.2FRequirements.line-35"></span><span class="anchor" id="InstallDocs.2FRequirements.bottom"></span></div> <span class="anchor" id="line-25"></span><hr /><p class="line874"> <span class="anchor" id="line-26"></span><span class="anchor" id="line-27"></span><p class="line867"><span class="anchor" id="quick"></span> <span class="anchor" id="line-28"></span><div dir="ltr" id="InstallDocs.2FQuickInstall.content" lang="en"><span class="anchor" id="InstallDocs.2FQuickInstall.top"></span>
<span class="anchor" id="InstallDocs.2FQuickInstall.line-1"></span><span class="anchor" id="InstallDocs.2FQuickInstall.line-2"></span><span class="anchor" id="InstallDocs.2FQuickInstall.line-3"></span><span class="anchor" id="InstallDocs.2FQuickInstall.line-4"></span><span class="anchor" id="InstallDocs.2FQuickInstall.line-5"></span><span class="anchor" id="InstallDocs.2FQuickInstall.line-6"></span><span class="anchor" id="InstallDocs.2FQuickInstall.line-7"></span><span class="anchor" id="InstallDocs.2FQuickInstall.line-8"></span><span class="anchor" id="InstallDocs.2FQuickInstall.line-9"></span><span class="anchor" id="InstallDocs.2FQuickInstall.line-10"></span><span class="anchor" id="InstallDocs.2FQuickInstall.line-11"></span><p class="line867">
<h1 id="InstallDocs.2FQuickInstall.Quick_Installation:_The_1_minute_MoinMoin_install">Quick Installation: The 1 minute MoinMoin install</h1>
<span class="anchor" id="InstallDocs.2FQuickInstall.line-12"></span><ol type="1"><li><p class="line862">Unpack the MoinMoin release archive (get it from <a class="interwiki" href="http://moinmo.in/MoinMoinDownload" title="MoinMoin">MoinMoinDownload</a>). <span class="anchor" id="InstallDocs.2FQuickInstall.line-13"></span></li><li>Run wikiserver.py from the top level directory. <span class="anchor" id="InstallDocs.2FQuickInstall.line-14"></span></li><li><p class="line862">Read and follow this page in your wiki: <a class="http" href="http://localhost:8080/LanguageSetup">http://localhost:8080/LanguageSetup</a> <span class="anchor" id="InstallDocs.2FQuickInstall.line-15"></span></li><li><p class="line862">You are done! Have fun! <img alt=":)" height="16" src="../MoinMoin/web/static/htdocs/modernized/img/smile.png" title=":)" width="16" /> <span class="anchor" id="InstallDocs.2FQuickInstall.line-16"></span><span class="anchor" id="InstallDocs.2FQuickInstall.line-17"></span></li></ol><p class="line874">If these steps were not verbose enough for you, you can try one of these more detailed instructions: <span class="anchor" id="InstallDocs.2FQuickInstall.line-18"></span><ul><li><p class="line891"><a href="#InstallDocs.2BAC8-QuickInstall.2BAC8-Linux.Linux:_Detailed_Quick_Installation">Skip to Linux</a> <span class="anchor" id="InstallDocs.2FQuickInstall.line-19"></span></li><li><p class="line891"><a href="#InstallDocs.2BAC8-QuickInstall.2BAC8-MacOSX.Mac:_Detailed_Quick_Installation">Skip to Mac OS X</a> <span class="anchor" id="InstallDocs.2FQuickInstall.line-20"></span></li><li><p class="line891"><a href="#InstallDocs.2BAC8-QuickInstall.2BAC8-Windows.Windows:__Detailed_Quick_Installation">Skip to Windows</a> <span class="anchor" id="InstallDocs.2FQuickInstall.line-21"></span></li></ul><p class="line867"><hr /><p class="line874"> <span class="anchor" id="InstallDocs.2FQuickInstall.line-22"></span><span class="anchor" id="InstallDocs.2FQuickInstall.line-23"></span><p class="line867"><span class="anchor" id="InstallDocs.2FQuickInstall.qdlinux"></span> <span class="anchor" id="InstallDocs.2FQuickInstall.line-24"></span><div dir="ltr" id="InstallDocs.2FQuickInstall.2FLinux.content" lang="en"><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.top"></span>
<span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-1"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-2"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-3"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-4"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-5"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-6"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-7"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-8"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-9"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-10"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-11"></span><p class="line867">
<h1 id="InstallDocs.2FQuickInstall.2FLinux.Linux:_Detailed_Quick_Installation">Linux: Detailed Quick Installation</h1>
<span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-12"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-13"></span><p class="line867">
<h2 id="InstallDocs.2FQuickInstall.2FLinux.Download_MoinMoin">Download MoinMoin</h2>
<span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-14"></span><p class="line862">Please read the <a class="interwiki" href="http://moinmo.in/MoinMoinDownload" title="MoinMoin">MoinMoinDownload</a> wiki page to find and download the latest MoinMoin release version. <span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-15"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-16"></span><p class="line867"><img alt="(!)" height="16" src="../MoinMoin/web/static/htdocs/modernized/img/idea.png" title="(!)" width="16" /> Please remember the path where you saved that download and also its exact filename. <span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-17"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-18"></span><p class="line862">The filename will likely be something like <tt class="backtick">moin-1.9.0.tar.gz</tt> (for moin version 1.9.0), but we will just talk of moin-x.x.x because the concrete version number changes often. You have to use the real version number in the commands you enter, not x.x.x, of course. <span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-19"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-20"></span><p class="line867">
<h2 id="InstallDocs.2FQuickInstall.2FLinux.Working_on_the_shell">Working on the shell</h2>
<span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-21"></span><p class="line874">For the next steps, we will work on a shell prompt (for sure you can also do all the steps using some GUI tool of your favourite desktop environment, but because of the diversity of those environments, you will have to find out the right tools yourself using these steps as a guideline). <span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-22"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-23"></span><p class="line867"><img alt="(!)" height="16" src="../MoinMoin/web/static/htdocs/modernized/img/idea.png" title="(!)" width="16" /> If you use some graphical desktop environment or some X Window Manager, you will first have to find a terminal window (usually called "Terminal", "XTerm", "shell", "bash", "Command line window" or similar) and start it. If you see something showing a $ and a blinking cursor to the right of it, it worked. We shall also refer to this window as the "shell". <span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-24"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-25"></span><p class="line867"><img alt="/!\" height="16" src="../MoinMoin/web/static/htdocs/modernized/img/alert.png" title="/!\" width="16" /> Note that you <strong>must not</strong> use a "root shell" for this type of installation. Just use a shell as the non-priviledged user you usually log in as. You can use the <tt class="backtick">id</tt> command to display what user you are and it must not display "root". <span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-26"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-27"></span><p class="line862">For the next steps, we assume you have downloaded the moin archive into your home directory and that the current directory is your home directory (that's the default when you start a shell, usually indicated by a shell prompt showing <tt class="backtick">~$</tt> - the tilde means you are in your home directory and the dollar means that you can enter a command to the right of it). <span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-28"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-29"></span><p class="line867">
<h2 id="InstallDocs.2FQuickInstall.2FLinux.Verify_the_integrity_of_your_downloaded_file">Verify the integrity of your downloaded file</h2>
<span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-30"></span><p class="line874">Make sure the archive downloaded correctly by verifying the md5sum (a checksum) of the archive: <span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-31"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-32"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-33"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-34"></span><pre><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-1-1"></span>$ md5sum moin-x.x.x.tar.gz
<span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-2-1"></span>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX  moin-x.x.x.tar.gz</pre><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-35"></span><p class="line874">The value (XXX...) md5sum shown left of the filename must match the value published on the download page for the file you just downloaded! <span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-36"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-37"></span><p class="line867"><img alt="/!\" height="16" src="../MoinMoin/web/static/htdocs/modernized/img/alert.png" title="/!\" width="16" /> If it does not match, your download is corrupted somehow. Remove the file and try downloading it again. <span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-38"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-39"></span><p class="line862">Alternatively, you can also use the <tt class="backtick">sha256sum</tt> command and the sha256sum shown on the download page. <span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-40"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-41"></span><p class="line862">Even better is to use <tt class="backtick">GnuPG</tt> to verify the authenticity of the file (you will need to additionally download the corresponding file with the <tt class="backtick">.asc</tt> extension, which is the signature for the release file): <span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-42"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-43"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-44"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-45"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-46"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-47"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-48"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-49"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-50"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-51"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-52"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-53"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-54"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-55"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-56"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-57"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-58"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-59"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-60"></span><pre><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-1-2"></span># first fetch the key (and subkeys) that were used to sign the release archive:
<span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-2-2"></span>$ gpg --keyserver keys.gnupg.net --recv-key FAF7B393
<span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-3-1"></span>gpg: requesting key FAF7B393 from hkp server keys.gnupg.net
<span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-4-1"></span>gpg: key FAF7B393: public key "Thomas Waldmann &lt;tw@waldmann-edv.de&gt;" imported
<span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-5-1"></span>gpg: no ultimately trusted keys found
<span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-6-1"></span>gpg: Total number processed: 1
<span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-7-1"></span>gpg:               imported: 1  (RSA: 1)
<span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-8-1"></span>
<span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-9-1"></span># now check the signature:
<span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-10-1"></span>$ gpg --verify moin-1.9.7.tar.gz.asc moin-1.9.7.tar.gz
<span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-11-1"></span>gpg: Signature made Sat 16 Mar 2013 05:42:00 PM UTC using RSA key ID 31A6CB60
<span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-12-1"></span>gpg: Good signature from "Thomas Waldmann &lt;tw@waldmann-edv.de&gt;"                 &lt;--- check this!
<span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-13-1"></span>gpg:                 aka "Thomas Waldmann &lt;tw-public@gmx.de&gt;"
<span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-14-1"></span>gpg: WARNING: This key is not certified with a trusted signature!               &lt;--- Normal if TW is not part of your web-of-trust.
<span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-15-1"></span>gpg:          There is no indication that the signature belongs to the owner.
<span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-16-1"></span>Primary key fingerprint: 6D5B EF9A DD20 7580 5747  B70F 9F88 FB52 FAF7 B393
<span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-17-1"></span>     Subkey fingerprint: 9FCB 53A2 E7DA 4C08 8568  C3FA 90A8 7636 31A6 CB60</pre><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-61"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-62"></span><p class="line867">
<h2 id="InstallDocs.2FQuickInstall.2FLinux.Unpack_MoinMoin">Unpack MoinMoin</h2>
<span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-63"></span><p class="line874">We use a gzipped tar archive for our release archives - you need to unpack it before using. <span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-64"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-65"></span><p class="line874">Unpack it using this command on the shell: <span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-66"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-67"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-68"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-69"></span><pre><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-1-3"></span>$ tar xvzf moin-x.x.x.tar.gz
<span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-2-3"></span>(it will show a long list of all files it has unpacked)</pre><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-70"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-71"></span><p class="line862">This will create a directory <tt class="backtick">moin-x.x.x</tt> in the current directory with all the MoinMoin release files in it. <span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-72"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-73"></span><p class="line867">
<h2 id="InstallDocs.2FQuickInstall.2FLinux.Run_MoinMoin">Run MoinMoin</h2>
<span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-74"></span><p class="line867">MoinMoin is written using the Python programming language so you need to start it using the python interpreter: <span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-75"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-76"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-77"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-78"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-79"></span><pre><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-1-4"></span>$ cd moin-x.x.x
<span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-2-4"></span>$ python wikiserver.py
<span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-3-2"></span>(you will see the log output of the running MoinMoin server here)</pre><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-80"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-81"></span><p class="line862">After MoinMoin has started, it will show some log output in your terminal window. Within that logging output, it will also announce on which IP address and port the server runs (e.g. <a class="http" href="http://127.0.0.1:8080">http://127.0.0.1:8080</a>). <span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-82"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-83"></span><p class="line862">Now just leave that terminal window as it is and the builtin web server of MoinMoin will work as long as you don't stop it. <span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-84"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-85"></span><p class="line862">You can stop the server by closing that terminal window or by pressing <tt class="backtick">Ctrl-C</tt> to interrupt it. <span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-86"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-87"></span><p class="line867">
<h2 id="InstallDocs.2FQuickInstall.2FLinux.Use_MoinMoin">Use MoinMoin</h2>
<span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-88"></span><p class="line862">Just point your web browser at the address you got from the terminal window (e.g.: <a class="http" href="http://127.0.0.1:8080/">http://127.0.0.1:8080/</a> or <a class="http" href="http://localhost:8080/">http://localhost:8080/</a> ). <span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-89"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-90"></span><p class="line874">You should now see your fresh moin wiki in your browser. Maybe bookmark that address so you don't have to enter it manually each time you want to use your wiki. <span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-91"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-92"></span><p class="line862">Your wiki is now ready to use. Have fun! <img alt=":)" height="16" src="../MoinMoin/web/static/htdocs/modernized/img/smile.png" title=":)" width="16" /> <span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.line-93"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FLinux.bottom"></span></div> <span class="anchor" id="InstallDocs.2FQuickInstall.line-25"></span><hr /><p class="line874"> <span class="anchor" id="InstallDocs.2FQuickInstall.line-26"></span><span class="anchor" id="InstallDocs.2FQuickInstall.line-27"></span><p class="line867"><span class="anchor" id="InstallDocs.2FQuickInstall.qdmac"></span> <span class="anchor" id="InstallDocs.2FQuickInstall.line-28"></span><div dir="ltr" id="InstallDocs.2FQuickInstall.2FMacOSX.content" lang="en"><span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.top"></span>
<span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-1"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-2"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-3"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-4"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-5"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-6"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-7"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-8"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-9"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-10"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-11"></span><p class="line867">
<h1 id="InstallDocs.2FQuickInstall.2FMacOSX.Mac:_Detailed_Quick_Installation">Mac: Detailed Quick Installation</h1>
<span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-12"></span><p class="line862">Apple's Mac operating system comes with Python already installed as a part of the core system software making running a MoinMoin wiki very easy. <span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-13"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-14"></span><p class="line867">
<h2 id="InstallDocs.2FQuickInstall.2FMacOSX.Download_MoinMoin">Download MoinMoin</h2>
<span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-15"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-16"></span><ol type="1"><li><p class="line862">Download the latest Moin from <a class="interwiki" href="http://moinmo.in/MoinMoinDownload" title="MoinMoin">MoinMoinDownload</a> page. <span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-17"></span></li><li>Double-click to expand. <span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-18"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-19"></span></li></ol><p class="line867">
<h2 id="InstallDocs.2FQuickInstall.2FMacOSX.Starting_Moin_for_the_first_time">Starting Moin for the first time</h2>
<span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-20"></span><p class="line862">By default, python scripts (.py) will open in TextEdit.app. For convenience, we'll want to associate .py files to open in Terminal.app so that we can simply double-click the <tt>wikiserver.py</tt> file to run Moin. <span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-21"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-22"></span><ol type="1"><li><p class="line862">Right-click (control-click) on the <tt>wikiserver.py</tt> file. <span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-23"></span></li><li>From the contextual-menu, <span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-24"></span><ol type="i"><li><p class="line862">Select "Open with..." &gt; "Other..."; <span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-25"></span></li><li><p class="line862">From the file dialog, select "All Applications", check "Always Open With", then navigate to Terminal.app (located in //Applications/Utilites/). <br>
 (The "Always open with" sets Terminal.app as the default application so in future you can double-click the <tt>wikiserver.py</tt> file). <span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-26"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-27"></span></li></ol></li></ol><p class="line867">
<h2 id="InstallDocs.2FQuickInstall.2FMacOSX.Daily_Use">Daily Use</h2>
<span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-28"></span><ol type="i"><li>Double-click on the wikiserver.py file and Terminal.app will launch. <span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-29"></span></li><li><p class="line862">Point your browser at <a class="http" href="http://localhost:8080">http://localhost:8080</a> <span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-30"></span></li><li>To quit the wiki, simply close the terminal window. <span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.line-31"></span></li></ol><span class="anchor" id="InstallDocs.2FQuickInstall.2FMacOSX.bottom"></span></div> <span class="anchor" id="InstallDocs.2FQuickInstall.line-29"></span><hr /><p class="line874"> <span class="anchor" id="InstallDocs.2FQuickInstall.line-30"></span><span class="anchor" id="InstallDocs.2FQuickInstall.line-31"></span><p class="line867"><span class="anchor" id="InstallDocs.2FQuickInstall.qdwindows"></span> <span class="anchor" id="InstallDocs.2FQuickInstall.line-32"></span><div dir="ltr" id="InstallDocs.2FQuickInstall.2FWindows.content" lang="en"><span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.top"></span>
<span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-1"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-2"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-3"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-4"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-5"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-6"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-7"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-8"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-9"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-10"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-11"></span><p class="line867">
<h1 id="InstallDocs.2FQuickInstall.2FWindows.Windows:__Detailed_Quick_Installation">Windows:  Detailed Quick Installation</h1>
<span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-12"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-13"></span><p class="line867">MoinMoin relies on Python which requires a separate install on Windows. <span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-14"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-15"></span><p class="line867">
<h2 id="InstallDocs.2FQuickInstall.2FWindows.Download_.26_Install_Python">Download &amp; Install Python</h2>
<span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-16"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-17"></span><ul><li><p class="line862">Go to <a class="http" href="http://www.python.org/download/">http://www.python.org/download/</a> and download the Python installer. <span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-18"></span></li><li>Run the installer! <span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-19"></span><ul><li>If you want to save some space, you can unselect all but the first two options (you won't need the 'Test Suite', 'Utility Scripts', or 'Documentation' unless you plan to develop in Python). <span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-20"></span></li><li>The installer will automatically associate .py files with Python. <span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-21"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-22"></span></li></ul></li></ul><p class="line867">
<h2 id="InstallDocs.2FQuickInstall.2FWindows.Download_.26_Expand_MoinMoin">Download &amp; Expand MoinMoin</h2>
<span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-23"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-24"></span><ol type="1"><li><p class="line862">Download the latest MoinMoin from the <a class="interwiki" href="http://moinmo.in/MoinMoinDownload" title="MoinMoin">MoinMoinDownload</a> page. <span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-25"></span></li><li><p class="line862">Extract the files to a folder (using a utility such as <a class="http" href="http://www.7-zip.org">7-zip</a> or similar). <span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-26"></span></li><li><p class="line862">Simply double-click <tt>wikiserver.py</tt> which you will find in this folder. <span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-27"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-28"></span></li></ol><p class="line867">
<h2 id="InstallDocs.2FQuickInstall.2FWindows.Daily_Use">Daily Use</h2>
<span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-29"></span><span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-30"></span><ol type="i"><li><p class="line862">Double-click on the <tt>wikiserver.py</tt> file and a black command window will open. <span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-31"></span></li><li><p class="line862">Point your browser to <a class="http" href="http://localhost:8080/">http://localhost:8080/</a>. <span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-32"></span></li><li>To quit the wiki, simply close the command window. <span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.line-33"></span></li></ol><span class="anchor" id="InstallDocs.2FQuickInstall.2FWindows.bottom"></span></div> <span class="anchor" id="InstallDocs.2FQuickInstall.line-33"></span><hr /><p class="line874"> <span class="anchor" id="InstallDocs.2FQuickInstall.line-34"></span><span class="anchor" id="InstallDocs.2FQuickInstall.bottom"></span></div> <span class="anchor" id="line-29"></span><hr /><p class="line874"> <span class="anchor" id="line-30"></span><span class="anchor" id="line-31"></span><p class="line867"><span class="anchor" id="server"></span> <span class="anchor" id="line-32"></span><div dir="ltr" id="InstallDocs.2FServerInstall.content" lang="en"><span class="anchor" id="InstallDocs.2FServerInstall.top"></span>
<span class="anchor" id="InstallDocs.2FServerInstall.line-1"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-2"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-3"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-4"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-5"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-6"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-7"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-8"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-9"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-10"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-11"></span><p class="line867">
<h1 id="InstallDocs.2FServerInstall.Server_Installation">Server Installation</h1>
<span class="anchor" id="InstallDocs.2FServerInstall.line-12"></span><p class="line862">How to setup MoinMoin for various web servers / gateway interfaces. <span class="anchor" id="InstallDocs.2FServerInstall.line-13"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-14"></span><p class="line867"><span class="anchor" id="InstallDocs.2FServerInstall.line-15"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-16"></span><div class="important"><span class="anchor" id="InstallDocs.2FServerInstall.line-1-1"></span><p class="line862">Please note that you require server admin experience for a server installation. It is not in the scope of this documentation to teach you (web) server configuration/administration, but just to show you how MoinMoin is installed. If you are unsure about your experience level, please try the Quick Installation first.  </div><span class="anchor" id="InstallDocs.2FServerInstall.line-17"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-18"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-19"></span><p class="line867">
<h2 id="InstallDocs.2FServerInstall.MoinMoin_and_WSGI">MoinMoin and WSGI</h2>
<span class="anchor" id="InstallDocs.2FServerInstall.line-20"></span><p class="line867">MoinMoin is a <a class="http" href="http://wsgi.org/">WSGI</a> application, therefore the best environment to run a MoinMoin instance in is a WSGI-aware one. <span class="anchor" id="InstallDocs.2FServerInstall.line-21"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-22"></span><p class="line874">Here are some of them: <span class="anchor" id="InstallDocs.2FServerInstall.line-23"></span><ul><li><p class="line891"><strong><a class="http" href="http://httpd.apache.org">Apache</a></strong> with <strong><a class="http" href="http://code.google.com/p/modwsgi">mod_wsgi</a></strong>: <span class="anchor" id="InstallDocs.2FServerInstall.line-24"></span><strong>This is the recommended deployment when using Apache. It is very fast and easy to setup.</strong> <span class="anchor" id="InstallDocs.2FServerInstall.line-25"></span></li><li><p class="line891"><strong>standalone server</strong> shipped with MoinMoin: reasonably fast, also used for the <a href="/InstallDocs/QuickInstall">Quick Installation</a> <span class="anchor" id="InstallDocs.2FServerInstall.line-26"></span></li><li><p class="line862">More WSGI server options can be found there: <a class="http" href="http://wiki.python.org/moin/WSGIImplementations">http://wiki.python.org/moin/WSGIImplementations</a> <span class="anchor" id="InstallDocs.2FServerInstall.line-27"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-28"></span></li></ul><p class="line862">Also we will cover some legacy deployment methods for serving MoinMoin from non-WSGI-aware setups. The needed adapters are included in the MoinMoin distribution. <span class="anchor" id="InstallDocs.2FServerInstall.line-29"></span><ul><li><p class="line891"><strong>CGI</strong>: the classic protocol for web application serving - awfully slow but works (almost) everywhere. <span class="anchor" id="InstallDocs.2FServerInstall.line-30"></span></li><li><p class="line891"><strong>FastCGI</strong> / <strong>SCGI</strong> / <strong>AJP</strong>: fast, and in the case of FastCGI, quite widespread. <span class="anchor" id="InstallDocs.2FServerInstall.line-31"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-32"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-33"></span></li></ul><p class="line867">
<h2 id="InstallDocs.2FServerInstall.Apache_with_mod_wsgi">Apache with mod_wsgi</h2>
<span class="anchor" id="InstallDocs.2FServerInstall.line-34"></span><p class="line862">The details of how to install <em>mod_wsgi</em> or <em>Apache</em> is out of scope of this document. Please follow the install instructions for each respective software package.  The <a class="http" href="http://httpd.apache.org/docs/">Apache documentation</a> is here, and the  <a class="http" href="http://code.google.com/p/modwsgi/wiki/ConfigurationGuidelines">mod_wsgi instructions</a> has set-up details. Some users have documented their install process in detail on the user-supported <a class="http" href="http://moinmo.in/HowTo">how-to</a> page on the MoinMoin wiki. <span class="anchor" id="InstallDocs.2FServerInstall.line-35"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-36"></span><p class="line862">If everything has been configured to your liking, you can test your setup with the application contained in <tt class="backtick">test.wsgi</tt> (please read the hints included in the file). <span class="anchor" id="InstallDocs.2FServerInstall.line-37"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-38"></span><p class="line874">Some further hints for usage of mod_wsgi: <span class="anchor" id="InstallDocs.2FServerInstall.line-39"></span><ul><li><p class="line862">If possible, use mod_wsgi's <em>daemon mode</em> (not the <em>embedded mode</em>).  This can prove more secure since it seperates the WSGI apps from the actual Apache process. <span class="anchor" id="InstallDocs.2FServerInstall.line-40"></span></li><li><p class="line862">If you use Windows, there is no <em>daemon mode</em>, thus you have no other choice than to use <em>embedded mode</em>. <span class="anchor" id="InstallDocs.2FServerInstall.line-41"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-42"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-43"></span></li></ul><p class="line867">
<h2 id="InstallDocs.2FServerInstall.MoinMoin_specific_installation">MoinMoin specific installation</h2>
<span class="anchor" id="InstallDocs.2FServerInstall.line-44"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-45"></span><p class="line867">
<h3 id="InstallDocs.2FServerInstall.MoinMoin_installation">MoinMoin installation</h3>
<span class="anchor" id="InstallDocs.2FServerInstall.line-46"></span><p class="line862">You may, but do not need to, install MoinMoin to system specific locations via the use of <tt class="backtick">setup.py</tt>. <span class="anchor" id="InstallDocs.2FServerInstall.line-47"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-48"></span><p class="line867"><img alt="(!)" height="16" src="../MoinMoin/web/static/htdocs/modernized/img/idea.png" title="(!)" width="16" /> You can place the MoinMoin package (a directory called <tt class="backtick">MoinMoin/</tt> containing most of the code) anywhere you like, no specific location in the filesystem is required. <span class="anchor" id="InstallDocs.2FServerInstall.line-49"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-50"></span><p class="line862">If you choose to use <tt class="backtick">setup.py</tt>, you can install MoinMoin using: <span class="anchor" id="InstallDocs.2FServerInstall.line-51"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-52"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-53"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-54"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-55"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-56"></span><pre><span class="anchor" id="InstallDocs.2FServerInstall.line-1-2"></span>python setup.py install --force --record=install.log --prefix='/usr/local' --install-data=/srv
<span class="anchor" id="InstallDocs.2FServerInstall.line-2-1"></span># or alternatively, to the default system location:
<span class="anchor" id="InstallDocs.2FServerInstall.line-3-1"></span>python setup.py install --force --record=install.log
<span class="anchor" id="InstallDocs.2FServerInstall.line-4-1"></span># --force is important, without it setup.py might not overwrite outdated files at the destination</pre><span class="anchor" id="InstallDocs.2FServerInstall.line-57"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-58"></span><p class="line862">With <tt class="backtick">--install-data=/path</tt> you could change the prefix of the wiki instance directory (<tt class="backtick">share/moin</tt>) to <tt class="backtick">/path</tt>.  <span class="anchor" id="InstallDocs.2FServerInstall.line-59"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-60"></span><p class="line867"><img alt="/!\" height="16" src="../MoinMoin/web/static/htdocs/modernized/img/alert.png" title="/!\" width="16" /> Please note that using <tt class="backtick">setup.py</tt> as shown above will overwrite all files at the destination. So if you modified files there, your modifications will be lost. However it won't remove outdated files there so if you had used <tt class="backtick">setup.py</tt> before for the same destination, maybe clean up at the destination before installing a new moin version. <span class="anchor" id="InstallDocs.2FServerInstall.line-61"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-62"></span><p class="line867"><img alt="(!)" height="16" src="../MoinMoin/web/static/htdocs/modernized/img/idea.png" title="(!)" width="16" /> If you need to modify files, do not do so in their original location, but copy them to some safe place first and then edit them there. <span class="anchor" id="InstallDocs.2FServerInstall.line-63"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-64"></span><p class="line862">The file <tt class="backtick">install.log</tt> will contain a complete log of installed files. <span class="anchor" id="InstallDocs.2FServerInstall.line-65"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-66"></span><p class="line874">You may want to keep it in case you have trouble locating some of the file(s) mentioned below. <span class="anchor" id="InstallDocs.2FServerInstall.line-67"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-68"></span><p class="line867">
<h3 id="InstallDocs.2FServerInstall.Python_path_setup">Python path setup</h3>
<span class="anchor" id="InstallDocs.2FServerInstall.line-69"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-70"></span><p class="line862">Code: From here on we will use <tt class="backtick">/moin/code</tt> to refer to the <em>parent directory</em> of the <tt class="backtick">MoinMoin/</tt> package directory. <span class="anchor" id="InstallDocs.2FServerInstall.line-71"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-72"></span><p class="line862">Config: You can place the wiki config files (they are just Python code) anywhere you like, no specific location is required. We will use <tt class="backtick">/moin/config</tt> to refer to the directory that contains your wiki config files. <span class="anchor" id="InstallDocs.2FServerInstall.line-73"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-74"></span><p class="line862">To make MoinMoin and Python find the needed files, you need to make those locations known:  <span class="anchor" id="InstallDocs.2FServerInstall.line-75"></span><ul><li><p class="line862">Python needs to be able to find the <tt class="backtick">MoinMoin</tt> code package - this is needed so that <tt class="backtick">from&nbsp;MoinMoin&nbsp;import&nbsp;...</tt> can work. ( <img alt="(!)" height="16" src="../MoinMoin/web/static/htdocs/modernized/img/idea.png" title="(!)" width="16" /> This is <strong>not</strong> needed if you choose to do a system-wide installation.) <span class="anchor" id="InstallDocs.2FServerInstall.line-76"></span></li><li><p class="line862">Python needs to be able to find the wiki configuration files so that MoinMoin is able to import them. <span class="anchor" id="InstallDocs.2FServerInstall.line-77"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-78"></span></li></ul><p class="line862">For this to work, you can simply edit <tt class="backtick">moin.wsgi</tt> (or in case you deploy with CGI/FCGI/etc.: the corresponding script for these deployment methods from the <tt class="backtick">wiki/server/</tt> directory). There is already example code in those files, just remove the comment (# hash character) and change them accordingly: <span class="anchor" id="InstallDocs.2FServerInstall.line-79"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-80"></span><p class="line867"><span class="anchor" id="InstallDocs.2FServerInstall.line-81"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-82"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-83"></span><pre><span class="anchor" id="InstallDocs.2FServerInstall.line-1-3"></span>sys.path.insert(0, '/moin/code')
<span class="anchor" id="InstallDocs.2FServerInstall.line-2-2"></span>sys.path.insert(0, '/moin/config')</pre><span class="anchor" id="InstallDocs.2FServerInstall.line-84"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-85"></span><p class="line862">You can place <tt class="backtick">moin.wsgi</tt> anywhere you like. Just make your web server find and use it. <span class="anchor" id="InstallDocs.2FServerInstall.line-86"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-87"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-88"></span><p class="line867">
<h3 id="InstallDocs.2FServerInstall.MoinMoin_wiki_configuration">MoinMoin wiki configuration</h3>
<span class="anchor" id="InstallDocs.2FServerInstall.line-89"></span><p class="line874">Although the code is now ready to run, your wiki is not configured yet. <span class="anchor" id="InstallDocs.2FServerInstall.line-90"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-91"></span><p class="line862">You now have to create your wiki configuration within the <tt class="backtick">/moin/config/</tt> directory. <span class="anchor" id="InstallDocs.2FServerInstall.line-92"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-93"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-94"></span><p class="line867">
<h4 id="InstallDocs.2FServerInstall.Single_wiki">Single wiki</h4>
<span class="anchor" id="InstallDocs.2FServerInstall.line-95"></span><p class="line862">Just copy the file <tt class="backtick">wiki/config/wikiconfig.py</tt> from the distribution archive to <tt class="backtick">/moin/config/</tt>. <span class="anchor" id="InstallDocs.2FServerInstall.line-96"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-97"></span><p class="line862">The file is thoroughly commented to ease you through the configuration. Make sure that if you configure paths in the file, that those paths are <strong>absolute</strong> paths. This way you ensure that the needed files are definitely found and save yourself some troubles. <span class="anchor" id="InstallDocs.2FServerInstall.line-98"></span>The essential configuration directives are: <span class="anchor" id="InstallDocs.2FServerInstall.line-99"></span><ul><li><p class="line891"><tt class="backtick">data_dir</tt>: this should point to where the particular data of your wiki should be stored. (see below) <span class="anchor" id="InstallDocs.2FServerInstall.line-100"></span></li><li><p class="line891"><tt class="backtick">data_underlay_dir</tt>: MoinMoin comes with (pre-made) system and help pages. This directive should point to the directory where you put those (see below) <span class="anchor" id="InstallDocs.2FServerInstall.line-101"></span></li><li><p class="line891"><tt class="backtick">interwikiname</tt>: This should be a short descriptive identifier for your wiki. It needs to be unique and should <strong>never</strong> be changed later <span class="anchor" id="InstallDocs.2FServerInstall.line-102"></span></li><li><p class="line891"><tt class="backtick">sitename</tt>: This will be the name of your wiki for display purposes <span class="anchor" id="InstallDocs.2FServerInstall.line-103"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-104"></span></li></ul><p class="line867"><img alt="/!\" height="16" src="../MoinMoin/web/static/htdocs/modernized/img/alert.png" title="/!\" width="16" /> We don't require any specific file system locations, but please be careful: <tt class="backtick">data_dir</tt> contains sensitive informations that <strong>must not</strong> be read by anything or anyone except the running moin wiki code. For example, you <strong>must not</strong> make <tt class="backtick">data_dir</tt> accessible directly via the web server, thus you <strong>must not</strong> copy it to a directory below document root of your web server. Any other permanent storage location on a fast local filesystem will be fine. <span class="anchor" id="InstallDocs.2FServerInstall.line-105"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-106"></span><p class="line862">You need to copy the complete contents of the <tt class="backtick">wiki/data/</tt> directory we provide in the distribution archive to the location you specified as <tt class="backtick">data_dir</tt>. The same goes for <tt class="backtick">wiki/underlay/</tt> and the location you specified as <tt class="backtick">data_underlay_dir</tt>. <span class="anchor" id="InstallDocs.2FServerInstall.line-107"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-108"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-109"></span><p class="line867">
<h4 id="InstallDocs.2FServerInstall.Multiple_wikis">Multiple wikis</h4>
<span class="anchor" id="InstallDocs.2FServerInstall.line-110"></span><p class="line862">Just copy the files <tt class="backtick">wiki/config/wikifarm/*</tt> from the dist archive to <tt class="backtick">/moin/config/</tt>. <span class="anchor" id="InstallDocs.2FServerInstall.line-111"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-112"></span><p class="line874">Now follow the directions as for a single wiki (see above) for each of your farm wikis. <span class="anchor" id="InstallDocs.2FServerInstall.line-113"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-114"></span><p class="line874">Special wiki farm hints: <span class="anchor" id="InstallDocs.2FServerInstall.line-115"></span><ul><li><p class="line862">You need a separate <tt class="backtick">data_dir</tt> and <tt class="backtick">data_underlay_dir</tt> per wiki <span class="anchor" id="InstallDocs.2FServerInstall.line-116"></span></li><li><p class="line862">If you want to share some settings for your wikis, put them into <tt class="backtick">farmconfig.py</tt> - they will be inherited by <tt class="backtick">mywiki</tt> <span class="anchor" id="InstallDocs.2FServerInstall.line-117"></span></li><li><p class="line862">The settings that need to be different are put into <tt class="backtick">mywiki.py</tt> <span class="anchor" id="InstallDocs.2FServerInstall.line-118"></span></li><li><p class="line862">If you need more than 1 wiki, add files like <tt class="backtick">mywiki.py</tt> and reference them from <tt class="backtick">farmconfig.py</tt> as you see for <tt class="backtick">mywiki</tt> <span class="anchor" id="InstallDocs.2FServerInstall.line-119"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-120"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-121"></span></li></ul><p class="line867">
<h4 id="InstallDocs.2FServerInstall.Static_file_serving">Static file serving</h4>
<span class="anchor" id="InstallDocs.2FServerInstall.line-122"></span><p class="line867">MoinMoin also comes with some static files like images, CSS, Javascript, Java applet files, etc. (see the <tt class="backtick">MoinMoin/web/static/htdocs/</tt> directory in the distribution archive). They are needed for things like styling, icons and additional client-side functionality. <span class="anchor" id="InstallDocs.2FServerInstall.line-123"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-124"></span><p class="line867">MoinMoin serves those files by a built-in static file server at the path '../MoinMoin/web/static/htdocsZ' (XYZ like in MoinMoin version X.Y.Z, e.g. <tt class="backtick">../MoinMoin/web/static/htdocs0</tt> for moin 1.9.0). <span class="anchor" id="InstallDocs.2FServerInstall.line-125"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-126"></span><p class="line874">Please note that this path is relative to the script root, so: <span class="anchor" id="InstallDocs.2FServerInstall.line-127"></span><ul><li><p class="line862">if you run your wiki script at <tt class="backtick">/mywiki</tt>, the URL for the static files server will be <tt class="backtick">/mywiki../MoinMoin/web/static/htdocsZ</tt>. You need to configure <tt class="backtick">url_prefix_static</tt> in your wiki config to match this. <span class="anchor" id="InstallDocs.2FServerInstall.line-128"></span></li><li><p class="line862">if you run your wiki script at <tt class="backtick">/</tt>, the URL for the static files server will be <tt class="backtick">../MoinMoin/web/static/htdocsZ</tt> - and it will automagically match the default value of <tt class="backtick">url_prefix_static</tt>, so no need to configure it. <span class="anchor" id="InstallDocs.2FServerInstall.line-129"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-130"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-131"></span></li></ul><p class="line867">
<h3 id="InstallDocs.2FServerInstall.Running_MoinMoin_with_Apache_.2F_mod_wsgi">Running MoinMoin with Apache / mod_wsgi</h3>
<span class="anchor" id="InstallDocs.2FServerInstall.line-132"></span><p class="line862">Now you should be able to simply run the <tt class="backtick">moin.wsgi</tt> script the same way you ran <tt class="backtick">test.wsgi</tt> above. <span class="anchor" id="InstallDocs.2FServerInstall.line-133"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-134"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-135"></span><p class="line867">
<h3 id="InstallDocs.2FServerInstall.Running_MoinMoin_with_other_WSGI_servers">Running MoinMoin with other WSGI servers</h3>
<span class="anchor" id="InstallDocs.2FServerInstall.line-136"></span><p class="line862">Have a look at <tt class="backtick">moin.wsgi</tt> and the documentation of your web server's WSGI support. As WSGI is a standard, it should be quite similar and easy to adapt. <span class="anchor" id="InstallDocs.2FServerInstall.line-137"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-138"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-139"></span><p class="line867">
<h3 id="InstallDocs.2FServerInstall.Running_MoinMoin_with_CGI.2C_FastCGI.2C_SCGI_or_AJP">Running MoinMoin with CGI, FastCGI, SCGI or AJP</h3>
<span class="anchor" id="InstallDocs.2FServerInstall.line-140"></span><p class="line862">If you are not running a WSGI capable server and want to deploy MoinMoin with one of the other methods (like CGI, FastCGI, SCGI or AJP), just use the appropriate script for the desired method from <tt class="backtick">wiki/server/</tt> (instead of <tt class="backtick">moin.wsgi</tt>): <span class="anchor" id="InstallDocs.2FServerInstall.line-141"></span><ul><li><p class="line891"><tt class="backtick">moin.cgi</tt>: serves both CGI <strong>and</strong> FastCGI requests. <span class="anchor" id="InstallDocs.2FServerInstall.line-142"></span></li><li><p class="line891"><tt class="backtick">moin.scgi</tt>: serves SCGI capable servers <span class="anchor" id="InstallDocs.2FServerInstall.line-143"></span></li><li><p class="line891"><tt class="backtick">moin.ajp</tt>: serves AJP capable servers <span class="anchor" id="InstallDocs.2FServerInstall.line-144"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-145"></span></li></ul><p class="line862">Now edit that script (similarly as shown above for <tt class="backtick">moin.wsgi</tt>) to make Python find the moin code and wiki configuration files. <span class="anchor" id="InstallDocs.2FServerInstall.line-146"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-147"></span><p class="line874">For setting up your particular web server to speak any of these protocols to the moin application, please refer to the web server's documentation. <span class="anchor" id="InstallDocs.2FServerInstall.line-148"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-149"></span><p class="line867"><img alt="/!\" height="16" src="../MoinMoin/web/static/htdocs/modernized/img/alert.png" title="/!\" width="16" /> When using the scripts for FastCGI, SCGI or AJP (<strong>not</strong> CGI), be aware that they can also act as externally spawned processes to the web server. Via the means of commandline parameters they can be bound to an interface or UNIX socket and also do threading or forking for performance. <span class="anchor" id="InstallDocs.2FServerInstall.line-150"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-151"></span><p class="line862">Try running <tt class="backtick">moin.cgi&nbsp;--help</tt> for an example. When run without any options by the web server, control of sockets and the like is left to the web server. <span class="anchor" id="InstallDocs.2FServerInstall.line-152"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-153"></span><p class="line862">Note: The non-WSGI deployment scripts use <a class="http" href="http://trac.saddi.com/flup">flup</a> to convert FastCGI/SCGI/AJP/CGI to WSGI (we bundle flup with moin). Please see the flup documentation for more details. <span class="anchor" id="InstallDocs.2FServerInstall.line-154"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-155"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-156"></span><p class="line867">
<h3 id="InstallDocs.2FServerInstall.Running_MoinMoin_with_anything_else">Running MoinMoin with anything else</h3>
<span class="anchor" id="InstallDocs.2FServerInstall.line-157"></span><p class="line874">In the unlikely case none of the above deployment methods work for you, you can try to: <span class="anchor" id="InstallDocs.2FServerInstall.line-158"></span><ul><li><p class="line862">find some WSGI module for <em>anything</em>, or some <em>anything</em>-to-WSGI middleware <span class="anchor" id="InstallDocs.2FServerInstall.line-159"></span></li><li>use it to run the moin WSGI application <span class="anchor" id="InstallDocs.2FServerInstall.line-160"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-161"></span></li></ul><p class="line874">Alternatively, you can also run moin with any of the supported methods (on some other IP or some other port) and use your (unsupported) main web server as a proxy. <span class="anchor" id="InstallDocs.2FServerInstall.line-162"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-163"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-164"></span><p class="line867">
<h3 id="InstallDocs.2FServerInstall.Testing_your_setup">Testing your setup</h3>
<span class="anchor" id="InstallDocs.2FServerInstall.line-165"></span><p class="line874">You can test if everything works by following these steps: <span class="anchor" id="InstallDocs.2FServerInstall.line-166"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-167"></span><ul><li><p class="line862">Access the URL you have configured for your wiki and you should see something that looks similar to the <a class="http" href="http://moinmo.in/">MoinMoin homepage</a>. <span class="anchor" id="InstallDocs.2FServerInstall.line-168"></span></li><li><p class="line862">Go to the WikiSandBox page in your wiki. <span class="anchor" id="InstallDocs.2FServerInstall.line-169"></span></li><li>Try to edit it and save your changes. <span class="anchor" id="InstallDocs.2FServerInstall.line-170"></span></li><li><p class="line862">If that works, see if your edit is shown on the <a href="/RecentChanges">RecentChanges</a> page. <span class="anchor" id="InstallDocs.2FServerInstall.line-171"></span></li><li><p class="line862">If you see it, congratulations, your new wiki works! <img alt=":)" height="16" src="../MoinMoin/web/static/htdocs/modernized/img/smile.png" title=":)" width="16" /> <span class="anchor" id="InstallDocs.2FServerInstall.line-172"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-173"></span><span class="anchor" id="InstallDocs.2FServerInstall.line-174"></span></li></ul><p class="line867">
<h2 id="InstallDocs.2FServerInstall.Troubleshooting">Troubleshooting</h2>
<span class="anchor" id="InstallDocs.2FServerInstall.line-175"></span><p class="line874">When things go wrong and reading the docs does not help, just: <span class="anchor" id="InstallDocs.2FServerInstall.line-176"></span><ul><li><p class="line862">ask concrete questions on the <a class="interwiki" href="http://moinmo.in/MoinMoinChat" title="MoinMoin">MoinMoinChat</a> <span class="anchor" id="InstallDocs.2FServerInstall.line-177"></span></li><li>and wait until someone answers <span class="anchor" id="InstallDocs.2FServerInstall.line-178"></span></li></ul><span class="anchor" id="InstallDocs.2FServerInstall.bottom"></span></div> <span class="anchor" id="line-33"></span><span class="anchor" id="bottom"></span></div><p id="pageinfo" class="info" lang="en" dir="ltr">MoinMaster: InstallDocs  (last edited 2009-09-15 17:15:09 by <span title="RickVanderveer @ 207.152.64.90[207.152.64.90]"><a class="interwiki" href="http://moinmo.in/RickVanderveer" title="RickVanderveer @ 207.152.64.90[207.152.64.90]">RickVanderveer</a></span>)</p>
<div id="pagebottom"></div>
</div>
</body>
</html>