annotate docs/INSTALL.html @ 176:6ddcb13c0f4e

make install-docs, interwiki, underlay imported from: moin--main--1.5--patch-178
author Thomas Waldmann <tw@waldmann-edv.de>
date Mon, 31 Oct 2005 19:51:50 +0000
parents cfbecd3400d3
children d0250ed0cd53
rev   line source
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
2 <html>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
3 <head>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
4 <link rel="shortcut icon" href="http://moinmaster.wikiwikiweb.de/wiki/favicon.ico">
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
5 <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
6 <meta name="robots" content="noindex,nofollow">
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
7
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
8
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
9 <title>MoinMoin/InstallDocs - MoinMaster</title>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
10 <script type="text/javascript" src="/wiki/common/js/common.js"></script>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
11
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
12
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
13 <link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="wiki/htdocs/modern/css/common.css">
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
14 <link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="wiki/htdocs/modern/css/print.css">
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
15 <link rel="alternate" title="MoinMaster Recent Changes" href="http://moinmaster.wikiwikiweb.de/RecentChanges?action=rss_rc&amp;ddiffs=1&amp;unique=1" type="application/rss+xml">
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
16 <link rel="Start" href="http://moinmaster.wikiwikiweb.de/FrontPage">
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
17 <link rel="Alternate" title="Wiki Markup" href="http://moinmaster.wikiwikiweb.de/MoinMoin/InstallDocs?action=raw">
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
18 <link rel="Alternate" media="print" title="Print View" href="http://moinmaster.wikiwikiweb.de/MoinMoin/InstallDocs?action=print">
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
19 <link rel="Up" href="http://moinmaster.wikiwikiweb.de/MoinMoin">
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
20 <link rel="Search" href="http://moinmaster.wikiwikiweb.de/FindPage">
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
21 <link rel="Index" href="http://moinmaster.wikiwikiweb.de/TitleIndex">
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
22 <link rel="Glossary" href="http://moinmaster.wikiwikiweb.de/WordIndex">
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
23 <link rel="Help" href="http://moinmaster.wikiwikiweb.de/HelpOnFormatting">
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
24 </head>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
25
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
26 <body lang="en" dir="ltr">
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
27 <div id="page" lang="en" dir="ltr">
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
28 <div id="interwiki"><span><a href="http://moinmaster.wikiwikiweb.de/FrontPage">MoinMaster</a></span></div>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
29 <ul id="pagelocation">
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
30 <li>MoinMoin/InstallDocs</li>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
31 </ul>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
32 <div lang="en" id="content" dir="ltr">
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
33 <a id="top"></a><a id="line-11"></a><a id="line-12"></a><p>This HTML page contains the basic install docs that can be found on <a class="www" href="http://moinmaster.wikiwikiweb.de/MoinMoin/InstallDocs">http://moinmaster.wikiwikiweb.de/MoinMoin/InstallDocs</a>. It contains all necessary information to get your wiki up and running, even without being online. If you have a permanent internet connection, you might want to browse the docs on the Help<tt></tt>On<tt></tt>Installing page, which might contain more up-to-date information. <a id="line-13"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
34 <a id="line-14"></a><p>After following the procedures on this page, you should have a working wiki and can browse the rest of the online docs there. <a id="line-15"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
35 <a id="line-16"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
36 <h1 id="head-378d73a512870e1afed036c887489ab98ba3c56a">How to install your own MoinMoin Wiki</h1>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
37
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
38 <a id="line-17"></a><p>This page describes the installation procedure of <a href="http://moinmaster.wikiwikiweb.de/MoinMoin">MoinMoin</a>. In the next section, there is a list of real-world <a href="#installscenarios">Installation Scenarios</a> that help you to understand how to apply the instructions in different environments. If you already have a wiki running and want to upgrade, see <a class="interwiki" title="MoinMaster" href="http://moinmaster.wikiwikiweb.de/HelpOnUpdating">HelpOnUpdating</a>. <a id="line-18"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
39 <a id="line-19"></a><p>A Moin<tt></tt>Moin installation is done by some elementary steps: <a id="line-20"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
40 <ul>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
41 <li><p><a href="#basic-install">Basic Installation</a> explains the "<tt>setup.py</tt>" step of the installation in more detail. This is uses to get the Moin<tt></tt>Moin code and wiki template installed onto your system. This applies equally to all scenarios, and you should read it before trying a live installation. <a id="line-21"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
42 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
43 <li><p><a href="#wikiinstance-creation">Wiki Instance Creation</a> explains how you make a new wiki instance (data and configuration), this is also common to all scenarios. <a id="line-22"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
44 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
45 <li><p>Getting the web server to serve static stuff under the <tt>/wiki</tt> URL (url_prefix) - used for theme CSS and images, etc. - this is slightly different for the various web servers that can be used - see below. <a id="line-23"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
46 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
47 <li><p>Getting the web server to execute the moin code when you access wiki pages. This is done either by CGI, FastCGI, mod_python or Twisted or the built-in stand alone server - this is slightly different for the various web servers that can be used - see below. <a id="line-24"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
48 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
49 <li><p>After a successful installation, you might want to read more about configuration and other options that you, as the wiki administrator, can set up. <a class="interwiki" title="MoinMaster" href="http://moinmaster.wikiwikiweb.de/HelpOnAdministration">HelpOnAdministration</a> contains links to pages that cover these topics. Especially, the <a class="interwiki" title="MoinMaster" href="http://moinmaster.wikiwikiweb.de/HelpOnConfiguration">HelpOnConfiguration</a> and <a class="interwiki" title="MoinMaster" href="http://moinmaster.wikiwikiweb.de/HelpOnUpdating">HelpOnUpdating</a> pages provide additional information regarding wiki setup and maintenance. <a id="line-25"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
50 </li>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
51 <li><p><a href="#trouble-shooting">Trouble-shooting</a> helps with fixing any general problems you might encounter, which apply to any installation platform. <a id="line-26"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
52 <a id="line-27"></a></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
53 </ul>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
54 <a id="installscenarios"></a><p> <a id="line-28"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
55
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
56 <h1 id="head-bee4ae5a5ef44b7af47ecd4f29b44226ba935e5b">Installation steps specific for some web servers and operating systems</h1>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
57
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
58 <a id="line-29"></a><a id="line-30"></a><p>The following links will show you concrete examples of installation sessions, showing the commands used and explaining what they do. You <em>must first read the general information on installing above</em> before doing the installation steps described on the pages linked from below: <a id="line-31"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
59 <a id="line-32"></a><p>Linux: <a id="line-33"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
60 <ul>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
61 <li><p><a href="#linuxapache-install">Linux Installation using Apache</a> <a id="line-34"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
62 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
63 <li><p><a href="#linuxstandalone-install">Linux Installation using standalone server</a> <a id="line-35"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
64 <a id="line-36"></a></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
65 </ul>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
66 <p>Long-Running-Process Setup: <a id="line-37"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
67 <ul>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
68 <li><p><a href="#fastcgi-install">FastCGI Setup using Apache</a> <a id="line-38"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
69 </li>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
70 <li><p><a href="#modpy-install">mod_python Setup using Apache</a> <a id="line-39"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
71 </li>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
72 <li><p><a href="#twisted-install">Setup using twisted</a> <a id="line-40"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
73 <a id="line-41"></a></li>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
74 </ul>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
75 <p>Mac OS X: <a id="line-42"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
76 <ul>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
77 <li><p><a href="#macosx-install">Mac OS X Installation</a> <a id="line-43"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
78 <a id="line-44"></a></li>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
79 </ul>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
80 <p>Windows: <a id="line-45"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
81 <ul>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
82 <li><p><a href="#win32apache-install">Windows Installation using Apache</a> <a id="line-46"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
83 </li>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
84 <li><p><a href="#win32iis-install">Windows Installation using IIS</a> <a id="line-47"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
85 <a id="line-48"></a></li>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
86 </ul>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
87 <a id="basic-install"></a><p> <a id="line-49"></a><div lang="en" id="Include_HelpOnInstalling/BasicInstallation" dir="ltr">
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
88 <a id="top_Include_HelpOnInstalling/BasicInstallation"></a><a id="line-8"></a><a id="line-9"></a><p><a id="line-10"></a><strong>How to do a basic installation of <a href="http://moinmaster.wikiwikiweb.de/MoinMoin">MoinMoin</a> on your system.</strong> <a id="line-11"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
89 <a id="line-12"></a><p><strong>Contents</strong> <a id="line-13"></a><ol>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
90 <li><a href="#head-2fa431ad9c9bff5badd07c5ee676b19852ed28e3">Check if Python is working</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
91 <li><a href="#head-119b1acf8110bb618e4f366c3d1f8a35ad625f75">Download MoinMoin</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
92 <li><a href="#head-a84e58c8b4256bd645b9c47b5a900219a356259f">Install MoinMoin</a><ol>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
93 <li><a href="#head-640b21abea127e7ac4b48c938607c233b7119bd5">Installing in the default system location</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
94 <li><a href="#head-ae8ab55eb5e8c11d4fd1eb06e12d69f1b33d411b">Installing in the home directory or another specific location</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
95 </ol>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
96 <li><a href="#head-d7d600c8dcfdd9270f4a6642566404ede510f46a">Test installation</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
97 <li><a href="#head-87a60f1d02c36fb1804b442815dba49cbc8adfe7">What has been installed</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
98 </ol>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
99 <a id="line-14"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
100 <a id="line-15"></a><p>Before you can integrate Moin<tt></tt>Moin into your web environment, you have to install the <a href="http://moinmaster.wikiwikiweb.de/MoinMoin">MoinMoin</a> source code and data files using the standard Python <em>distutils</em> mechanism (<tt>setup.py</tt>). This page explains the steps you usually need to take to do this. For more details on the <em>distutils</em> installation process, consult the <a class="external" href="http://www.python.org/doc/current/inst/inst.html">Installing Python Modules</a> document in your Python documentation set. <a id="line-16"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
101 <a id="line-17"></a><p>The installation is similar on Windows and Linux (and other POSIX-type systems; for simplicity, we just say "Linux" in the docs). <a id="line-18"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
102 <a id="line-19"></a><ul>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
103 <li style="list-style-type:none"><p><img src="wiki/htdocs/modern/img/idea.png" alt="(!)" height="15" width="15"> We use text such as <strong><tt>&gt;&nbsp;command&nbsp;arguments</tt></strong> to show what you have to type at the command prompt (also known as shell, terminal, etc.). In our examples "<tt>&gt;&nbsp;</tt>" is the prompt, you don't have to type it in, you have to type what comes after it. Lines that do not begin with "<tt>&gt;&nbsp;</tt>" are the answers to the commands you have typed. Read them carefully. <a id="line-20"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
104 <a id="line-21"></a></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
105 </ul>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
106
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
107 <h1 id="head-2fa431ad9c9bff5badd07c5ee676b19852ed28e3">Check if Python is working</h1>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
108
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
109 <a id="line-22"></a><a id="line-23"></a><p>Moin<tt></tt>Moin needs Python to run, so the first step is to check if an usable version of Python is installed and correctly set-up. If this is not the case, you will have to fix that before you can proceed. <a id="line-24"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
110 <a id="line-25"></a><p>The <tt>CHANGES</tt> file in the Moin<tt></tt>Moin archive mentions what versions are supported. Python 2.3 is the minimum requirement for Moin<tt></tt>Moin 1.5, but we suggest you use the latest Python release version. <a id="line-26"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
111 <a id="line-27"></a><p>You can download Python at <a class="external" href="http://www.python.org/download/">http://www.python.org/download/</a>. <a id="line-28"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
112 <a id="line-29"></a><p>If you are pretty sure an acceptable version of Python is installed but the commands below do not work, this may be because your Python files are not in the <em>search path</em>. Correctly setting the search path is outside the scope of this document; please ask for help on your favorite Python, Linux, or Windows discussion board. <a id="line-30"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
113 <a id="line-31"></a><p>If you have shell access, checking if Python is working is very simple. Just type the following command, and look at the result: <a id="line-32"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
114 <a id="line-33"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
115 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
116 &gt; python -V
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
117 <a id="line-34"></a>Python 2.3.4
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
118 <a id="line-35"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
119 <a id="line-36"></a><a id="line-37"></a><p>If you don't have shell access, you can try using this <tt>pythontest.cgi</tt> script (it assumes that you are using a Linux kind of webserver). Upload the script to your <tt>cgi-bin</tt> directory, use <tt>chmod&nbsp;a+rx&nbsp;pythontest.cgi</tt> (or a similar command in your FTP program) to make it executable, and invoke it using your web browser. <a id="line-38"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
120 <a id="line-39"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
121 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
122 #!/bin/sh
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
123 <a id="line-40"></a>echo Content-Type: text/plain
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
124 <a id="line-41"></a>echo
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
125 <a id="line-42"></a>echo "Your web server is running as:"
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
126 <a id="line-43"></a>id
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
127 <a id="line-44"></a>echo "CGI scripts work"
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
128 <a id="line-45"></a>echo "Now we try to invoke Python interpreters and get their versions:"
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
129 <a id="line-46"></a>python -V 2&gt;&amp;1
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
130 <a id="line-47"></a>python2.3 -V 2&gt;&amp;1
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
131 <a id="line-48"></a>python2.4 -V 2&gt;&amp;1
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
132 <a id="line-49"></a>echo "Finished."
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
133 <a id="line-50"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
134 <a id="line-51"></a><a id="line-52"></a><p>If it doesn't display "CGI scripts work", well, then CGI scripts don't work. If it doesn't show one or more Python version numbers, then Python is not correctly installed. In both cases, before you can proceed, you will have to get in touch with the administrator of the server so that the problems get corrected. <a id="line-53"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
135 <a id="line-54"></a><p>Also be sure to read <a href="http://moinmaster.wikiwikiweb.de/HelpOnInstalling/ApacheOnLinuxFtp">../ApacheOnLinuxFtp</a> after you've completed the <a href="http://moinmaster.wikiwikiweb.de/HelpOnInstalling/BasicInstallation">../BasicInstallation</a> illustrated here. <a id="line-55"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
136 <a id="line-56"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
137 <h1 id="head-119b1acf8110bb618e4f366c3d1f8a35ad625f75">Download MoinMoin</h1>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
138
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
139 <a id="line-57"></a><a id="line-58"></a><p>To download the distribution archive, go to the <a class="external" href="http://sourceforge.net/project/showfiles.php?group_id=8482">download area</a> and fetch the latest archive. <a id="line-59"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
140 <a id="line-60"></a><p>The next step is to unpack the distribution archive (which you have done already if you are reading this text from your hard drive). If you read this on the web, the distribution comes in a versioned <tt>.tar.gz</tt> archive, which you can unpack as shown below. <a id="line-61"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
141 <a id="line-62"></a><ul>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
142 <li><p>On Windows <a id="line-63"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
143 <ul>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
144 <li><p>You can use recent versions of programs like Win<tt></tt>Zip, Win<tt></tt>Rar, and Win<tt></tt>Ace, which handle .tar.gz kind of archives. <a id="line-64"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
145 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
146 <li><p>At the command prompt, you can use <a class="external" href="http://gnuwin32.sourceforge.net/packages/gzip.htm">GNU gzip</a> and <a class="external" href="http://gnuwin32.sourceforge.net/packages/tar.htm">GNU tar</a> for Windows. <a id="line-65"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
147 </li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
148 </ul>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
149 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
150 <li><p>On Linux <a id="line-66"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
151 <ul>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
152 <li><p>You can use your favorite file manager -- it should be able to unpack them. <a id="line-67"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
153 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
154 <li><p>At any shell prompt, you can use the <tt>tar</tt> command. <a id="line-68"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
155 <a id="line-69"></a></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
156 </ul>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
157 </li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
158 </ul>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
159 <p>The distribution archive will always unpack into a directory named <tt>moin-&lt;version&gt;</tt>, for example <tt>moin-1.5</tt>. <a id="line-70"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
160 <a id="line-71"></a><p>Here is how you would unpack the archive (using GNU tar) and enter the directory with the Moin<tt></tt>Moin files: <a id="line-72"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
161 <a id="line-73"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
162 <pre>
137
cfbecd3400d3 make install-docs, intermap, underlay, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 0
diff changeset
163 &gt; tar xzf moin-1.5.0.tar.gz
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
164 <a id="line-74"></a>&gt; cd moin-1.5.0
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
165 <a id="line-75"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
166 <a id="line-76"></a><a id="line-77"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
167 <h1 id="head-a84e58c8b4256bd645b9c47b5a900219a356259f">Install MoinMoin</h1>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
168
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
169 <a id="line-78"></a><a id="line-79"></a><p>You can install Moin<tt></tt>Moin to either: <a id="line-80"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
170 <ul>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
171 <li><p>a system location (if you have the necessary rights to do that -- on Linux you need to be root) <a id="line-81"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
172 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
173 <li><p>some specific location, like your home directory (Linux) or <tt>C:\moin</tt> (Windows). <a id="line-82"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
174 <a id="line-83"></a></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
175 </ul>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
176 <p>The installation to a system location is easier, so choose that if possible. <a id="line-84"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
177 <a id="line-85"></a><p><img src="wiki/htdocs/modern/img/alert.png" alt="/!\" height="15" width="15"> If you have several versions of Python installed, please use the same version for setup and for running the wiki. Usually, the latest Python version will get the best results. <a id="line-86"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
178 <a id="line-87"></a><p>If you have problems with the <tt>setup.py</tt> install step, try using the command: <a id="line-88"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
179 <a id="line-89"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
180 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
181 &gt; python -v setup.py --quiet install --record=install.log
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
182 <a id="line-90"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
183 <a id="line-91"></a><a id="line-92"></a><p>The additional <tt>-v</tt> flag should provide you detailed verbose messages every step of the way. <a id="line-93"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
184 <a id="line-94"></a><p><img src="wiki/htdocs/modern/img/alert.png" alt="/!\" height="15" width="15"> On Linux, if u get an error like <tt>Invalid&nbsp;Python&nbsp;installation:&nbsp;cannot&nbsp;find&nbsp;/usr/lib/Python2.x/config/Makefile</tt>, you may not have the python module <strong><tt>distutils</tt></strong> installed, it's usually a part of the <strong>Python development libarary (<tt>python-dev</tt>)</strong>. Some Linux distributions may not have installed it by default. For example, on Mandrake you need to install the <strong><tt>python-devel</tt></strong> package, on Debian it's called <strong><tt>python-dev</tt></strong>. <a id="line-95"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
185 <a id="line-96"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
186 <h2 id="head-640b21abea127e7ac4b48c938607c233b7119bd5">Installing in the default system location</h2>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
187
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
188 <a id="line-97"></a><a id="line-98"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
189 <a id="line-99"></a><pre>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
190 &gt; python setup.py --quiet install --record=install.log
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
191 <a id="line-100"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
192 <a id="line-101"></a><a id="line-102"></a><p>This installs Moin<tt></tt>Moin to the default system location (typically the Python directory, for example on Linux, inside <tt>/usr/lib</tt> and <tt>/usr/share</tt>). Look at the <tt>install.log</tt> file to see what was installed, and where. <a id="line-103"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
193 <a id="line-104"></a><ul>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
194 <li><p>Mac OS X note: use the command: <a id="line-105"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
195 <a id="line-106"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
196 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
197 python setup.py install --install-data='/usr/local'
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
198 <a id="line-107"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
199 <a id="line-108"></a><p>This will install the shared files to '/usr/local/share/moin', instead of an inconvenient location in the System folder. <a id="line-109"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
200 <a id="line-110"></a></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
201 </ul>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
202
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
203 <h2 id="head-ae8ab55eb5e8c11d4fd1eb06e12d69f1b33d411b">Installing in the home directory or another specific location</h2>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
204
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
205 <a id="line-111"></a><a id="line-112"></a><p>Linux example, installing in the home directory: <a id="line-113"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
206 <a id="line-114"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
207 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
208 &gt; python setup.py --quiet install --prefix=$HOME --record=install.log
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
209 <a id="line-115"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
210 <a id="line-116"></a><a id="line-117"></a><p>Windows example, installing in the <tt>C:\moin</tt> directory: <a id="line-118"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
211 <a id="line-119"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
212 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
213 &gt; python setup.py --quiet install --prefix="C:\moin" --record=install.log
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
214 <a id="line-120"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
215 <a id="line-121"></a><a id="line-122"></a><p>All Moin<tt></tt>Moin files will then be installed inside those directories, see <tt>install.log</tt> to know which files were installed, and where. <a id="line-123"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
216 <a id="line-124"></a><p><strong>Note:</strong> You will likely see the following warning: <a id="line-125"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
217 <a id="line-126"></a><ul>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
218 <li style="list-style-type:none"><p><tt>warning:&nbsp;install:&nbsp;modules&nbsp;installed&nbsp;to&nbsp;'C:\moin\',&nbsp;which</tt><br>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
219 <a id="line-127"></a><tt>is&nbsp;not&nbsp;in&nbsp;Python's&nbsp;module&nbsp;search&nbsp;path&nbsp;(sys.path)&nbsp;--&nbsp;you'll</tt><br>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
220 <a id="line-128"></a><tt>have&nbsp;to&nbsp;change&nbsp;the&nbsp;search&nbsp;path&nbsp;yourself</tt> <a id="line-129"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
221 <a id="line-130"></a></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
222 </ul>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
223 <p>This means exactly what it says, you need to add your install directory to the search path of Python, or it won't find the Moin<tt></tt>Moin code. <a id="line-131"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
224 <a id="line-132"></a><p>For example, if you are running using a webserver and standard CGI, edit <tt>moin.cgi</tt> and add your installation directory to the Python path, like this: <a id="line-133"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
225 <a id="line-134"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
226 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
227 import sys
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
228 <a id="line-135"></a>sys.path.insert(0, 'C:/moin')
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
229 <a id="line-136"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
230 <a id="line-137"></a><a id="line-138"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
231 <h1 id="head-d7d600c8dcfdd9270f4a6642566404ede510f46a">Test installation</h1>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
232
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
233 <a id="line-139"></a><a id="line-140"></a><p>As a final step, if you have access to the shell or the command prompt, you can check that everything is correctly installed and ready to run. Start Python and type <tt>import&nbsp;MoinMoin</tt>. Nothing should be displayed in response to this command. Example: <a id="line-141"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
234 <a id="line-142"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
235 <a id="line-143"></a><pre>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
236 &gt; python
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
237 <a id="line-144"></a>Python 2.3.4 (#1, May 29 2004, 17:05:23)
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
238 <a id="line-145"></a>[GCC 3.3.3] on linux2
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
239 <a id="line-146"></a>Type "help", "copyright", "credits" or "license" for more information.
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
240 <a id="line-147"></a>&gt;&gt;&gt; import MoinMoin
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
241 <a id="line-148"></a>&gt;&gt;&gt;
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
242 <a id="line-149"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
243 <a id="line-150"></a><a id="line-151"></a><p>If you get this instead: <a id="line-152"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
244 <a id="line-153"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
245 <a id="line-154"></a><pre>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
246 &gt;&gt;&gt; import MoinMoin
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
247 <a id="line-155"></a>Traceback (most recent call last):
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
248 <a id="line-156"></a> File "&lt;stdin&gt;", line 1, in ?
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
249 <a id="line-157"></a>ImportError: No module named MoinMoin
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
250 <a id="line-158"></a>&gt;&gt;&gt;
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
251 <a id="line-159"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
252 <a id="line-160"></a><a id="line-161"></a><p>then you have to tune your installation. Try modifying <tt>sys.path</tt>, as described above. <a id="line-162"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
253 <a id="line-163"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
254 <h1 id="head-87a60f1d02c36fb1804b442815dba49cbc8adfe7">What has been installed</h1>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
255
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
256 <a id="line-164"></a><a id="line-165"></a><p>So, you have a ready-to-work Moin<tt></tt>Moin installation now. Congratulations! Before you go on to configuring it, take a look at the various files and directories that have been installed. <a id="line-166"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
257 <a id="line-167"></a><p><img src="wiki/htdocs/modern/img/alert.png" alt="/!\" height="15" width="15"> It is important that you understand the different locations used in a Moin<tt></tt>Moin setup, so read this carefully. <a id="line-168"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
258 <a id="line-169"></a><p>In the following descriptions, <tt>PREFIX</tt> is what you used with the <tt>setup.py</tt> command, or a default location if you didn't use the <tt>--prefix</tt> option. (Typical default values on Linux are <tt>/usr</tt> and <tt>/usr/local</tt>.) <tt>X.Y</tt> is the version of Python. Typically, this is <tt>2.3</tt> or <tt>2.4</tt>. <a id="line-170"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
259 <a id="line-171"></a><p>Look into <tt>install.log</tt> to find out about following important locations: <a id="line-172"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
260 <a id="line-173"></a><ul>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
261 <li><p><strong><tt>MoinMoin</tt> directory</strong>, usually <tt>PREFIX/lib/pythonX.Y/site-packages/MoinMoin</tt> -- this is where the Moin<tt></tt>Moin <strong>source code</strong> is located <a id="line-174"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
262 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
263 <li><p><strong><tt>share</tt> directory</strong>, usually <tt>PREFIX/share/moin</tt> - this is where the <em>templates</em> are located <a id="line-175"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
264 <ul>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
265 <li><p><strong><tt>data</tt></strong> directory (wiki pages, users, etc.) - only Moin<tt></tt>Moin should access this <a id="line-176"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
266 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
267 <li><p><strong><tt>underlay</tt></strong> directory (wiki pages) - only Moin<tt></tt>Moin should access this <a id="line-177"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
268 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
269 <li><p><strong><tt>htdocs</tt></strong> directory with html support files (images for the various themes, etc.) - the web server will need to access this <a id="line-178"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
270 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
271 <li><p><strong><tt>server</tt></strong> - Moin<tt></tt>Moin example startup files (like <tt>moin.cgi</tt> for CGI, and other files for other startup methods) <a id="line-179"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
272 </li>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
273 <li><p><strong><tt>config</tt></strong> - Moin<tt></tt>Moin example configuration files (like <tt>wikiconfig.py</tt>) <a id="line-180"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
274 </li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
275 </ul>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
276 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
277 <li><p><strong><tt>bin</tt></strong> directory with some scripts that help you use the Moin<tt></tt>Moin shell commands <a id="line-181"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
278 <a id="line-182"></a></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
279 </ul>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
280 <p>We talk of <em>templates</em> in the <tt>share</tt> directory because you usually will not use those files at that location, but copy them elsewhere when you need them. This way, you can set-up several wikis without problems, and easily upgrade to new Moin<tt></tt>Moin versions. <a id="line-183"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
281 <a id="bottom_Include_HelpOnInstalling/BasicInstallation"></a>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
282 </div>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
283 <a id="line-50"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
284 <hr class="hr2">
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
285 <p> <a id="line-51"></a><a id="wikiinstance-creation"></a> <a id="line-52"></a><div lang="en" id="Include_HelpOnInstalling/WikiInstanceCreation" dir="ltr">
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
286 <a id="top_Include_HelpOnInstalling/WikiInstanceCreation"></a><a id="line-10"></a><a id="line-11"></a><p>After you have downloaded and installed Moin<tt></tt>Moin, you will want to "have a wiki". As explained at the bottom of <a href="http://moinmaster.wikiwikiweb.de/HelpOnInstalling/BasicInstallation">../BasicInstallation</a>, you have to copy several directories and files. This way, you can have as many wikis as you want, and you can easily upgrade Moin<tt></tt>Moin: only the original files will be overwritten, not your copies. <a id="line-12"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
287 <a id="line-13"></a><p>Every time you copy those files (and modify the configuration of your server accordingly), you create what is called a <em>wiki instance</em>. Each wiki instance is independant from the others, with a different configuration, different pages, different users, etc. <a id="line-14"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
288 <a id="line-15"></a><p>Some of the steps you need to take depend on which web server and which operating system you use. They are described on dedicated pages, which you should read (at least the beginning) before reading this one. Some other steps are common to every webserver and operating system (copying files around, setting permissions), and this is what is described here. <a id="line-16"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
289 <a id="line-17"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
290 <h1 id="head-8c227c275465dec3f8e3b326d53f9566727c5648">Read this first</h1>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
291
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
292 <a id="line-18"></a><a id="line-19"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
293 <h2 id="head-6e91ed0b234e903763a945b5249e7de8b726e5d7">Security warnings</h2>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
294
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
295 <a id="line-20"></a><a id="line-21"></a><div>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
296 <table style="color: red">
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
297 <tr>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
298 <td>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
299 <p> <img src="wiki/htdocs/modern/img/alert.png" alt="/!\" height="15" width="15"> <strong>Warning: make sure that your <tt>data</tt> directory and your configuration files are not accessible through your web server. Do not put your wiki directory in <tt>public_html</tt>, <tt>Sites</tt> or any other directory your web server can access. The web server only needs to access the file in the <tt>htdocs</tt> directory and the <tt>moin.cgi</tt> script! (Or whatever script your server uses to start Moin<tt></tt>Moin.)</strong> </p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
300 </td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
301 </tr>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
302 <a id="line-22"></a></table>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
303 </div>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
304 <a id="line-23"></a><div>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
305 <table style="color: red">
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
306 <tr>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
307 <td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
308 <p> <img src="wiki/htdocs/modern/img/alert.png" alt="/!\" height="15" width="15"> <strong>Warning: make sure that the <tt>data</tt> directory and its subdirectories are not readable and not writeable by users other than the web server user. If you need to give worldwide read-write permissions to get it working, be aware that you are doing a very unsecure setup, that can be compromised by any other user or program on your computer.</strong> </p>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
309 </td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
310 </tr>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
311 <a id="line-24"></a></table>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
312 </div>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
313 <a id="line-25"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
314 <h2 id="head-942d29849126a576afcc19bdbfd59c661739eb55">Note to Windows users</h2>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
315
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
316 <a id="line-26"></a><a id="line-27"></a><p>All the commands below are Linux commands. The text descriptions that introduce them should be enough to help you understand what you need to do. Use the Windows Explorer, or the appropriate text-mode commands. <a id="line-28"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
317 <a id="line-29"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
318 <h1 id="head-66ec28f32e6870e96f6062a4a6ac77bbb4606109">Choose a wiki name</h1>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
319
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
320 <a id="line-30"></a><a id="line-31"></a><p>Choose a unique name for the new wiki instance you want to create. It should be a short word, something that reflects what you intend to use the wiki for, like the name of your organization, of your team, of the project you are working on, etc. <a id="line-32"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
321 <a id="line-33"></a><ul>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
322 <li style="list-style-type:none"><p><img src="wiki/htdocs/modern/img/attention.png" alt="&lt;!&gt;" height="15" width="15"> <strong>Do not use the name "wiki" - it is reserved for internal use. You would need a special setup to use this with CGI, and you can't use it at all with standalone or twisted server.</strong> <a id="line-34"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
323 <a id="line-35"></a></li>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
324 </ul>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
325 <p>The name "<tt>mywiki</tt>" is used as an example in the various commands below. <a id="line-36"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
326 <a id="line-37"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
327 <h1 id="head-379ea73c819b2c729ba9c2432b8a4c4b4c524f71">Choose a location</h1>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
328
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
329 <a id="line-38"></a><a id="line-39"></a><p>Choose a directory on your disk, it will contain all the files needed for your wiki instance. At the beginning, your wiki instance will use approximately 10 MB of disk space. Then of course, it will grow depending on the way your wiki is used. A personal wiki, even with many pages, might only use 30 MB or 40 MB of disk space. A popular wiki, or a wiki with many files attached to the pages, might use much more, of course. <a id="line-40"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
330 <a id="line-41"></a><p>If you are the administrator (or root) of the server, you can use anything you like or that makes sense to you, for example <tt>/usr/local/var/moin</tt>, <tt>/mnt/wikis</tt>, etc. <a id="line-42"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
331 <a id="line-43"></a><p>If you are a simple user, you will probably only be allowed to write in your personal, "home" directory. Choose a subdirectory that makes sense to you, for example the <tt>share/moin</tt> subdirectory. <a id="line-44"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
332 <a id="line-45"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
333 <h1 id="head-951584cdd82db21218fc2ffd3945de602f8275c0">Collect some important information</h1>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
334
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
335 <a id="line-46"></a><a id="line-47"></a><p>This is where the instructions differ according to the web server and operating system you use, and whether you are the administrator or a simple user. See the appropriate pages for your web server and operating system combination. <a id="line-48"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
336 <a id="line-49"></a><p>On Linux, the <tt>export</tt> command will be used to remember the collected information. Windows users should write it down carefully (maybe cutting-and-pasting in a Notepad window), or store it in environment variables if they use the command prompt. <a id="line-50"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
337 <a id="line-51"></a><ul>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
338 <li><p><tt>PREFIX</tt> is the prefix you used during the <a href="http://moinmaster.wikiwikiweb.de/HelpOnInstalling/BasicInstallation">../BasicInstallation</a> <a id="line-52"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
339 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
340 <li><p><tt>SHARE</tt> is the name of the <tt>share</tt> directory, as discussed at the bottom of <a href="http://moinmaster.wikiwikiweb.de/HelpOnInstalling/BasicInstallation">../BasicInstallation</a> <a id="line-53"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
341 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
342 <li><p><tt>WIKILOCATION</tt> is the name of the directory that will contain your wiki instance <a id="line-54"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
343 <a id="line-55"></a></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
344 </ul>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
345 <p>If you are an administrator, you also need to collect the following: <a id="line-56"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
346 <a id="line-57"></a><ul>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
347 <li><p><tt>USER</tt> is the user name of the web server <a id="line-58"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
348 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
349 <li><p><tt>GROUP</tt> is the name of the group to which the web server belongs <a id="line-59"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
350 <a id="line-60"></a></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
351 </ul>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
352 <p>Now, Linux folks, let's store these settings in memory: <a id="line-61"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
353 <a id="line-62"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
354 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
355 &gt; export PREFIX=/usr # this might be something else
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
356 <a id="line-63"></a>&gt; export SHARE=$PREFIX/share/moin # this should be correct for most people
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
357 <a id="line-64"></a>&gt; export WIKILOCATION=$SHARE # this is just an example
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
358 <a id="line-65"></a>&gt; export INSTANCE=mywiki # this is just an example
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
359 <a id="line-66"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
360 <a id="line-67"></a><a id="line-68"></a><p>Administrators also need the following two lines: <a id="line-69"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
361 <a id="line-70"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
362 <a id="line-71"></a><pre>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
363 &gt; export USER=www-data # this is just an example
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
364 <a id="line-72"></a>&gt; export GROUP=www-data # this is just an example
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
365 <a id="line-73"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
366 <a id="line-74"></a><a id="line-75"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
367 <h1 id="head-c3fc33e072973371ea739841440fb52175ddb9f6">Copy the files</h1>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
368
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
369 <a id="line-76"></a><a id="line-77"></a><p>To create your new instance, you first need to create a directory named like your instance, inside the <tt>WIKILOCATION</tt>. Then you need to copy the <tt>data</tt> and <tt>underlay</tt> directories from your <tt>SHARE</tt> directory into your instance directory. Finally, you need to copy the <tt>wikiconfig.py</tt> file from the <tt>config</tt> directory into the instance directory. <a id="line-78"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
370 <a id="line-79"></a><p>Linux folks need just type these commands: <a id="line-80"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
371 <a id="line-81"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
372 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
373 &gt; cd $WIKILOCATION
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
374 <a id="line-82"></a>&gt; mkdir $INSTANCE # make a directory for this instance
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
375 <a id="line-83"></a>&gt; cp -R $SHARE/data $INSTANCE # copy template data directory
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
376 <a id="line-84"></a>&gt; cp -R $SHARE/underlay $INSTANCE # copy underlay data directory
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
377 <a id="line-85"></a>&gt; cp $SHARE/config/wikiconfig.py $INSTANCE # copy wiki configuration sample file
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
378 <a id="line-86"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
379 <a id="line-87"></a><a id="line-88"></a><ul>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
380 <li style="list-style-type:none"><p><img src="wiki/htdocs/modern/img/alert.png" alt="/!\" height="15" width="15"> Note that you just need to keep one underlay directory on your system if you are running multiple wikis (e.g. in a farm.) <a id="line-89"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
381 <a id="line-90"></a></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
382 </ul>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
383
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
384 <h1 id="head-027e3666aea4dc02569ad386901ae9456bad5ae1">Set permissions</h1>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
385
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
386 <a id="line-91"></a><a id="line-92"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
387 <h2 id="head-3b8b040007c209e4621b176c8724b3bbcb755957">Administrators</h2>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
388
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
389 <a id="line-93"></a><a id="line-94"></a><p>Administrators need to restrict the permissions of the files, so that only the web server (and the administrator of course) can read and write them. For maximum security, no other user on the machine should be able to read or write anything in the wiki instance directory. Don't forget that this directory contains sensitive information, notably the (encrypted) passwords of the wiki users. <a id="line-95"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
390 <a id="line-96"></a><p>On Linux, the following commands should be enough: <a id="line-97"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
391 <a id="line-98"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
392 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
393 &gt; chown -R $USER.$GROUP $INSTANCE # check that USER and GROUP are correct
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
394 <a id="line-99"></a>&gt; chmod -R ug+rwX $INSTANCE # USER.GROUP may read and write
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
395 <a id="line-100"></a>&gt; chmod -R o-rwx $INSTANCE # everybody else is rejected
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
396 <a id="line-101"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
397 <a id="line-102"></a><a id="line-103"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
398 <h2 id="head-19c5987edf26a8517fbf6cbee5ba5dd5f36ec280">Normal users</h2>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
399
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
400 <a id="line-104"></a><a id="line-105"></a><p>Normal users, on the contrary, need to broaden the permissions of the files, so that the web server can read and write them. On recent Windows versions, and on some versions of Unix, Linux and other systems, <em>access control lists</em> can be used to that effect. They are, however, powerful and complicated, much beyond the scope of this document. Ask a knowledgeable person about them. <a id="line-106"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
401 <a id="line-107"></a><p>Without them, normal users have to allow <em>everybody</em> to access the instance directory. This is the only way the web server can enter it and do its work. This is, of course, <strong>VERY INSECURE</strong>, since any other user and program on the server can read the directory. You should <strong>not</strong> use such a setup for a wiki open to the public. <a id="line-108"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
402 <a id="line-109"></a><p>On Linux, the following commands will open the instance directory to the whole world: <a id="line-110"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
403 <a id="line-111"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
404 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
405 &gt; chmod -R a+rwX $INSTANCE
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
406 <a id="line-112"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
407 <a id="line-113"></a><a id="line-114"></a><p><strong>Note:</strong> <a id="line-115"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
408 <ul>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
409 <li><p>it is also possible to put the web server and the normal user in the same <em>group</em>, and then only open the instance directory to the members of that group. This is a bit more secure (depending on who else is in the group), but you need the cooperation of the server administrator; he is the one setting up groups. <a id="line-116"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
410 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
411 <li><p>the best other possibility is that the server administrator sets up <tt>suexec</tt> to execute CGI scripts in user directories under the user id of that user. You don't need to give world permissions that way, so it is a quite secure setup, but you also need cooperation of the administrator. <a id="line-117"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
412 <a id="line-118"></a><a id="line-119"></a></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
413 </ul>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
414
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
415 <h1 id="head-442871161f523855f2162b426248f0bb0523c289">Tune configuration</h1>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
416
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
417 <a id="line-120"></a><a id="line-121"></a><p>Now, you need to tune the configuration of your web server and of your wiki instance. Look at the appropriate help page for your web server, then come back here to tune the settings of your wiki instance. <a id="line-122"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
418 <a id="line-123"></a><p>Edit <tt>wikiconfig.py</tt>. The default settings should work fine in most cases, but there are some things that you will probably want to change, like the name and logo of your wiki! <img src="wiki/htdocs/modern/img/smile.png" alt=":)" height="15" width="15"> Read the comments inside <tt>wikiconfig.py</tt>, they will guide you through this process. (Start with "Wiki identity", around line 25.) <a id="line-124"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
419 <a id="line-125"></a><p><a href="http://moinmaster.wikiwikiweb.de/HelpOnConfiguration">HelpOnConfiguration</a> contains all the details about all the options, in case the comments in <tt>wikiconfig.py</tt> are not enough. <a id="line-126"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
420 <a id="bottom_Include_HelpOnInstalling/WikiInstanceCreation"></a>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
421 </div>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
422 <a id="line-53"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
423 <hr class="hr1">
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
424 <p> <a id="line-54"></a><a id="linuxapache-install"></a> <a id="line-55"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
425 <h1>Linux Installation using Apache</h1>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
426
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
427 <div lang="en" id="Include_HelpOnInstalling/ApacheOnLinux" dir="ltr">
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
428 <a id="top_Include_HelpOnInstalling/ApacheOnLinux"></a><a id="line-11"></a><a id="line-12"></a><p>This page describes the particular steps that need to be taken to create a wiki instance using Moin<tt></tt>Moin on Linux with the Apache web server. <strong>You should have already performed the <a href="http://moinmaster.wikiwikiweb.de/HelpOnInstalling/BasicInstallation">../BasicInstallation</a>.</strong> <a id="line-13"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
429 <a id="line-14"></a><p>Two scenarios are possible. You might be the administrator (root) of the server, able to install and modify files almost anywhere on the machine, and notably able to modifiy the Apache configuration. You might also be a simple user, only able to write files into your home directory, and unable to alter the master Apache config file. The two scenarios are discussed below. <a id="line-15"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
430 <a id="line-16"></a><p><strong>Table of contents</strong> <a id="line-17"></a><ol>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
431 <li><a href="#head-5a61f5b0107edba120089e4251cd633be60b6e15">Administrator (root)</a><ol>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
432 <li><a href="#head-c27688fbe7f65d67190a47ce8d32eba244ab0d01">Create a wiki instance</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
433 <li><a href="#head-e3e9e08058bb0ae34c33f53367cd58d6c7411998">Install moin.cgi</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
434 <li><a href="#head-408a7a283b2406c4e6b24646b25ec7996d5ff459">Configure moin.cgi</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
435 <li><a href="#head-b02e2f66403a66cc3b1ff0ce2c7261cf44e4f0d4">Configure Apache</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
436 <li><a href="#head-ffa39b171f9d130bb07a8481a5fff1a5a9065e86">Configure MoinMoin</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
437 <li><a href="#head-0f7a0fb8dccf6a13b6042fa17e0d7cda751fe3f3">Test the wiki</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
438 <li><a href="#head-52920da3312438e6a484347d4dfaa369b86cb521">Apache tricks</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
439 </ol>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
440 <li><a href="#head-e559f024646d8751eee1135ad5423247d72ab7fd">Simple user (home directory installation)</a><ol>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
441 <li><a href="#head-6a39e2829f37fd34c569c2ffa768c9b3ec2289cc">Make sure /~username works</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
442 <li><a href="#head-c27688fbe7f65d67190a47ce8d32eba244ab0d01-2">Create a wiki instance</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
443 <li><a href="#head-ec9ce458a3f08281e5906f6d1e2e5cc008d620db">Install the htdocs files</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
444 <li><a href="#head-e3e9e08058bb0ae34c33f53367cd58d6c7411998-2">Install moin.cgi</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
445 <li><a href="#head-408a7a283b2406c4e6b24646b25ec7996d5ff459-2">Configure moin.cgi</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
446 <li><a href="#head-ffa39b171f9d130bb07a8481a5fff1a5a9065e86-2">Configure MoinMoin</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
447 <li><a href="#head-0f7a0fb8dccf6a13b6042fa17e0d7cda751fe3f3-2">Test the wiki</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
448 </ol>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
449 <li><a href="#head-3f286acb05ce4ad64240f788c78a8f915f59e34e">Troubleshooting</a><ol>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
450 <li><a href="#head-b8c0d1c1aba9cd39d0d15f86ea33025f7f25d48d">Adding permission to serve the htdocs directory</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
451 </ol>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
452 </li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
453 </ol>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
454 <a id="line-18"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
455 <a id="line-19"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
456 <h2 id="head-5a61f5b0107edba120089e4251cd633be60b6e15">Administrator (root)</h2>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
457
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
458 <a id="line-20"></a><a id="line-21"></a><p>Most GNU/Linux distributions come with Apache pre-installed. There is, however, some variation as to where exactly the various Apache files are located. You should consult your distribution manual, or ask on the appropriate discussion board. In the following paragraphs, we assume a (quite standard) file system layout with: <a id="line-22"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
459 <a id="line-23"></a><ul>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
460 <li><p><tt>/etc/httpd/httpd.conf</tt> - the main Apache configuration file <a id="line-24"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
461 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
462 <li><p><tt>/var/log/httpd/error_log</tt> - the log file containing Apache error messages <a id="line-25"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
463 <a id="line-26"></a></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
464 </ul>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
465 <p>Some distributions use <tt>apache</tt> instead of <tt>httpd</tt> for the directory names, others may use weirder settings. <a id="line-27"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
466 <a id="line-28"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
467 <h3 id="head-c27688fbe7f65d67190a47ce8d32eba244ab0d01">Create a wiki instance</h3>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
468
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
469 <a id="line-29"></a><a id="line-30"></a><p>Creating a wiki instance involves copying files around and setting appropriate permissions. Before you can proceed, you need to know what user and group your Apache server runs as. The easiest way to know this is to issue this command: <a id="line-31"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
470 <a id="line-32"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
471 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
472 &gt; egrep "^User|^Group" /etc/httpd/httpd.conf
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
473 <a id="line-33"></a>User wwwrun
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
474 <a id="line-34"></a>Group nogroup
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
475 <a id="line-35"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
476 <a id="line-36"></a><a id="line-37"></a><p>This shows a typical result: "<tt>wwwrun.nogroup</tt>". Other common results are "<tt>nobody.nogroup</tt>" and "<tt>www-data.www-data</tt>". You can of course use your own. What matters is that you know which ones are in use, because you will need them to set file permissions. <a id="line-38"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
477 <a id="line-39"></a><p>Once you have gathered this information, read <a href="http://moinmaster.wikiwikiweb.de/HelpOnInstalling/WikiInstanceCreation">../WikiInstanceCreation</a> and follow the steps described there. <a id="line-40"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
478 <a id="line-41"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
479 <h3 id="head-e3e9e08058bb0ae34c33f53367cd58d6c7411998">Install moin.cgi</h3>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
480
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
481 <a id="line-42"></a><a id="line-43"></a><p>There is one last file you need to copy, the bridge between Apache and Moin<tt></tt>Moin: the CGI script that Apache will call every time a wiki page is requested, and that will in turn invoke all the Moin<tt></tt>Moin components to handle the request. You can actually put this script anywhere you like (all the paths to the files Moin<tt></tt>Moin needs can be configured to match your filesystem layout), but for the sake of simplicity and security, we suggest you follow the instructions below, unless you think you know better. <a id="line-44"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
482 <a id="line-45"></a><p>We will create a <tt>cgi-bin</tt> subdirectory in the instance directory. Using the environment variables defined in <a href="http://moinmaster.wikiwikiweb.de/HelpOnInstalling/WikiInstanceCreation">../WikiInstanceCreation</a>, run the following commands: <a id="line-46"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
483 <a id="line-47"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
484 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
485 &gt; cd $WIKILOCATION/$INSTANCE
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
486 <a id="line-48"></a>&gt; mkdir cgi-bin
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
487 <a id="line-49"></a>&gt; cp $SHARE/server/moin.cgi cgi-bin
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
488 <a id="line-50"></a>&gt; chown -R $USER.$GROUP cgi-bin
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
489 <a id="line-51"></a>&gt; chmod -R ug+rx cgi-bin
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
490 <a id="line-52"></a>&gt; chmod -R o-rwx cgi-bin
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
491 <a id="line-53"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
492 <a id="line-54"></a><a id="line-55"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
493 <h3 id="head-408a7a283b2406c4e6b24646b25ec7996d5ff459">Configure moin.cgi</h3>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
494
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
495 <a id="line-56"></a><a id="line-57"></a><p>When <tt>moin.cgi</tt> is launched, it imports a Moin<tt></tt>Moin module that in turn imports other modules and the configuration file. While the Moin<tt></tt>Moin modules should always be found in a properly configured system (as described in <a href="http://moinmaster.wikiwikiweb.de/HelpOnInstalling/BasicInstallation">../BasicInstallation</a>), it is likely that the configuration file will not be found. Edit the <tt>moin.cgi</tt> script to correct that. Add these lines near the top of the file: <a id="line-58"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
496 <a id="line-59"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
497 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
498 import sys
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
499 <a id="line-60"></a>sys.path.insert(0, '..')
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
500 <a id="line-61"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
501 <a id="line-62"></a><a id="line-63"></a><p>You can also use the absolute name of the directory that contains the <tt>wikiconfig.py</tt> file instead of <tt>'..'</tt>. <a id="line-64"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
502 <a id="line-65"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
503 <h3 id="head-b02e2f66403a66cc3b1ff0ce2c7261cf44e4f0d4">Configure Apache</h3>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
504
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
505 <a id="line-66"></a><a id="line-67"></a><p>Now that every file is in place and properly locked down (as far as the filesystem is concerned), we need to configure Apache so that it offers access to the right files, and no others. However, since the default Apache configuration varies a lot according to the distribution you use, and since administrators often make important additions and changes to it, we cannot give exact instructions that cover all cases. Instead, we will first describe roughly what needs to be done, and then give a few specific lines that you should add at the appropriate place in your Apache config. <a id="line-68"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
506 <a id="line-69"></a><p>Your Apache should be set up so that: <a id="line-70"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
507 <a id="line-71"></a><ul>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
508 <li><p>Access to your instance directory is denied (sane Apache installations should actually deny access to the whole server, and then only allow a few specific directories). <a id="line-72"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
509 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
510 <li><p>An alias is set up to redirect requests from <tt>/wiki/</tt> (in the URL) to the <tt>htdocs</tt> directory (in the <tt>share</tt> directory, as discussed at the bottom of <a href="http://moinmaster.wikiwikiweb.de/HelpOnInstalling/BasicInstallation">../BasicInstallation</a>) <a id="line-73"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
511 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
512 <li><p>A script alias is set up to redirect requests from whatever you want (we suggest you use your instance name, for example <tt>/mywiki</tt>) to the CGI script you just copied. <a id="line-74"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
513 <a id="line-75"></a></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
514 </ul>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
515 <p>The following commands will add two lines at the bottom of your Apache config file. These lines only cover the last two items listed above. You have to check the first one by yourself (there is too much variation in Linux distributions). Note that you may have to move the two lines to the appropriate place in your config file -- maybe near other similar lines. <a id="line-76"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
516 <a id="line-77"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
517 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
518 &gt; echo "" &gt;&gt;/etc/httpd/httpd.conf
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
519 <a id="line-78"></a>&gt; echo "Alias /wiki/ \"$SHARE/htdocs/\"" &gt;&gt;/etc/httpd/httpd.conf
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
520 <a id="line-79"></a>&gt; echo "ScriptAlias /mywiki \"$WIKILOCATION/$INSTANCE/cgi-bin/moin.cgi\"" &gt;&gt;/etc/httpd/httpd.conf
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
521 <a id="line-80"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
522 <a id="line-81"></a><a id="line-82"></a><p>You only need to define the alias for <tt>htdocs</tt> once. You need to define a different script alias for each wiki instance you intend to run. <a id="line-83"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
523 <a id="line-84"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
524 <h3 id="head-ffa39b171f9d130bb07a8481a5fff1a5a9065e86">Configure MoinMoin</h3>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
525
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
526 <a id="line-85"></a><a id="line-86"></a><p>Finally, check that the <tt>wikiconfig.py</tt> file in the instance directory contains correct paths for the htdocs prefix, the instance data directory, and the instance underlay directory. You can use relative paths for the directories, but note that they are relative to the CGI script, not the configuration file! You can also use absolute paths, and save yourself some headaches. <a id="line-87"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
527 <a id="line-88"></a><p>Here are the settings you should have in the config file if you followed all our suggestions: <a id="line-89"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
528 <a id="line-90"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
529 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
530 data_dir = '../data/'
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
531 <a id="line-91"></a> data_underlay_dir = '../underlay/'
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
532 <a id="line-92"></a> url_prefix = '/wiki'
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
533 <a id="line-93"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
534 <a id="line-94"></a><a id="line-95"></a><p>There are other settings you will likely want to alter, look at the bottom of <a href="http://moinmaster.wikiwikiweb.de/HelpOnInstalling/WikiInstanceCreation">../WikiInstanceCreation</a> for more details about them. <a id="line-96"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
535 <a id="line-97"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
536 <h3 id="head-0f7a0fb8dccf6a13b6042fa17e0d7cda751fe3f3">Test the wiki</h3>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
537
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
538 <a id="line-98"></a><a id="line-99"></a><p>Everything should work fine now. It is time to <strong>restart the Apache server</strong> (usually with "<tt>/etc/init.d/apache&nbsp;restart</tt>", sometimes with "<tt>apachectl&nbsp;restart</tt>") and perform the following steps: <a id="line-100"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
539 <a id="line-101"></a><ul>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
540 <li><p>Run the <em>Moin<tt></tt>Moin CGI Diagnosis</em>: connect to "<tt>http://127.0.0.1/mywiki?action=test</tt>" (or the name and port you have defined in the Apache configuration file). Verify that the displayed information is correct. Check that the directories listed under <em>Checking directories...</em> are <em>OK</em>. <a id="line-102"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
541 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
542 <li><p>Access your new wiki with the URL "<tt>http://127.0.0.1/mywiki/</tt>" (or the name and port you have defined in the Apache configuration file). You should see the Front<tt></tt>Page. <a id="line-103"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
543 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
544 <li><p>If this is the case, try to edit it and save your changes. <a id="line-104"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
545 </li>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
546 <li><p>If that works, see if your edit is reflected on the Recent<tt></tt>Changes page. <a id="line-105"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
547 </li>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
548 <li><p>If you see them, congratulations, your new wiki works! <img src="wiki/htdocs/modern/img/smile.png" alt=":)" height="15" width="15"> <a id="line-106"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
549 <a id="line-107"></a></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
550 </ul>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
551 <p>If something goes wrong, have a look at Troubleshooting, at the bottom of this page. <a id="line-108"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
552 <a id="line-109"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
553 <h3 id="head-52920da3312438e6a484347d4dfaa369b86cb521">Apache tricks</h3>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
554
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
555 <a id="line-110"></a><a id="line-111"></a><p>For more advanced configuration and some tricks see <a href="http://moinmaster.wikiwikiweb.de/HelpMiscellaneous">HelpMiscellaneous</a>. <a id="line-112"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
556 <a id="line-113"></a><a id="line-114"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
557 <h2 id="head-e559f024646d8751eee1135ad5423247d72ab7fd">Simple user (home directory installation)</h2>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
558
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
559 <a id="line-115"></a><a id="line-116"></a><p>On machines shared by many people, simple users typically have no access to the root account, cannot modify the <tt>httpd.conf</tt> file, and cannot copy files into the system-wide <tt>cgi-bin</tt> and <tt>htdocs</tt> directories. In that case, Apache can be set up so that each user can host a web site in the home directory of his or her shell account, using the <tt>UserDir</tt> directive. If the machine administrator decides to use it, all URLs that start with "<tt>/~username</tt>" will be redirected to a directory in the users' home directories, where they have write permission and can install Moin<tt></tt>Moin. <a id="line-117"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
560 <a id="line-118"></a><p>As an example, we will consider the case of a user named "<tt>mm</tt>". Of course, wherever you see "<tt>mm</tt>" below, you will replace it with your own username. <a id="line-119"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
561 <a id="line-120"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
562 <h3 id="head-6a39e2829f37fd34c569c2ffa768c9b3ec2289cc">Make sure /~username works</h3>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
563
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
564 <a id="line-121"></a><a id="line-122"></a><p>The home directory installation can only work if the administrator (root) has allowed it. So, the first step is of course to check that it works. Typically, Apache is set up so that the <tt>public_html</tt> subdirectory in the home directory is used as the web site root. So, the first first step is to check if that directory exists. <a id="line-123"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
565 <a id="line-124"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
566 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
567 &gt; ls -ld ~/public_html
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
568 <a id="line-125"></a>drwxr-xr-x 2 mm users 4096 Nov 30 00:29 public_html
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
569 <a id="line-126"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
570 <a id="line-127"></a><a id="line-128"></a><p>If the directory does not exist, create it, and be sure it can be read and entered by the web server. <a id="line-129"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
571 <a id="line-130"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
572 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
573 &gt; mkdir public_html
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
574 <a id="line-131"></a>&gt; chmod a+rx public_html
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
575 <a id="line-132"></a>&gt; ls -ld ~/public_html
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
576 <a id="line-133"></a>drwxr-xr-x 2 mm users 4096 Nov 30 00:35 public_html
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
577 <a id="line-134"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
578 <a id="line-135"></a><a id="line-136"></a><p>Now, check if the "<tt>/~mm</tt>" URL works: <a id="line-137"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
579 <a id="line-138"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
580 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
581 &gt; lynx -error_file=/dev/stderr -dump http://localhost/~mm/ &gt;/dev/null
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
582 <a id="line-139"></a>URL=http://localhost/~mm/ (GET)
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
583 <a id="line-140"></a>STATUS=HTTP/1.1 200 OK
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
584 <a id="line-141"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
585 <a id="line-142"></a><a id="line-143"></a><p>If you get a "<tt>200&nbsp;OK</tt>" response code, then it works, and you can go on to the next check. If you get a "<tt>403&nbsp;Forbidden</tt>" or a "<tt>404&nbsp;Not&nbsp;Found</tt>" response, then maybe something is wrong with your directory, or maybe the whole thing has not been enabled by your administrator. <a id="line-144"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
586 <a id="line-145"></a><ul>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
587 <li><p>Check the permissions for your home directory (<tt>~</tt>) and your <tt>public_html</tt> directory. The first one should at least end with "<tt>--x</tt>", and the second one, as we saw above, with "<tt>r-x</tt>". <a id="line-146"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
588 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
589 <li><p>It also possible that the administrator has set up another name for the personal web site directory. "<tt>public_html</tt>" is just the usual default, but anything can actually be used. There is no way to know, you have to ask the administrator (root). <a id="line-147"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
590 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
591 <li><p>Finally, if the personal web site feature is disabled, maybe you can ask the administrator to enable it? <a id="line-148"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
592 <a id="line-149"></a></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
593 </ul>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
594 <p>Once you have checked you can read the files in the directory, you need to check that you are also able to execute CGI scripts in that directory. Use the following commands to create a simple CGI script in the appropriate location: <a id="line-150"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
595 <a id="line-151"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
596 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
597 &gt; mkdir -p ~/public_html/cgi-bin
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
598 <a id="line-152"></a>&gt; cat &gt; ~/public_html/cgi-bin/test.cgi
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
599 <a id="line-153"></a>#!/bin/sh
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
600 <a id="line-154"></a>echo Content-Type: text/plain
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
601 <a id="line-155"></a>echo
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
602 <a id="line-156"></a>echo "CGI scripts work"
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
603 <a id="line-157"></a>&lt;CTRL-D&gt;
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
604 <a id="line-158"></a>&gt; chmod a+rx ~/public_html/cgi-bin/test.cgi
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
605 <a id="line-159"></a>&gt; lynx -dump http://localhost/~jh/cgi-bin/test.cgi
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
606 <a id="line-160"></a>CGI scripts work
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
607 <a id="line-161"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
608 <a id="line-162"></a><a id="line-163"></a><p>If you get anything else than "<tt>CGI&nbsp;scripts&nbsp;work</tt>", then something went wrong. Check the directory permissions as above, try other names (or ask about them). The sad truth might be that you are not allowed to execute CGI scripts. You would then have to ask the administrator (root) for that permission. <a id="line-164"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
609 <a id="line-165"></a><p>Once you get it, you can set up your wiki instance in the <tt>public_html</tt> directory. <img src="wiki/htdocs/modern/img/smile.png" alt=":)" height="15" width="15"> <a id="line-166"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
610 <a id="line-167"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
611 <h3 id="head-c27688fbe7f65d67190a47ce8d32eba244ab0d01-2">Create a wiki instance</h3>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
612
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
613 <a id="line-168"></a><a id="line-169"></a><p>Creating a wiki instance involves copying files around and setting appropriate permissions. Read <a href="http://moinmaster.wikiwikiweb.de/HelpOnInstalling/WikiInstanceCreation">../WikiInstanceCreation</a> and follow the steps described there. <a id="line-170"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
614 <a id="line-171"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
615 <h3 id="head-ec9ce458a3f08281e5906f6d1e2e5cc008d620db">Install the htdocs files</h3>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
616
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
617 <a id="line-172"></a><a id="line-173"></a><p>The web server needs to access these files, so we need to copy them in the "<tt>public_html</tt>" directory. Just use this: <a id="line-174"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
618 <a id="line-175"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
619 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
620 &gt; cd ~/public_html
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
621 <a id="line-176"></a>&gt; cp -R ~/share/moin/htdocs wiki
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
622 <a id="line-177"></a>&gt; chmod -R a+rX wiki
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
623 <a id="line-178"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
624 <a id="line-179"></a><a id="line-180"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
625 <h3 id="head-e3e9e08058bb0ae34c33f53367cd58d6c7411998-2">Install moin.cgi</h3>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
626
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
627 <a id="line-181"></a><a id="line-182"></a><p>There is one last file you need to copy, the bridge between Apache and Moin<tt></tt>Moin: the CGI script that Apache will call every time a wiki page is requested, and that will in turn invoke all the Moin<tt></tt>Moin components to handle the request. You need to put this file in a directory for which CGI scripts execution is enabled. By default, this should work: <a id="line-183"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
628 <a id="line-184"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
629 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
630 &gt; cd ~/public_html
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
631 <a id="line-185"></a>&gt; mkdir cgi-bin
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
632 <a id="line-186"></a>&gt; cp $SHARE/server/moin.cgi cgi-bin
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
633 <a id="line-187"></a>&gt; chmod -R a+rx cgi-bin
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
634 <a id="line-188"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
635 <a id="line-189"></a><a id="line-190"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
636 <h3 id="head-408a7a283b2406c4e6b24646b25ec7996d5ff459-2">Configure moin.cgi</h3>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
637
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
638 <a id="line-191"></a><a id="line-192"></a><p>When <tt>moin.cgi</tt> is launched, it imports a Moin<tt></tt>Moin module (that in turn imports other modules and the configuration file). Since everything has been installed in your home directory, it is likely none of these will be found. Edit the <tt>moin.cgi</tt> script to correct that. Add these lines near the top of the file: <a id="line-193"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
639 <a id="line-194"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
640 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
641 import sys
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
642 <a id="line-195"></a>sys.path.insert(0, '/home/mm/lib/python2.3')
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
643 <a id="line-196"></a>sys.path.insert(0, '/home/mm/lib/python2.3/site-packages')
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
644 <a id="line-197"></a>sys.path.insert(0, '/home/mm/share/moin/mywiki')
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
645 <a id="line-198"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
646 <a id="line-199"></a><a id="line-200"></a><p>Of course, you need to adapt the paths to your situation. The first two lines should help locate the Moin<tt></tt>Moin modules, the last one should help locate the <tt>wikiconfig.py</tt> file. <a id="line-201"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
647 <a id="line-202"></a><p><strong>Note:</strong> You might also need to edit the first line of the file, to point to the correct version of Python. The default should be fine, but a line like "<tt>#!&nbsp;/usr/bin/python2.3</tt>" might help you if the default does not work. <a id="line-203"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
648 <a id="line-204"></a><p><strong>Note 2:</strong> In this file there is a line reading <tt>request&nbsp;=&nbsp;RequestCGI()</tt>. If you have a complex mod_rewrite case, you might want to add <tt>properties&nbsp;=&nbsp;{'script_name':&nbsp;'/mywiki'}&nbsp;</tt> in the parenthesis. This will let <a href="http://moinmaster.wikiwikiweb.de/MoinMoin">MoinMoin</a> generate URLs that start with <tt>/mywiki</tt> and not the path that the webserver passed to <a href="http://moinmaster.wikiwikiweb.de/MoinMoin">MoinMoin</a>. <a id="line-205"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
649 <a id="line-206"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
650 <h3 id="head-ffa39b171f9d130bb07a8481a5fff1a5a9065e86-2">Configure MoinMoin</h3>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
651
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
652 <a id="line-207"></a><a id="line-208"></a><p>Finally, check that the <tt>wikiconfig.py</tt> file in the instance directory contains correct paths for the htdocs directory, the instance data directory, and the instance underlay directory. You can use relative paths for the directories, but note that they are relative to the CGI script, not the configuration file! You can also use absolute paths, and save yourself some headaches. <a id="line-209"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
653 <a id="line-210"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
654 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
655 data_dir = '/home/mm/share/moin/mywiki/data/'
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
656 <a id="line-211"></a> data_underlay_dir = '/home/mm/share/moin/mywiki/underlay/'
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
657 <a id="line-212"></a> url_prefix = '/~mm/wiki'
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
658 <a id="line-213"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
659 <a id="line-214"></a><a id="line-215"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
660 <h3 id="head-0f7a0fb8dccf6a13b6042fa17e0d7cda751fe3f3-2">Test the wiki</h3>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
661
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
662 <a id="line-216"></a><a id="line-217"></a><p>Everything should work fine, now. It is time to perform the following steps: <a id="line-218"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
663 <a id="line-219"></a><ul>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
664 <li><p>Run the <em>Moin<tt></tt>Moin CGI Diagnosis</em>: <tt>&gt;&nbsp;lynx&nbsp;-dump&nbsp;http://localhost/~mm/cgi-bin/moin.cgi?action=test</tt> <a id="line-220"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
665 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
666 <li><p>If it worked, try to access your new-born wiki with the URL "<tt>http://127.0.0.1/~mm/cgi-bin/moin.cgi</tt>". You should see the Front<tt></tt>Page. <a id="line-221"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
667 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
668 <li><p>If this is the case, try to edit it and save your changes. <a id="line-222"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
669 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
670 <li><p>If that works, see if your edit is reflected on the Recent<tt></tt>Changes page. <a id="line-223"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
671 </li>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
672 <li><p>If you see them, congratulations, you have a new wiki! <img src="wiki/htdocs/modern/img/smile.png" alt=":)" height="15" width="15"> <a id="line-224"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
673 <a id="line-225"></a></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
674 </ul>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
675 <p>If something goes wrong, have a look at Troubleshooting, below. <a id="line-226"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
676 <a id="line-227"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
677 <h2 id="head-3f286acb05ce4ad64240f788c78a8f915f59e34e">Troubleshooting</h2>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
678
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
679 <a id="line-228"></a><a id="line-229"></a><p>See also <a href="http://moinmaster.wikiwikiweb.de/HelpOnInstalling/TroubleShooting">../TroubleShooting</a> for generic stuff. <a id="line-230"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
680 <a id="line-231"></a><p>The first thing to do when your wiki does not work as expected is to issue the command "<tt>tail&nbsp;/var/log/httpd/error_log</tt>" to display the most recent errors. Usually, you will get a hint on what went wrong, like missing file system permissions. <a id="line-232"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
681 <a id="line-233"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
682 <h3 id="head-b8c0d1c1aba9cd39d0d15f86ea33025f7f25d48d">Adding permission to serve the htdocs directory</h3>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
683
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
684 <a id="line-234"></a><a id="line-235"></a><p>In some (sane) Linux distributions (like SuSE 9.0) serving directories other than the document-root "<tt>/srv/www/htdocs</tt>" with Apache is switched off by default for security reasons in "<tt>/etc/httpd/httpd.conf</tt>" (or for Apache2 "<tt>/etc/apache2/httpd.conf</tt>"): <a id="line-236"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
685 <a id="line-237"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
686 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
687 # forbid access to the entire filesystem by default
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
688 <a id="line-238"></a>&lt;Directory /&gt;
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
689 <a id="line-239"></a> Options None
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
690 <a id="line-240"></a> AllowOverride None
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
691 <a id="line-241"></a> Order deny,allow
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
692 <a id="line-242"></a> Deny from all
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
693 <a id="line-243"></a>&lt;/Directory&gt;
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
694 <a id="line-244"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
695 <a id="line-245"></a><a id="line-246"></a><p>To allow Apache to serve directories outside of the document root you have to add these lines to "<tt>/etc/httpd/httpd.conf</tt>" (in SuSE it is recommended to create a new "<tt>http.conf.local</tt>" and include this file in "<tt>/etc/sysconfig/apache2</tt>"): <a id="line-247"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
696 <a id="line-248"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
697 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
698 Alias /wiki/ "/usr/share/moin/htdocs/"
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
699 <a id="line-249"></a>&lt;Directory "/usr/share/moin/htdocs/"&gt;
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
700 <a id="line-250"></a> Order deny,allow
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
701 <a id="line-251"></a> Allow from all
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
702 <a id="line-252"></a>&lt;/Directory&gt;
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
703 <a id="line-253"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
704 <a id="line-254"></a>ScriptAlias /mywiki "/usr/share/moin/mywiki/cgi-bin/moin.cgi"
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
705 <a id="line-255"></a>&lt;Directory "/usr/share/moin/mywiki/cgi-bin"&gt;
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
706 <a id="line-256"></a> Order deny,allow
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
707 <a id="line-257"></a> Allow from all
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
708 <a id="line-258"></a>&lt;/Directory&gt;
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
709 <a id="line-259"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
710 <a id="line-260"></a><a id="line-261"></a><p>Of course, you need to adapt the paths to your particular situation. <a id="line-262"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
711 <a id="bottom_Include_HelpOnInstalling/ApacheOnLinux"></a>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
712 </div>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
713 <a id="line-56"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
714 <hr class="hr2">
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
715 <p> <a id="line-57"></a><a id="fastcgi-install"></a> <a id="line-58"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
716 <h1>FastCGI Setup using Apache</h1>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
717
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
718 <div lang="en" id="Include_HelpOnInstalling/ApacheWithFastCgi" dir="ltr">
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
719 <a id="top_Include_HelpOnInstalling/ApacheWithFastCgi"></a><a id="line-10"></a><a id="line-11"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
720 <h2 id="head-6839f37b445b94c0c179f023498969fb53e3d925">Using MoinMoin with apache + mod_fastcgi</h2>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
721
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
722 <a id="line-12"></a><a id="line-13"></a><p><a class="external" href="http://fastcgi.com">FastCGI</a> is a method which enables apache to communicate <a id="line-14"></a>with long-running scripts. This has the advantage that the script is only <a id="line-15"></a>started and initialized one time, and that data could be cached in memory <a id="line-16"></a>from request to request, enhancing the performance of the CGI application. <a id="line-17"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
723 <a id="line-18"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
724 <h3 id="head-a37ae17ad8fb640605fa790fcef7b8cbf0b29353">Deploying MoinMoin with apache + mod_fastcgi</h3>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
725
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
726 <a id="line-19"></a><a id="line-20"></a><p>To deploy <a href="http://moinmaster.wikiwikiweb.de/MoinMoin">MoinMoin</a> using FastCGI you need an apache with mod_fastcgi. Please <a id="line-21"></a>refer to the documentation of mod_fastcgi how to build it. <a id="line-22"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
727 <a id="line-23"></a><p>Follow the basic apache installation for your operating system as described <a id="line-24"></a>in other parts of the <a href="http://moinmaster.wikiwikiweb.de/MoinMoin">MoinMoin</a> installation documentation. This is <a href="http://moinmaster.wikiwikiweb.de/HelpOnInstalling/ApacheOnLinux">HelpOnInstalling/ApacheOnLinux</a> in most cases. In places where <a id="line-25"></a>the documentation refers to <tt>moin.cgi</tt> you use <tt>moin.fcg</tt> instead. Be sure <a id="line-26"></a>that <strong>.fcg</strong> is handled by the FastCGI module <a id="line-27"></a>(<tt>AddHandler&nbsp;fastcgi-script&nbsp;.fcg</tt> in your apache config). <a id="line-28"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
728 <a id="line-29"></a><p>Normally apache will start CGI scripts with its own user and group, or <a id="line-30"></a>with the user and group of the VirtualHost if you are using the suexec <a id="line-31"></a>wrapper. To enable this with FastCGI you need to use <tt>FastCgiWrapper&nbsp;On</tt> <a id="line-32"></a>in your apache config (see FastCGI Documentation). <a id="line-33"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
729 <a id="line-34"></a><p>Be sure to restart your apache after you changed py files (i.e. the config) <a id="line-35"></a>for a running FastCGI server, or you won't see any changes! <a id="line-36"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
730 <a id="line-37"></a><a id="line-38"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
731 <h3 id="head-cd07429ac863a0a4bf393f5936fbccbffe17e9b4">Running as an external application and/or on Windows</h3>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
732
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
733 <a id="line-39"></a><a id="line-40"></a><p><img src="wiki/htdocs/modern/img/alert.png" alt="/!\" height="15" width="15"> Experimental. <a id="line-41"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
734 <a id="line-42"></a><p><a href="http://moinmaster.wikiwikiweb.de/MoinMoin">MoinMoin</a> can be run as an external application that answers FastCGI request via a local TCP/IP socket. This works on Windows as well. All you need to do (after having installed <tt>mod_fastcgi</tt> and a working <a href="http://moinmaster.wikiwikiweb.de/MoinMoin">MoinMoin</a> instance) is this: <a id="line-43"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
735 <a id="line-44"></a><ol type="1">
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
736 <li><p>Select a port number for the internal communication. It should be larger than 1023. For this example, we chose 8888 (just for fun). <a id="line-45"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
737 <a id="line-46"></a></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
738 <li class="gap"><p>Add the following lines to your httpd.conf:
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
739 <a id="line-47"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
740 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
741 Alias /moin.fcg "/your/path/to/moin.fcg"
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
742 <a id="line-48"></a>FastCgiExternalServer "/your/path/to/moin.fcg" -host localhost:8888
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
743 <a id="line-49"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
744 <a id="line-50"></a><a id="line-51"></a></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
745 <li class="gap"><p>Edit <tt>moin.fcg</tt>. Replace
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
746 <a id="line-52"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
747 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
748 fcg = thfcgi.THFCGI(handle_request)
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
749 <a id="line-53"></a></pre>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
750 <p> with
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
751 <a id="line-54"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
752 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
753 fcg = thfcgi.THFCGI(handle_request, 0, 8888)
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
754 <a id="line-55"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
755 <a id="line-56"></a><a id="line-57"></a></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
756 <li class="gap"><p>Start the file <tt>moin.fcg</tt> manually like a Python script:
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
757 <a id="line-58"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
758 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
759 python moin.fcg
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
760 <a id="line-59"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
761 <a id="line-60"></a><a id="line-61"></a></li>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
762 <li class="gap"><p>Start Apache. <a id="line-62"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
763 <a id="line-63"></a></li>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
764 <li class="gap"><p>Enjoy <a href="http://moinmaster.wikiwikiweb.de/MoinMoin">MoinMoin</a> running with FastCGI support! <a id="line-64"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
765 <a id="line-65"></a></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
766 </ol>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
767
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
768 <h3 id="head-4f0ae2079d5166e93d946467cf44f193f0c8e571">Add a safe fallback</h3>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
769
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
770 <a id="line-66"></a><a id="line-67"></a><p>Install and test <a href="http://moinmaster.wikiwikiweb.de/MoinMoin">MoinMoin</a> according to <a href="http://moinmaster.wikiwikiweb.de/HelpOnInstalling/ApacheOnLinux">HelpOnInstalling/ApacheOnLinux</a>. Then make and test the changes to run mod_fastcgi. If you are satisfied, you can add the following block to your apache config: <a id="line-68"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
771 <a id="line-69"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
772 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
773 &lt;IfModule !mod_fastcgi.c&gt;
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
774 <a id="line-70"></a> ScriptAlias /mywiki "/your/path/to/moin.cgi"
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
775 <a id="line-71"></a>&lt;/IfModule&gt;
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
776 <a id="line-72"></a>&lt;IfModule mod_fastcgi.c&gt;
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
777 <a id="line-73"></a> AddHandler fastcgi-script .fcg
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
778 <a id="line-74"></a> ScriptAlias /mywiki "/your/path/to/moin.fcg"
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
779 <a id="line-75"></a>&lt;/IfModule&gt;
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
780 <a id="line-76"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
781 <a id="line-77"></a><p>Now Apache will use mod_fastcgi if available and otherwise use the slow cgi script. <a id="line-78"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
782 <a id="bottom_Include_HelpOnInstalling/ApacheWithFastCgi"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
783 </div>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
784 <a id="line-59"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
785 <hr class="hr2">
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
786 <p> <a id="line-60"></a><a id="modpy-install"></a> <a id="line-61"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
787 <h1>mod_python Setup using Apache</h1>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
788
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
789 <div lang="en" id="Include_HelpOnInstalling/ApacheWithModPython" dir="ltr">
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
790 <a id="top_Include_HelpOnInstalling/ApacheWithModPython"></a><a id="line-10"></a><a id="line-11"></a><ol>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
791 <li><a href="#head-4e6235e8e3535359b4aa9df9722961dfd62a685a">Why Use mod_python</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
792 <li><a href="#head-52f515a2448d32357136b23a188dd227330baeb2">Basic configuring</a><ol>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
793 <li><a href="#head-8cd6758d1fcc77b433f6584bcc34e24469568d75">Install mod_python</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
794 <li><a href="#head-671adcfb8441deb9daa6ba877d59cc69d5e9d25e">Set up a wiki instance</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
795 <li><a href="#head-08923628c7a5b449b5f210251334c431791adec9">Edit `wikiconfig.py`</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
796 <li><a href="#head-b628477f88ab294636a22af4ee665656a8897b3a">Changes to Apache `httpd.conf`</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
797 </ol>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
798 <li><a href="#head-2dba68d0d0ad069f1c4a2a46bcdbd07cb21d3887">Solving problems for non-root-mounted wikis</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
799 <li><a href="#head-e7e935fbfb5a81ceb0698ef82b5b7a897aa5e157">Configuring root wiki</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
800 <li><a href="#head-53a11a51ff1c262df8f1f287084f8700685446d4">Older mod_python versions</a><ol>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
801 <li><a href="#head-7b2283d5184932488fe551b2cee08e28fb18230c">Use a wrapper script</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
802 <li><a href="#head-f2a32b29f0aff0101a91c87d692d063a6e0a4ec2">Fix mod_python</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
803 </ol>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
804 <li><a href="#head-17313e33f7320af70773f484730b290d86b62ee5">Troubleshooting</a></li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
805 </ol>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
806 <p> <a id="line-12"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
807 <a id="line-13"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
808 <h1 id="head-4e6235e8e3535359b4aa9df9722961dfd62a685a">Why Use mod_python</h1>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
809
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
810 <a id="line-14"></a><a id="line-15"></a><p><a class="external" href="http://modpython.org/">mod_python</a> embeds the python interpreter into <a id="line-16"></a>the apache server. This saves initialization time and the need of <a id="line-17"></a>forking cgi scripts. It doesn't have the ability to run as different <a id="line-18"></a>users. It will always run as the main apache user and group. Be sure <a id="line-19"></a>that your wiki data files are accessible and writable by your apache <a id="line-20"></a>server. <a id="line-21"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
811 <a id="line-22"></a><p><img src="wiki/htdocs/modern/img/attention.png" alt="&lt;!&gt;" height="15" width="15"> The basic configuration is suitable for mod_python 3.1.3 and later. If you use older version, see the section "Older mod_python versions" <a id="line-23"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
812 <a id="line-24"></a><p><img src="wiki/htdocs/modern/img/attention.png" alt="&lt;!&gt;" height="15" width="15"> mod_python will cause your apache processes to increase their <a id="line-25"></a>memory requirements considerably - especially as apache runs many <a id="line-26"></a>separate processes which will each need to have their own copy of the <a id="line-27"></a>python code and data in the process memory space. You may find that <a id="line-28"></a>FastCGI, as detailed in <a href="http://moinmaster.wikiwikiweb.de/HelpOnInstalling/ApacheWithFastCgi">HelpOnInstalling/ApacheWithFastCgi</a> is rather <a id="line-29"></a>more efficient in this respect. <a id="line-30"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
813 <a id="line-31"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
814 <h1 id="head-52f515a2448d32357136b23a188dd227330baeb2">Basic configuring</h1>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
815
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
816 <a id="line-32"></a><a id="line-33"></a><ol type="1">
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
817 <li><p>Install mod_python <a id="line-34"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
818 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
819 <li><p>Set up a wiki instance <a id="line-35"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
820 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
821 <li><p>Edit <tt>wikiconfig.py</tt> <a id="line-36"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
822 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
823 <li><p>Changes to Apache <tt>httpd.conf</tt> <a id="line-37"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
824 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
825 <li><p>Restart Apache <a id="line-38"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
826 <a id="line-39"></a></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
827 </ol>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
828 <p>The sample configurations below are for a wiki instance called <tt>mywiki</tt> installed in a directory <tt>/var/www/moin/mywiki</tt> with the main <a href="http://moinmaster.wikiwikiweb.de/MoinMoin">MoinMoin</a> installation installed in python's default site library path. The wiki appears as URL <tt>/mywiki</tt> under the server - ie <tt>http://my.ser.ver/mywiki</tt>. You will need to change these to reflect your installation. <a id="line-40"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
829 <a id="line-41"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
830 <h2 id="head-8cd6758d1fcc77b433f6584bcc34e24469568d75">Install mod_python</h2>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
831
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
832 <a id="line-42"></a><a id="line-43"></a><p>Most people will just add a <tt>mod_python</tt> package to their current operating system installation. If you are building from source then you should consult the <a class="external" href="http://modpython.org/live/current/doc-html/">mod_python documentation</a>. <a id="line-44"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
833 <a id="line-45"></a><p>The mod_python installation should have added some lines to the Apache configuration file - either in the file itself or in an included configuration file (for example on Red Hat or Fedora linux the mod_python configuration is in <tt>/etc/httpd/conf.d/python.conf</tt>). <a id="line-46"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
834 <a id="line-47"></a><p>Make sure you have this line in <tt>httpd.conf</tt> or mod_python will not work: <a id="line-48"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
835 <a id="line-49"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
836 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
837 LoadModule python_module modules/mod_python.so
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
838 <a id="line-50"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
839 <a id="line-51"></a><a id="line-52"></a><p>After this restart Apache and make sure that it starts successfully, and that the error log has a line similar to this:- <a id="line-53"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
840 <a id="line-54"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
841 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
842 [Sat Jan 01 15:40:49 2005] [notice] mod_python: Creating 4 session mutexes based on 150 max processes and 0 max threads.
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
843 <a id="line-55"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
844 <a id="line-56"></a><a id="line-57"></a><p>You may need to change some environment variables on (eg) FreeBSD - this is detailed in the port installation message. <a id="line-58"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
845 <a id="line-59"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
846 <h2 id="head-671adcfb8441deb9daa6ba877d59cc69d5e9d25e">Set up a wiki instance</h2>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
847
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
848 <a id="line-60"></a><a id="line-61"></a><p>This is done as shown in <a href="http://moinmaster.wikiwikiweb.de/HelpOnInstalling/WikiInstanceCreation">WikiInstanceCreation</a>. Its recommended to first configure the wiki with cgi and check that it works, then change the configuratin to use mod_python. This allows you be sure that any problems are in the mod_python transition rather than the basic <a href="http://moinmaster.wikiwikiweb.de/MoinMoin">MoinMoin</a> installation. <a id="line-62"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
849 <a id="line-63"></a><ol type="1">
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
850 <li><p>Copy moin.cgi into your wiki directory <a id="line-64"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
851 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
852 <li><p>Configure <tt>httpd.conf</tt> as cgi first: <a id="line-65"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
853 <ul>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
854 <li style="list-style-type:none">
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
855 <a id="line-66"></a><pre>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
856 Alias /wiki/ "/usr/share/moin/htdocs/"
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
857 <a id="line-67"></a>ScriptAlias /mywiki "/var/www/moin/mywiki/moin.cgi"
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
858 <a id="line-68"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
859 <a id="line-69"></a><a id="line-70"></a></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
860 </ul>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
861 </li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
862 </ol>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
863 <p>Restart Apache and make test that your wiki works. <a id="line-71"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
864 <a id="line-72"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
865 <h2 id="head-08923628c7a5b449b5f210251334c431791adec9">Edit `wikiconfig.py`</h2>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
866
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
867 <a id="line-73"></a><a id="line-74"></a><p>Make sure you use only absolute paths - relative paths will not work! <a id="line-75"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
868 <a id="line-76"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
869 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
870 data_dir = '/var/www/moin/mywiki/data/'
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
871 <a id="line-77"></a>data_underlay_dir = '/var/www/moin/mywiki/underlay/'
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
872 <a id="line-78"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
873 <a id="line-79"></a><a id="line-80"></a><p>If you do not want to use absolute paths, you can use Python's os module to construct the relative paths: <a id="line-81"></a></p>
137
cfbecd3400d3 make install-docs, intermap, underlay, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 0
diff changeset
874 <pre>
cfbecd3400d3 make install-docs, intermap, underlay, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 0
diff changeset
875 import os
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
876 <a id="line-82"></a>data_dir = os.path.join(os.path.dirname(__file__), 'data/')
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
877 <a id="line-83"></a>data_underlay_dir = os.path.join(os.path.dirname(__file__), 'underlay/')
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
878 <a id="line-84"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
879 <a id="line-85"></a><a id="line-86"></a><p>Test that the wiki works after this change. <a id="line-87"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
880 <a id="line-88"></a><ul>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
881 <li style="list-style-type:none"><p><img src="wiki/htdocs/modern/img/idea.png" alt="(!)" height="15" width="15"> In 1.2 and earlyer, the configuration file is called <tt>moin_config.py</tt>. <a id="line-89"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
882 <a id="line-90"></a></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
883 </ul>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
884
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
885 <h2 id="head-b628477f88ab294636a22af4ee665656a8897b3a">Changes to Apache `httpd.conf`</h2>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
886
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
887 <a id="line-91"></a><a id="line-92"></a><p>After your wiki is running as cgi script, convert it to run with mod_python. <a id="line-93"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
888 <a id="line-94"></a><p>If you run your wiki as cgi as we recommended before, remove or comment the <a class="nonexistent" href="http://moinmaster.wikiwikiweb.de/ScriptAlias">ScriptAlias</a> directive: <a id="line-95"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
889 <a id="line-96"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
890 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
891 #ScriptAlias /mywiki "/var/www/moin/mywiki/moin.cgi"
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
892 <a id="line-97"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
893 <a id="line-98"></a><a id="line-99"></a><p>Add a <tt>Location</tt> directive: <a id="line-100"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
894 <a id="line-101"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
895 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
896 &lt;Location /mywiki&gt;
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
897 <a id="line-102"></a> SetHandler python-program
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
898 <a id="line-103"></a> # Add the path of your wiki directory
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
899 <a id="line-104"></a> PythonPath "['/var/www/moin/mywiki'] + sys.path"
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
900 <a id="line-105"></a> PythonHandler MoinMoin.request::RequestModPy.run
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
901 <a id="line-106"></a>&lt;/Location&gt;
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
902 <a id="line-107"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
903 <a id="line-108"></a><a id="line-109"></a><p>If you have multiple <a href="http://moinmaster.wikiwikiweb.de/MoinMoin">MoinMoin</a> instances then add one location directive for each one (changing the paths as appropriate) and add a line with the directive <tt>PythonInterpreter&nbsp;mywiki</tt> to each Location section. With this directive different subinterpreters with completely separate namespaces will be used for each wiki (see <a class="external" href="http://modpython.org/live/current/doc-html/pyapi-interps.html">here</a> for details). <a id="line-110"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
904 <a id="line-111"></a><p>If you did not install <a href="http://moinmaster.wikiwikiweb.de/MoinMoin">MoinMoin</a> in the default location, you will have to add the path to <a href="http://moinmaster.wikiwikiweb.de/MoinMoin">MoinMoin</a> to the system path: <a id="line-112"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
905 <a id="line-113"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
906 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
907 PythonPath "['/var/www/moin/mywiki', '/prefix/lib/python2.x/site-packages'] + sys.path"
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
908 <a id="line-114"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
909 <a id="line-115"></a><a id="line-116"></a><p>Restart Apache - everything should now work correctly. <a id="line-117"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
910 <a id="line-118"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
911 <h1 id="head-2dba68d0d0ad069f1c4a2a46bcdbd07cb21d3887">Solving problems for non-root-mounted wikis</h1>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
912
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
913 <a id="line-119"></a><a id="line-120"></a><ul>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
914 <li style="list-style-type:none"><p><img src="wiki/htdocs/modern/img/alert.png" alt="/!\" height="15" width="15"> If your wiki does not have a root URL (like <tt>http://www.example.com/FrontPage</tt>), then you might need to follow the next steps: <a id="line-121"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
915 <a id="line-122"></a></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
916 </ul>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
917 <p>On some installations, mod_python hands <a href="http://moinmaster.wikiwikiweb.de/MoinMoin">MoinMoin</a> incorrect script_name and path_info. It usually happens when using the Apache Location directive, with a wiki in an arbitary path: <a id="line-123"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
918 <a id="line-124"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
919 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
920 &lt;Location /farm/mywiki&gt;
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
921 <a id="line-125"></a> ...
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
922 <a id="line-126"></a>&lt;/Location&gt;
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
923 <a id="line-127"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
924 <a id="line-128"></a><p>This will not work, because its not clear what is the script name, since with location setup, there is no real script. <a id="line-129"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
925 <a id="line-130"></a><p>To solve this problem, use a <tt>PythonOption</tt> directive: <a id="line-131"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
926 <a id="line-132"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
927 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
928 &lt;Location /farm/mywiki&gt;
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
929 <a id="line-133"></a> # Location value must match the Apache Location value!
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
930 <a id="line-134"></a> PythonOption Location /farm/mywiki
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
931 <a id="line-135"></a> ...
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
932 <a id="line-136"></a>&lt;/Location&gt;
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
933 <a id="line-137"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
934 <a id="line-138"></a><ul>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
935 <li style="list-style-type:none"><p><img src="wiki/htdocs/modern/img/idea.png" alt="(!)" height="15" width="15"> New in release 1.3.5 <a id="line-139"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
936 <a id="line-140"></a></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
937 </ul>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
938
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
939 <h1 id="head-e7e935fbfb5a81ceb0698ef82b5b7a897aa5e157">Configuring root wiki</h1>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
940
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
941 <a id="line-141"></a><a id="line-142"></a><p>You may wish to have your wiki appearing at the root of your webserver - for example so that <tt>http://wiki.example.com/</tt> will map to your wiki rather than having to use <tt>http://wiki.example.com/mywiki/</tt>. This requires a slightly different form of configuration using <tt>mod_rewrite</tt> - this is a standard module of recent Apache distributions, and is often enabled by default. <a id="line-143"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
942 <a id="line-144"></a><p>You need to set up your wiki instance as described above, and also copy <tt>moinmodpy.py</tt> from the Moin installation directory to the wiki instance directory (<tt>/var/www/moin/mywiki</tt> in these examples). <a id="line-145"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
943 <a id="line-146"></a><p>The Apache configuration needs <tt>mod_rewrite</tt> enabled - so the line <a id="line-147"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
944 <a id="line-148"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
945 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
946 LoadModule rewrite_module modules/mod_rewrite.so
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
947 <a id="line-149"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
948 <a id="line-150"></a><p>should appear in the first part of the <tt>httpd.conf</tt> configuration file. <a id="line-151"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
949 <a id="line-152"></a><p>The wiki and virtual host configuration sould look like this:- <a id="line-153"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
950 <a id="line-154"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
951 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
952 &lt;VirtualHost *:80&gt;
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
953 <a id="line-155"></a> ServerAdmin postmaster@example.com
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
954 <a id="line-156"></a> DocumentRoot /var/www/html
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
955 <a id="line-157"></a> ServerName wiki.example.com
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
956 <a id="line-158"></a> Alias /wiki/ "/usr/share/moin/htdocs/"
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
957 <a id="line-159"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
958 <a id="line-160"></a> # Rewrite urls
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
959 <a id="line-161"></a> RewriteEngine On
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
960 <a id="line-162"></a> RewriteLogLevel 0
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
961 <a id="line-163"></a> # map /wiki static files to Moin htdocs
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
962 <a id="line-164"></a> RewriteRule ^/wiki/(.*)$ /usr/share/moin/htdocs/$1 [last]
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
963 <a id="line-165"></a> # map everything else to server script
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
964 <a id="line-166"></a> RewriteRule ^(.*)$ /var/www/moin/mywiki/moinmodpy.py$1
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
965 <a id="line-167"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
966 <a id="line-168"></a> &lt;Directory "/var/www/moin/testwiki"&gt;
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
967 <a id="line-169"></a> # Modpy stuff
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
968 <a id="line-170"></a> AddHandler python-program .py
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
969 <a id="line-171"></a> # Add the path to the wiki directory, where
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
970 <a id="line-172"></a> # moinmodpy.py and wikiconfig.py are located.
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
971 <a id="line-173"></a> PythonPath "['/var/www/moin/mywiki'] + sys.path"
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
972 <a id="line-174"></a> PythonHandler moinmodpy
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
973 <a id="line-175"></a> &lt;/Directory&gt;
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
974 <a id="line-176"></a>&lt;/VirtualHost&gt;
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
975 <a id="line-177"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
976 <a id="line-178"></a><a id="line-179"></a><p>Apache should be restarted, and the FrontPage of <tt>mywiki</tt> should now appear at <tt>http://wiki.example.com/</tt>. <a id="line-180"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
977 <a id="line-181"></a><p>Other ways of handling root level wikis with Apache are detailed in the appropriately named <a href="http://moinmaster.wikiwikiweb.de/HelpOnConfiguration/ApacheVoodoo">HelpOnConfiguration/ApacheVoodoo</a>. <a id="line-182"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
978 <a id="line-183"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
979 <h1 id="head-53a11a51ff1c262df8f1f287084f8700685446d4">Older mod_python versions</h1>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
980
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
981 <a id="line-184"></a><a id="line-185"></a><p>mod_python versions 2.7.10, 3.0.4 and 3.1.2b have a bug in <tt>apache.resolve_object</tt>. This bug was reported to the mod_python <a id="line-186"></a>maintainers and has been fixed in the 3.1.3 release. The best fix for this is to update to the current release. However if you are unable to do this there are 2 possible solutions: <a id="line-187"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
982 <a id="line-188"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
983 <h2 id="head-7b2283d5184932488fe551b2cee08e28fb18230c">Use a wrapper script</h2>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
984
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
985 <a id="line-189"></a><a id="line-190"></a><p><a href="http://moinmaster.wikiwikiweb.de/MoinMoin">MoinMoin</a> come with a <tt>moinmodpy.py</tt> wrapper script, and this could be used by changing the <tt>PythonPath</tt> and <tt>PythonHandler</tt> directives as shown in the <tt>moinmodpy.htaccess</tt> file. The wrapper was named <tt>moin_modpy.py</tt> in <a href="http://moinmaster.wikiwikiweb.de/MoinMoin">MoinMoin</a> 1.2. <a id="line-191"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
986 <a id="line-192"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
987 <h2 id="head-f2a32b29f0aff0101a91c87d692d063a6e0a4ec2">Fix mod_python</h2>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
988
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
989 <a id="line-193"></a><p>mod_python has a small resolver bug in versions 2.7.10, 3.0.4 and 3.1.2b. <a id="line-194"></a>The method <tt>resolve_object</tt> in <tt>mod_python/apache.py</tt> checks the wrong <a id="line-195"></a>object, and so the lookup for <tt>RequestModPy.run</tt> fails. <a id="line-196"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
990 <a id="line-197"></a><p>To fix it you need to change the method <tt>resolve_object</tt> (around line 551 for <a id="line-198"></a>mod_python 3.1.2b) from <a id="line-199"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
991 <a id="line-200"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
992 <a id="line-201"></a><pre>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
993 if silent and not hasattr(module, obj_str):
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
994 <a id="line-202"></a> return None
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
995 <a id="line-203"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
996 <a id="line-204"></a><a id="line-205"></a><p>to <a id="line-206"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
997 <a id="line-207"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
998 <a id="line-208"></a><pre>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
999 if silent and not hasattr(obj, obj_str):
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1000 <a id="line-209"></a> return None
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1001 <a id="line-210"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1002 <a id="line-211"></a><a id="line-212"></a><a id="line-213"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1003 <h1 id="head-17313e33f7320af70773f484730b290d86b62ee5">Troubleshooting</h1>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1004
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1005 <a id="line-214"></a><a id="line-215"></a><p>Page access gives apache error:: <a id="line-216"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1006 <ul>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1007 <li style="list-style-type:none"><p><tt>PythonHandler&nbsp;MoinMoin.request::RequestModPy.run:&nbsp;OSError:&nbsp;[Errno&nbsp;2]&nbsp;No&nbsp;such&nbsp;file&nbsp;or&nbsp;directory:&nbsp;'data/user'</tt> <a id="line-217"></a>This appears to be caused by you not having an absolute path for <tt>data_dir</tt> in <tt>moin_config.py</tt>. There are several other lines of error traceback preceding this one in the apache error log. Fix the path in <tt>moin_config.py</tt>. <a id="line-218"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1008 </li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1009 </ul>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1010 <a id="bottom_Include_HelpOnInstalling/ApacheWithModPython"></a>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1011 </div>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1012 <a id="line-62"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1013 <hr class="hr2">
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1014 <p> <a id="line-63"></a><a id="twisted-install"></a> <a id="line-64"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1015 <h1>Setup using Twisted</h1>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1016
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1017 <div lang="en" id="Include_HelpOnInstalling/TwistedWeb" dir="ltr">
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1018 <a id="top_Include_HelpOnInstalling/TwistedWeb"></a><a id="line-10"></a><a id="line-11"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1019 <h1 id="head-aadc9ea90352d5b5ad5745583f12238abc07f6b1">Using MoinMoin with Twisted</h1>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1020
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1021 <a id="line-12"></a><a id="line-13"></a><p><a class="external" href="http://twistedmatrix.com">Twisted</a> is a standalone python framework for many kinds of applications. <a id="line-14"></a>For <a href="http://moinmaster.wikiwikiweb.de/MoinMoin">MoinMoin</a>, we use Twisted as a python web server that just imports <a href="http://moinmaster.wikiwikiweb.de/MoinMoin">MoinMoin</a> persistently. <a id="line-15"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1022 <a id="line-16"></a><p>This has the advantage that the Python interpreter and all Python scripts (including Twisted itself and also <a href="http://moinmaster.wikiwikiweb.de/MoinMoin">MoinMoin</a>) is only loaded and initialized one time, and that data can be cached in memory from request to request, enhancing the performance of <a href="http://moinmaster.wikiwikiweb.de/MoinMoin">MoinMoin</a>. <a id="line-17"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1023 <a id="line-18"></a><p>Another advantage is that this is all based on Python. <img src="wiki/htdocs/modern/img/smile4.png" alt=";)" height="15" width="15"> <a id="line-19"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1024 <a id="line-20"></a><p>First do <a href="http://moinmaster.wikiwikiweb.de/HelpOnInstalling/BasicInstallation">../BasicInstallation</a> and <a href="http://moinmaster.wikiwikiweb.de/HelpOnInstalling/WikiInstanceCreation">../WikiInstanceCreation</a>. <a id="line-21"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1025 <a id="line-22"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1026 <h2 id="head-781019b7b4433e2b39a07387d381c1ca28eb9134">Install Twisted</h2>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1027
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1028 <a id="line-23"></a><a id="line-24"></a><p>First, install Twisted (see URL above). Many Linux distributions have Twisted packages. Please refer to the documentation of Twisted for installation information. <a id="line-25"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1029 <a id="line-26"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1030 <h2 id="head-f377d8187c2c46a84ee4a6ae292b323853a6ae0c">Configuring the Twisted server</h2>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1031
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1032 <a id="line-27"></a><a id="line-28"></a><p>Copy the file <tt>wiki/server/mointwisted.py</tt> to your wiki directory. Edit and adapt the settings to your needs. <a id="line-29"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1033 <a id="line-30"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1034 <h3 id="head-6cf160dca6339d0a63474b5e9d1c94115980d292">System path configuration</h3>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1035
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1036 <a id="line-31"></a><a id="line-32"></a><p>If you did a standard install, and you are not a developer, you probably want to skip this section. Otherwise, you might want to add the path to moin and config file, like that: <a id="line-33"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1037 <a id="line-34"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1038 <a id="line-35"></a><pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1039 sys.path.insert(0, '/path/to/moin')
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1040 <a id="line-36"></a>sys.path.insert(0, '/path/to/wikiconfig')
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1041 <a id="line-37"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1042 <a id="line-38"></a><a id="line-39"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1043 <h3 id="head-a51f43e6a56656fb4ff7b17d487afc09442427b5">Config class options</h3>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1044
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1045 <a id="line-40"></a><a id="line-41"></a><p>If you did a standard install, the default options might be just what you need. Check and change what you like: <a id="line-42"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1046 <a id="line-43"></a><div>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1047 <table>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1048 <tr>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1049 <td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1050 <p> <strong>Option</strong> </p>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1051 </td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1052 <td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1053 <p> <strong>Default</strong> </p>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1054 </td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1055 <td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1056 <p> <strong>Comment</strong> </p>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1057 </td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1058 </tr>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1059 <a id="line-44"></a><tr>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1060 <td>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1061 <p> docs </p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1062 </td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1063 <td>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1064 <p> '/usr/share/moin/wiki/htdocs' </p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1065 </td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1066 <td>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1067 <p> Path to moin shared files </p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1068 </td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1069 </tr>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1070 <a id="line-45"></a><tr>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1071 <td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1072 <p> user </p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1073 </td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1074 <td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1075 <p> 'www-data' </p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1076 </td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1077 <td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1078 <p> If you run as root, the server will run as this user </p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1079 </td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1080 </tr>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1081 <a id="line-46"></a><tr>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1082 <td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1083 <p> group </p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1084 </td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1085 <td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1086 <p> 'www-data' </p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1087 </td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1088 <td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1089 <p> If you run as root, the server will run as this group </p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1090 </td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1091 </tr>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1092 <a id="line-47"></a><tr>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1093 <td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1094 <p> port </p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1095 </td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1096 <td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1097 <p> 8080 </p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1098 </td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1099 <td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1100 <p> Port to serve. To serve a privileged port below 1024 you will have to run as root </p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1101 </td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1102 </tr>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1103 <a id="line-48"></a><tr>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1104 <td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1105 <p> interfaces </p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1106 </td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1107 <td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1108 <p> <tt>['']</tt> </p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1109 </td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1110 <td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1111 <p> A list of interfaces the server will listen to. If the list contains the entry <tt>''</tt> (like for the default configuration), all other entries are ignored and the server will listen to all interfaces. </p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1112 </td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1113 </tr>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1114 <a id="line-49"></a><tr>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1115 <td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1116 <p> logPath </p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1117 </td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1118 <td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1119 <p> 'mointwisted.log' </p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1120 </td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1121 <td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1122 <p> Log file. </p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1123 </td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1124 </tr>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1125 <a id="line-50"></a><tr>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1126 <td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1127 <p> profiler </p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1128 </td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1129 <td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1130 <p> commented python code </p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1131 </td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1132 <td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1133 <p> Useful only if you are a moin developer. </p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1134 </td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1135 </tr>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1136 <a id="line-51"></a></table>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1137 </div>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1138 <a id="line-52"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1139 <h2 id="head-e4c385b7866dfc82bdf390d00038d1e191cd6870">Configuring wikiconfig.py</h2>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1140
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1141 <a id="line-53"></a><a id="line-54"></a><p>The sample config file should be just fine. <a id="line-55"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1142 <a id="line-56"></a><div>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1143 <table>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1144 <tr>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1145 <td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1146 <p> <strong>Option</strong> </p>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1147 </td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1148 <td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1149 <p> <strong>Default</strong> </p>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1150 </td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1151 <td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1152 <p> <strong>Comment</strong> </p>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1153 </td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1154 </tr>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1155 <a id="line-57"></a><tr>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1156 <td>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1157 <p> url_prefix </p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1158 </td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1159 <td>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1160 <p> '/wiki' </p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1161 </td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1162 <td>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1163 <p> You should not change this, or images and css file will not be available to the wiki! </p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1164 </td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1165 </tr>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1166 <a id="line-58"></a></table>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1167 </div>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1168 <a id="line-59"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1169 <h2 id="head-828a44c0e867e6f0fb60395a972cb6003658f76f">Starting the server on Unix</h2>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1170
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1171 <a id="line-60"></a><a id="line-61"></a><p>On GNU/Linux, Mac OS X or another POSIX-like OS, copy <tt>wiki/server/mointwisted</tt> to your wiki directory. You might want to adapt <tt>PYTHONPATH</tt> and the path to <tt>twistd</tt>. <a id="line-62"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1172 <a id="line-63"></a><p>Start the server with <tt>./mointwisted&nbsp;start</tt> and test your wiki at <a class="www" href="http://localhost:8080/">http://localhost:8080/</a>. Stop the server with <tt>./mointwisted&nbsp;stop</tt>. <a id="line-64"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1173 <a id="line-65"></a><p>For more options run <tt>./mointwisted</tt> without arguments. <a id="line-66"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1174 <a id="line-67"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1175 <h2 id="head-0457c39c25e65945e29141fa8f207afe318806fe">Starting the server on Windows</h2>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1177 <a id="line-68"></a><a id="line-69"></a><p>Copy <tt>wiki/server/mointwisted.cmd</tt> to your wiki directory. You might have to change the path pointing to the python-scripts directory. <a id="line-70"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1178 <a id="line-71"></a><p>Double click <tt>mointwisted.cmd</tt> to start the server. It will create a new terminal window. To stop the server, close the terminal window. <a id="line-72"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1179 <a id="bottom_Include_HelpOnInstalling/TwistedWeb"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1180 </div>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1181 <a id="line-65"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1182 <hr class="hr2">
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1183 <p> <a id="line-66"></a><a id="linuxstandalone-install"></a> <a id="line-67"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1184 <h1>Linux Installation using standalone server</h1>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1185
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1186 <div lang="en" id="Include_HelpOnInstalling/StandaloneServer" dir="ltr">
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1187 <a id="top_Include_HelpOnInstalling/StandaloneServer"></a><a id="line-11"></a><p><strong>Installing and configuring standalone server</strong> <a id="line-12"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1188 <a id="line-13"></a><p>See also: <a href="http://moinmaster.wikiwikiweb.de/HelpOnConfiguration/IntegratingWithApache">HelpOnConfiguration/IntegratingWithApache</a> <a id="line-14"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1189 <a id="line-15"></a><p>The standalone server is especially made for local wikis because it does not need a web server installed. Only Python and Moin are necessary! <a id="line-16"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1190 <a id="line-17"></a><p>To install and run the standalone server: <a id="line-18"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1191 <ol type="1">
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1192 <li><p>If <a href="http://moinmaster.wikiwikiweb.de/MoinMoin">MoinMoin</a> is not installed yet, preform <a href="http://moinmaster.wikiwikiweb.de/HelpOnInstalling/BasicInstallation">../BasicInstallation</a> <a id="line-19"></a></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1193 </li>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1194 <li><p>Create a wiki instance as described in <a href="http://moinmaster.wikiwikiweb.de/HelpOnInstalling/WikiInstanceCreation">../WikiInstanceCreation</a> <a id="line-20"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1195 </li>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1196 <li><p>Copy <tt>moin.py</tt> to your wiki directory, where your <tt>wikiconfig.py</tt> is <a id="line-21"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1197 </li>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1198 <li><p>If you installed with <tt>--prefix</tt> option, you must edit moin.py and set <tt>docs</tt> to the correct path. <a id="line-22"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1199 </li>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1200 <li><p>Run <tt>moin.py</tt> <a id="line-23"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1201 </li>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1202 <li><p>Access your wiki at <a class="www" href="http://localhost:8000/">http://localhost:8000/</a> <a id="line-24"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1203 <a id="line-25"></a></li>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1204 </ol>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1205 <p>On most cases, the default settings will be just fine. You many want to edit <tt>moin.py</tt> and change some of the options, as described in the next section. <a id="line-26"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1206 <a id="line-27"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1207 <h1 id="head-b104ff56fc1c89199447f1f2756b65995534e032">Configuring moin.py</h1>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1208
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1209 <a id="line-28"></a><a id="line-29"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1210 <h2 id="head-5d2a2fc430a567acd72fcaa712af23333abca0df">System path configuration</h2>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1211
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1212 <a id="line-30"></a><a id="line-31"></a><p>If you did a standard install, and you are not a developer, you probably want to skip this section. If not, you might want to add the path to moin and config file, like that: <a id="line-32"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1213 <a id="line-33"></a>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1214 <a id="line-34"></a><pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1215 import sys
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1216 <a id="line-35"></a>sys.path.insert(0, '/path/to/moin')
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1217 <a id="line-36"></a>sys.path.insert(0, '/path/to/wikiconfig')
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1218 <a id="line-37"></a></pre>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1219 <a id="line-38"></a><a id="line-39"></a><a id="options"></a><p> <a id="line-40"></a></p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1220
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1221 <h2 id="head-3cb7180f429490b9735cfc083869eaaa128ed64c">Config class options</h2>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1222
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1223 <a id="line-41"></a><a id="line-42"></a><div>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1224 <table>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1225 <tr>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1226 <td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1227 <p> <strong>Option</strong> </p>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1228 </td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1229 <td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1230 <p> <strong>Default</strong> </p>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1231 </td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1232 <td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1233 <p> <strong>Comment</strong> </p>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1234 </td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
1235 </tr>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1236 <a id="line-43"></a><tr>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1237 <td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1238 <p> name </p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1239 </td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1240 <td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1241 <p> <tt>'moin'</tt> </p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1242 </td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1243 <td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1244 <p> Server name, used by default for log and pid files. <img src="wiki/htdocs/modern/img/idea.png" alt="(!)" height="15" width="15"> New in 1.5 </p>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1245 </td>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1246 </tr>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
1247 <a id="line-44"></a><tr>