annotate docs/INSTALL.html @ 394:4d58b19bd3a7

make underlay install-docs interwiki imported from: moin--main--1.5--patch-398
author Thomas Waldmann <tw@waldmann-edv.de>
date Sat, 21 Jan 2006 20:48:49 +0000
parents 89d0a178964a
children 8eefc299cf06
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 <title>MoinMoin/InstallDocs - MoinMaster</title>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
9 <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
10
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
11
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
12 <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
13 <link rel="stylesheet" type="text/css" charset="utf-8" media="all" href="wiki/htdocs/modern/css/print.css">
228
d456b1c48b09 make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 209
diff changeset
14 <link rel="stylesheet" type="text/css" charset="utf-8" media="screen" href="http://moinmaster.wikiwikiweb.de/wiki/master.css">
0
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">
196
d0250ed0cd53 make interwiki underlay install-docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 176
diff changeset
16
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
17 <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
18 <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
19 <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
20 <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
21 <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
22 <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
23 <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
24 <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
25 </head>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
26
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
27 <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
28 <div id="page" lang="en" dir="ltr">
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
29 <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
30 <ul id="pagelocation">
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
31 <li>MoinMoin/InstallDocs</li>
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
32 </ul>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
33 <div lang="en" id="content" dir="ltr">
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
34 <span id="top" class="anchor"></span><span id="line-9" class="anchor"></span><span id="line-10" class="anchor"></span><p>This HTML page contains the basic install docs that can be found on <a class="http" 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. <span id="line-11" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
35 <span id="line-12" class="anchor"></span><p>After following the procedures on this page, you should have a working wiki and can browse the rest of the online docs there. <span id="line-13" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
36 <span id="line-14" class="anchor"></span>
209
345d0228a0bd make interwiki install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 196
diff changeset
37 <h1 id="head-378d73a512870e1afed036c887489ab98ba3c56a">How to install your own MoinMoin Wiki</h1>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
38
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
39 <span id="line-15" class="anchor"></span><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>. <span id="line-16" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
40 <span id="line-17" class="anchor"></span><p>A Moin<tt></tt>Moin installation is done by some elementary steps: <span id="line-18" class="anchor"></span></p>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
41 <ul>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
42 <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. <span id="line-19" class="anchor"></span></p>
196
d0250ed0cd53 make interwiki underlay install-docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 176
diff changeset
43 </li>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
44 <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. <span id="line-20" class="anchor"></span></p>
228
d456b1c48b09 make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 209
diff changeset
45 </li>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
46 <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. <span id="line-21" class="anchor"></span></p>
228
d456b1c48b09 make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 209
diff changeset
47 </li>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
48 <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. <span id="line-22" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
49 </li>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
50 <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. <span id="line-23" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
51 </li>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
52 <li><p><a href="#trouble-shooting">Trouble-shooting</a> helps with fixing any general problems you might encounter, which apply to any installation platform. <span id="line-24" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
53 <span id="line-25" class="anchor"></span></li>
196
d0250ed0cd53 make interwiki underlay install-docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 176
diff changeset
54 </ul>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
55 <span id="installscenarios" class="anchor"></span><p> <span id="line-26" class="anchor"></span></p>
209
345d0228a0bd make interwiki install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 196
diff changeset
56
345d0228a0bd make interwiki install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 196
diff changeset
57 <h1 id="head-bee4ae5a5ef44b7af47ecd4f29b44226ba935e5b">Installation steps specific for some web servers and operating systems</h1>
345d0228a0bd make interwiki install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 196
diff changeset
58
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
59 <span id="line-27" class="anchor"></span><span id="line-28" class="anchor"></span><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: <span id="line-29" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
60 <span id="line-30" class="anchor"></span><p>Linux: <span id="line-31" class="anchor"></span></p>
196
d0250ed0cd53 make interwiki underlay install-docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 176
diff changeset
61 <ul>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
62 <li><p><a href="#linuxapache-install">Linux Installation using Apache</a> <span id="line-32" class="anchor"></span></p>
228
d456b1c48b09 make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 209
diff changeset
63 </li>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
64 <li><p><a href="#linuxstandalone-install">Linux Installation using standalone server</a> <span id="line-33" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
65 <span id="line-34" class="anchor"></span></li>
228
d456b1c48b09 make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 209
diff changeset
66 </ul>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
67 <p>Long-Running-Process Setup: <span id="line-35" class="anchor"></span></p>
228
d456b1c48b09 make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 209
diff changeset
68 <ul>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
69 <li><p><a href="#fastcgi-install">FastCGI Setup using Apache</a> <span id="line-36" class="anchor"></span></p>
228
d456b1c48b09 make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 209
diff changeset
70 </li>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
71 <li><p><a href="#modpy-install">mod_python Setup using Apache</a> <span id="line-37" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
72 </li>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
73 <li><p><a href="#twisted-install">Setup using twisted</a> <span id="line-38" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
74 <span id="line-39" class="anchor"></span></li>
228
d456b1c48b09 make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 209
diff changeset
75 </ul>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
76 <p>Mac OS X: <span id="line-40" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
77 <ul>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
78 <li><p><a href="#macosx-install">Mac OS X Installation</a> <span id="line-41" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
79 <span id="line-42" class="anchor"></span></li>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
80 </ul>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
81 <p>Windows: <span id="line-43" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
82 <ul>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
83 <li><p><a href="#win32apache-install">Windows Installation using Apache</a> <span id="line-44" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
84 </li>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
85 <li><p><a href="#win32iis-install">Windows Installation using IIS</a> <span id="line-45" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
86 <span id="line-46" class="anchor"></span></li>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
87 </ul>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
88 <span id="basic-install" class="anchor"></span><p> <span id="line-47" class="anchor"></span><div lang="en" id="Include_HelpOnInstalling/BasicInstallation" dir="ltr">
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
89 <span id="top_Include_HelpOnInstalling/BasicInstallation" class="anchor"></span><span id="line-8" class="anchor"></span><span id="line-9" class="anchor"></span><p><span id="line-10" class="anchor"></span><strong>How to do a basic installation of <a href="http://moinmaster.wikiwikiweb.de/MoinMoin">MoinMoin</a> on your system.</strong> <span id="line-11" class="anchor"></span></p>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
90 <span id="line-12" class="anchor"></span><p><strong>Contents</strong> <span id="line-13" class="anchor"></span><ol>
0
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-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
92 <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
93 <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
94 <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
95 <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
96 </ol>
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-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
98 <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
99 </ol>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
100 <span id="line-14" class="anchor"></span></p>
394
4d58b19bd3a7 make underlay install-docs interwiki
Thomas Waldmann <tw@waldmann-edv.de>
parents: 363
diff changeset
101 <span id="line-15" class="anchor"></span><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="http" href="http://www.python.org/doc/current/inst/inst.html">Installing Python Modules</a> document in your Python documentation set. <span id="line-16" class="anchor"></span></p>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
102 <span id="line-17" class="anchor"></span><p>The installation is similar on Windows and Linux (and other POSIX-type systems; for simplicity, we just say "Linux" in the docs). <span id="line-18" class="anchor"></span></p>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
103 <span id="line-19" class="anchor"></span><ul>
347
db26c7fc0af0 make install-docs, interwiki, underlay, pagepacks, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 343
diff changeset
104 <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. <span id="line-20" class="anchor"></span></p>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
105 <span id="line-21" class="anchor"></span></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
106 </ul>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
107
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
108 <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
109
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
110 <span id="line-22" class="anchor"></span><span id="line-23" class="anchor"></span><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. <span id="line-24" class="anchor"></span></p>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
111 <span id="line-25" class="anchor"></span><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. <span id="line-26" class="anchor"></span></p>
394
4d58b19bd3a7 make underlay install-docs interwiki
Thomas Waldmann <tw@waldmann-edv.de>
parents: 363
diff changeset
112 <span id="line-27" class="anchor"></span><p>You can download Python at <a class="http" href="http://www.python.org/download/">http://www.python.org/download/</a>. <span id="line-28" class="anchor"></span></p>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
113 <span id="line-29" class="anchor"></span><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. <span id="line-30" class="anchor"></span></p>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
114 <span id="line-31" class="anchor"></span><p>If you have shell access, checking if Python is working is very simple. Just type the following command, and look at the result: <span id="line-32" class="anchor"></span>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
115 <span id="line-33" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
116 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
117 &gt; python -V
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
118 <span id="line-34" class="anchor"></span>Python 2.3.4
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
119 <span id="line-35" class="anchor"></span></pre>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
120 <span id="line-36" class="anchor"></span><span id="line-37" class="anchor"></span><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. <span id="line-38" class="anchor"></span>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
121 <span id="line-39" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
122 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
123 #!/bin/sh
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
124 <span id="line-40" class="anchor"></span>echo Content-Type: text/plain
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
125 <span id="line-41" class="anchor"></span>echo
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
126 <span id="line-42" class="anchor"></span>echo "Your web server is running as:"
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
127 <span id="line-43" class="anchor"></span>id
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
128 <span id="line-44" class="anchor"></span>echo "CGI scripts work"
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
129 <span id="line-45" class="anchor"></span>echo "Now we try to invoke Python interpreters and get their versions:"
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
130 <span id="line-46" class="anchor"></span>python -V 2&gt;&amp;1
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
131 <span id="line-47" class="anchor"></span>python2.3 -V 2&gt;&amp;1
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
132 <span id="line-48" class="anchor"></span>python2.4 -V 2&gt;&amp;1
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
133 <span id="line-49" class="anchor"></span>echo "Finished."
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
134 <span id="line-50" class="anchor"></span></pre>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
135 <span id="line-51" class="anchor"></span><span id="line-52" class="anchor"></span><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. <span id="line-53" class="anchor"></span></p>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
136 <span id="line-54" class="anchor"></span><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. <span id="line-55" class="anchor"></span></p>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
137 <span id="line-56" class="anchor"></span>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
138 <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
139
394
4d58b19bd3a7 make underlay install-docs interwiki
Thomas Waldmann <tw@waldmann-edv.de>
parents: 363
diff changeset
140 <span id="line-57" class="anchor"></span><span id="line-58" class="anchor"></span><p>To download the distribution archive, go to the <a class="http" href="http://sourceforge.net/project/showfiles.php?group_id=8482">download area</a> and fetch the latest archive. <span id="line-59" class="anchor"></span></p>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
141 <span id="line-60" class="anchor"></span><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. <span id="line-61" class="anchor"></span></p>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
142 <span id="line-62" class="anchor"></span><ul>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
143 <li><p>On Windows <span id="line-63" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
144 <ul>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
145 <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. <span id="line-64" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
146 </li>
394
4d58b19bd3a7 make underlay install-docs interwiki
Thomas Waldmann <tw@waldmann-edv.de>
parents: 363
diff changeset
147 <li><p>At the command prompt, you can use <a class="http" href="http://gnuwin32.sourceforge.net/packages/gzip.htm">GNU gzip</a> and <a class="http" href="http://gnuwin32.sourceforge.net/packages/tar.htm">GNU tar</a> for Windows. <span id="line-65" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
148 </li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
149 </ul>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
150 </li>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
151 <li><p>On Linux <span id="line-66" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
152 <ul>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
153 <li><p>You can use your favorite file manager -- it should be able to unpack them. <span id="line-67" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
154 </li>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
155 <li><p>At any shell prompt, you can use the <tt>tar</tt> command. <span id="line-68" class="anchor"></span></p>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
156 <span id="line-69" class="anchor"></span></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
157 </ul>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
158 </li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
159 </ul>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
160 <p>The distribution archive will always unpack into a directory named <tt>moin-&lt;version&gt;</tt>, for example <tt>moin-1.5</tt>. <span id="line-70" class="anchor"></span></p>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
161 <span id="line-71" class="anchor"></span><p>Here is how you would unpack the archive (using GNU tar) and enter the directory with the Moin<tt></tt>Moin files: <span id="line-72" class="anchor"></span>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
162 <span id="line-73" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
163 <pre>
137
cfbecd3400d3 make install-docs, intermap, underlay, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 0
diff changeset
164 &gt; tar xzf moin-1.5.0.tar.gz
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
165 <span id="line-74" class="anchor"></span>&gt; cd moin-1.5.0
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
166 <span id="line-75" class="anchor"></span></pre>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
167 <span id="line-76" class="anchor"></span><span id="line-77" class="anchor"></span>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
168 <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
169
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
170 <span id="line-78" class="anchor"></span><span id="line-79" class="anchor"></span><p>You can install Moin<tt></tt>Moin to either: <span id="line-80" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
171 <ul>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
172 <li><p>a system location (if you have the necessary rights to do that -- on Linux you need to be root) <span id="line-81" class="anchor"></span></p>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
173 </li>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
174 <li><p>some specific location, like your home directory (Linux) or <tt>C:\moin</tt> (Windows). <span id="line-82" class="anchor"></span></p>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
175 <span id="line-83" class="anchor"></span></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
176 </ul>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
177 <p>The installation to a system location is easier, so choose that if possible. <span id="line-84" class="anchor"></span></p>
347
db26c7fc0af0 make install-docs, interwiki, underlay, pagepacks, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 343
diff changeset
178 <span id="line-85" class="anchor"></span><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. <span id="line-86" class="anchor"></span></p>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
179 <span id="line-87" class="anchor"></span><p>If you have problems with the <tt>setup.py</tt> install step, try using the command: <span id="line-88" class="anchor"></span>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
180 <span id="line-89" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
181 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
182 &gt; python -v setup.py --quiet install --record=install.log
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
183 <span id="line-90" class="anchor"></span></pre>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
184 <span id="line-91" class="anchor"></span><span id="line-92" class="anchor"></span><p>The additional <tt>-v</tt> flag should provide you detailed verbose messages every step of the way. <span id="line-93" class="anchor"></span></p>
347
db26c7fc0af0 make install-docs, interwiki, underlay, pagepacks, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 343
diff changeset
185 <span id="line-94" class="anchor"></span><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>. <span id="line-95" class="anchor"></span></p>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
186 <span id="line-96" class="anchor"></span>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
187 <h2 id="head-640b21abea127e7ac4b48c938607c233b7119bd5">Installing in the default system location</h2>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
188
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
189 <span id="line-97" class="anchor"></span><span id="line-98" class="anchor"></span>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
190 <span id="line-99" class="anchor"></span><pre>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
191 &gt; python setup.py --quiet install --record=install.log
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
192 <span id="line-100" class="anchor"></span></pre>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
193 <span id="line-101" class="anchor"></span><span id="line-102" class="anchor"></span><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. <span id="line-103" class="anchor"></span></p>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
194 <span id="line-104" class="anchor"></span><ul>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
195 <li><p>Mac OS X note: use the command: <span id="line-105" class="anchor"></span>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
196 <span id="line-106" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
197 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
198 python setup.py install --install-data='/usr/local'
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
199 <span id="line-107" class="anchor"></span></pre>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
200 <span id="line-108" class="anchor"></span><p>This will install the shared files to '/usr/local/share/moin', instead of an inconvenient location in the System folder. <span id="line-109" class="anchor"></span></p>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
201 <span id="line-110" class="anchor"></span></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
202 </ul>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
203
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
204 <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
205
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
206 <span id="line-111" class="anchor"></span><span id="line-112" class="anchor"></span><p>Linux example, installing in the home directory: <span id="line-113" class="anchor"></span>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
207 <span id="line-114" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
208 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
209 &gt; python setup.py --quiet install --prefix=$HOME --record=install.log
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
210 <span id="line-115" class="anchor"></span></pre>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
211 <span id="line-116" class="anchor"></span><span id="line-117" class="anchor"></span><p>Windows example, installing in the <tt>C:\moin</tt> directory: <span id="line-118" class="anchor"></span>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
212 <span id="line-119" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
213 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
214 &gt; python setup.py --quiet install --prefix="C:\moin" --record=install.log
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
215 <span id="line-120" class="anchor"></span></pre>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
216 <span id="line-121" class="anchor"></span><span id="line-122" class="anchor"></span><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. <span id="line-123" class="anchor"></span></p>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
217 <span id="line-124" class="anchor"></span><p><strong>Note:</strong> You will likely see the following warning: <span id="line-125" class="anchor"></span></p>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
218 <span id="line-126" class="anchor"></span><ul>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
219 <li style="list-style-type:none"><p><tt>warning:&nbsp;install:&nbsp;modules&nbsp;installed&nbsp;to&nbsp;'C:\moin\',&nbsp;which</tt><br>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
220 <span id="line-127" class="anchor"></span><tt>is&nbsp;not&nbsp;in&nbsp;Python's&nbsp;module&nbsp;search&nbsp;path&nbsp;(sys.path)&nbsp;--&nbsp;you'll</tt><br>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
221 <span id="line-128" class="anchor"></span><tt>have&nbsp;to&nbsp;change&nbsp;the&nbsp;search&nbsp;path&nbsp;yourself</tt> <span id="line-129" class="anchor"></span></p>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
222 <span id="line-130" class="anchor"></span></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
223 </ul>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
224 <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. <span id="line-131" class="anchor"></span></p>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
225 <span id="line-132" class="anchor"></span><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: <span id="line-133" class="anchor"></span>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
226 <span id="line-134" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
227 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
228 import sys
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
229 <span id="line-135" class="anchor"></span>sys.path.insert(0, 'C:/moin')
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
230 <span id="line-136" class="anchor"></span></pre>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
231 <span id="line-137" class="anchor"></span><span id="line-138" class="anchor"></span>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
232 <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
233
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
234 <span id="line-139" class="anchor"></span><span id="line-140" class="anchor"></span><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: <span id="line-141" class="anchor"></span></p>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
235 <span id="line-142" class="anchor"></span>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
236 <span id="line-143" class="anchor"></span><pre>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
237 &gt; python
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
238 <span id="line-144" class="anchor"></span>Python 2.3.4 (#1, May 29 2004, 17:05:23)
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
239 <span id="line-145" class="anchor"></span>[GCC 3.3.3] on linux2
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
240 <span id="line-146" class="anchor"></span>Type "help", "copyright", "credits" or "license" for more information.
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
241 <span id="line-147" class="anchor"></span>&gt;&gt;&gt; import MoinMoin
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
242 <span id="line-148" class="anchor"></span>&gt;&gt;&gt;
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
243 <span id="line-149" class="anchor"></span></pre>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
244 <span id="line-150" class="anchor"></span><span id="line-151" class="anchor"></span><p>If you get this instead: <span id="line-152" class="anchor"></span></p>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
245 <span id="line-153" class="anchor"></span>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
246 <span id="line-154" class="anchor"></span><pre>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
247 &gt;&gt;&gt; import MoinMoin
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
248 <span id="line-155" class="anchor"></span>Traceback (most recent call last):
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
249 <span id="line-156" class="anchor"></span> File "&lt;stdin&gt;", line 1, in ?
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
250 <span id="line-157" class="anchor"></span>ImportError: No module named MoinMoin
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
251 <span id="line-158" class="anchor"></span>&gt;&gt;&gt;
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
252 <span id="line-159" class="anchor"></span></pre>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
253 <span id="line-160" class="anchor"></span><span id="line-161" class="anchor"></span><p>then you have to tune your installation. Try modifying <tt>sys.path</tt>, as described above. <span id="line-162" class="anchor"></span></p>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
254 <span id="line-163" class="anchor"></span>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
255 <h1 id="head-87a60f1d02c36fb1804b442815dba49cbc8adfe7">What has been installed</h1>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
256
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
257 <span id="line-164" class="anchor"></span><span id="line-165" class="anchor"></span><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. <span id="line-166" class="anchor"></span></p>
347
db26c7fc0af0 make install-docs, interwiki, underlay, pagepacks, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 343
diff changeset
258 <span id="line-167" class="anchor"></span><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. <span id="line-168" class="anchor"></span></p>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
259 <span id="line-169" class="anchor"></span><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>. <span id="line-170" class="anchor"></span></p>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
260 <span id="line-171" class="anchor"></span><p>Look into <tt>install.log</tt> to find out about following important locations: <span id="line-172" class="anchor"></span></p>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
261 <span id="line-173" class="anchor"></span><ul>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
262 <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 <span id="line-174" class="anchor"></span></p>
196
d0250ed0cd53 make interwiki underlay install-docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 176
diff changeset
263 </li>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
264 <li><p><strong><tt>share</tt> directory</strong>, usually <tt>PREFIX/share/moin</tt> - this is where the <em>templates</em> are located <span id="line-175" class="anchor"></span></p>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
265 <ul>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
266 <li><p><strong><tt>data</tt></strong> directory (wiki pages, users, etc.) - only Moin<tt></tt>Moin should access this <span id="line-176" class="anchor"></span></p>
228
d456b1c48b09 make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 209
diff changeset
267 </li>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
268 <li><p><strong><tt>underlay</tt></strong> directory (wiki pages) - only Moin<tt></tt>Moin should access this <span id="line-177" class="anchor"></span></p>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
269 </li>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
270 <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 <span id="line-178" class="anchor"></span></p>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
271 </li>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
272 <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) <span id="line-179" class="anchor"></span></p>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
273 </li>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
274 <li><p><strong><tt>config</tt></strong> - Moin<tt></tt>Moin example configuration files (like <tt>wikiconfig.py</tt>) <span id="line-180" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
275 </li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
276 </ul>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
277 </li>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
278 <li><p><strong><tt>bin</tt></strong> directory with some scripts that help you use the Moin<tt></tt>Moin shell commands <span id="line-181" class="anchor"></span></p>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
279 <span id="line-182" class="anchor"></span></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
280 </ul>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
281 <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. <span id="line-183" class="anchor"></span></p>
228
d456b1c48b09 make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 209
diff changeset
282 <span id="bottom_Include_HelpOnInstalling/BasicInstallation" class="anchor"></span>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
283 </div>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
284 <span id="line-48" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
285 <hr class="hr2">
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
286 <p> <span id="line-49" class="anchor"></span><span id="wikiinstance-creation" class="anchor"></span> <span id="line-50" class="anchor"></span><div lang="en" id="Include_HelpOnInstalling/WikiInstanceCreation" dir="ltr">
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
287 <span id="top_Include_HelpOnInstalling/WikiInstanceCreation" class="anchor"></span><span id="line-8" class="anchor"></span><span id="line-9" class="anchor"></span><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. <span id="line-10" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
288 <span id="line-11" class="anchor"></span><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. <span id="line-12" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
289 <span id="line-13" class="anchor"></span><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. <span id="line-14" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
290 <span id="line-15" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
291 <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
292
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
293 <span id="line-16" class="anchor"></span><span id="line-17" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
294 <h2 id="head-6e91ed0b234e903763a945b5249e7de8b726e5d7">Security warnings</h2>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
295
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
296 <span id="line-18" class="anchor"></span><span id="line-19" class="anchor"></span><div>
347
db26c7fc0af0 make install-docs, interwiki, underlay, pagepacks, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 343
diff changeset
297 <table style="color: red">
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
298 <tr>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
299 <td>
347
db26c7fc0af0 make install-docs, interwiki, underlay, pagepacks, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 343
diff changeset
300 <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
301 </td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
302 </tr>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
303 <span id="line-20" class="anchor"></span></table>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
304 </div>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
305 <span id="line-21" class="anchor"></span><div>
347
db26c7fc0af0 make install-docs, interwiki, underlay, pagepacks, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 343
diff changeset
306 <table style="color: red">
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
307 <tr>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
308 <td>
347
db26c7fc0af0 make install-docs, interwiki, underlay, pagepacks, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 343
diff changeset
309 <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>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
310 </td>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
311 </tr>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
312 <span id="line-22" class="anchor"></span></table>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
313 </div>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
314 <span id="line-23" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
315 <h2 id="head-942d29849126a576afcc19bdbfd59c661739eb55">Note to Windows users</h2>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
316
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
317 <span id="line-24" class="anchor"></span><span id="line-25" class="anchor"></span><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. <span id="line-26" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
318 <span id="line-27" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
319 <h1 id="head-66ec28f32e6870e96f6062a4a6ac77bbb4606109">Choose a wiki name</h1>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
320
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
321 <span id="line-28" class="anchor"></span><span id="line-29" class="anchor"></span><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. <span id="line-30" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
322 <span id="line-31" class="anchor"></span><ul>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
323 <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> <span id="line-32" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
324 <span id="line-33" class="anchor"></span></li>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
325 </ul>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
326 <p>The name "<tt>mywiki</tt>" is used as an example in the various commands below. <span id="line-34" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
327 <span id="line-35" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
328 <h1 id="head-379ea73c819b2c729ba9c2432b8a4c4b4c524f71">Choose a location</h1>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
329
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
330 <span id="line-36" class="anchor"></span><span id="line-37" class="anchor"></span><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. <span id="line-38" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
331 <span id="line-39" class="anchor"></span><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. <span id="line-40" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
332 <span id="line-41" class="anchor"></span><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. <span id="line-42" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
333 <span id="line-43" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
334 <h1 id="head-951584cdd82db21218fc2ffd3945de602f8275c0">Collect some important information</h1>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
335
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
336 <span id="line-44" class="anchor"></span><span id="line-45" class="anchor"></span><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. <span id="line-46" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
337 <span id="line-47" class="anchor"></span><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. <span id="line-48" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
338 <span id="line-49" class="anchor"></span><ul>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
339 <li><p><tt>PREFIX</tt> is the prefix you used during the <a href="http://moinmaster.wikiwikiweb.de/HelpOnInstalling/BasicInstallation">../BasicInstallation</a> <span id="line-50" class="anchor"></span></p>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
340 </li>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
341 <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> <span id="line-51" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
342 </li>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
343 <li><p><tt>WIKILOCATION</tt> is the name of the directory that will contain your wiki instance <span id="line-52" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
344 <span id="line-53" class="anchor"></span></li>
196
d0250ed0cd53 make interwiki underlay install-docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 176
diff changeset
345 </ul>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
346 <p>If you are an administrator, you also need to collect the following: <span id="line-54" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
347 <span id="line-55" class="anchor"></span><ul>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
348 <li><p><tt>USER</tt> is the user name of the web server <span id="line-56" class="anchor"></span></p>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
349 </li>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
350 <li><p><tt>GROUP</tt> is the name of the group to which the web server belongs <span id="line-57" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
351 <span id="line-58" class="anchor"></span></li>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
352 </ul>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
353 <p>Now, Linux folks, let's store these settings in memory: <span id="line-59" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
354 <span id="line-60" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
355 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
356 &gt; export PREFIX=/usr # this might be something else
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
357 <span id="line-61" class="anchor"></span>&gt; export SHARE=$PREFIX/share/moin # this should be correct for most people
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
358 <span id="line-62" class="anchor"></span>&gt; export WIKILOCATION=$SHARE # this is just an example
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
359 <span id="line-63" class="anchor"></span>&gt; export INSTANCE=mywiki # this is just an example
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
360 <span id="line-64" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
361 <span id="line-65" class="anchor"></span><span id="line-66" class="anchor"></span><p>Administrators also need the following two lines: <span id="line-67" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
362 <span id="line-68" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
363 <span id="line-69" class="anchor"></span><pre>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
364 &gt; export USER=www-data # this is just an example
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
365 <span id="line-70" class="anchor"></span>&gt; export GROUP=www-data # this is just an example
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
366 <span id="line-71" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
367 <span id="line-72" class="anchor"></span><span id="line-73" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
368 <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
369
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
370 <span id="line-74" class="anchor"></span><span id="line-75" class="anchor"></span><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. <span id="line-76" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
371 <span id="line-77" class="anchor"></span><p>Linux folks need just type these commands: <span id="line-78" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
372 <span id="line-79" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
373 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
374 &gt; cd $WIKILOCATION
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
375 <span id="line-80" class="anchor"></span>&gt; mkdir $INSTANCE # make a directory for this instance
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
376 <span id="line-81" class="anchor"></span>&gt; cp -R $SHARE/data $INSTANCE # copy template data directory
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
377 <span id="line-82" class="anchor"></span>&gt; cp -R $SHARE/underlay $INSTANCE # copy underlay data directory
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
378 <span id="line-83" class="anchor"></span>&gt; cp $SHARE/config/wikiconfig.py $INSTANCE # copy wiki configuration sample file
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
379 <span id="line-84" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
380 <span id="line-85" class="anchor"></span><span id="line-86" class="anchor"></span><ul>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
381 <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.) <span id="line-87" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
382 <span id="line-88" class="anchor"></span></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
383 </ul>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
384
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
385 <h1 id="head-027e3666aea4dc02569ad386901ae9456bad5ae1">Set permissions</h1>
196
d0250ed0cd53 make interwiki underlay install-docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 176
diff changeset
386
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
387 <span id="line-89" class="anchor"></span><span id="line-90" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
388 <h2 id="head-3b8b040007c209e4621b176c8724b3bbcb755957">Administrators</h2>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
389
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
390 <span id="line-91" class="anchor"></span><span id="line-92" class="anchor"></span><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. <span id="line-93" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
391 <span id="line-94" class="anchor"></span><p>On Linux, the following commands should be enough: <span id="line-95" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
392 <span id="line-96" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
393 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
394 &gt; chown -R $USER.$GROUP $INSTANCE # check that USER and GROUP are correct
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
395 <span id="line-97" class="anchor"></span>&gt; chmod -R ug+rwX $INSTANCE # USER.GROUP may read and write
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
396 <span id="line-98" class="anchor"></span>&gt; chmod -R o-rwx $INSTANCE # everybody else is rejected
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
397 <span id="line-99" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
398 <span id="line-100" class="anchor"></span><span id="line-101" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
399 <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
400
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
401 <span id="line-102" class="anchor"></span><span id="line-103" class="anchor"></span><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. <span id="line-104" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
402 <span id="line-105" class="anchor"></span><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. <span id="line-106" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
403 <span id="line-107" class="anchor"></span><p>On Linux, the following commands will open the instance directory to the whole world: <span id="line-108" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
404 <span id="line-109" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
405 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
406 &gt; chmod -R a+rwX $INSTANCE
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
407 <span id="line-110" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
408 <span id="line-111" class="anchor"></span><span id="line-112" class="anchor"></span><p><strong>Note:</strong> <span id="line-113" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
409 <ul>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
410 <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. <span id="line-114" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
411 </li>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
412 <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. <span id="line-115" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
413 <span id="line-116" class="anchor"></span><span id="line-117" class="anchor"></span></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
414 </ul>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
415
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
416 <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
417
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
418 <span id="line-118" class="anchor"></span><span id="line-119" class="anchor"></span><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. <span id="line-120" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
419 <span id="line-121" class="anchor"></span><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.) <span id="line-122" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
420 <span id="line-123" class="anchor"></span><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. <span id="line-124" class="anchor"></span></p>
228
d456b1c48b09 make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 209
diff changeset
421 <span id="bottom_Include_HelpOnInstalling/WikiInstanceCreation" class="anchor"></span>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
422 </div>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
423 <span id="line-51" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
424 <hr class="hr1">
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
425 <p> <span id="line-52" class="anchor"></span><span id="linuxapache-install" class="anchor"></span> <span id="line-53" class="anchor"></span>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
426 <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
427
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
428 <div lang="en" id="Include_HelpOnInstalling/ApacheOnLinux" dir="ltr">
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
429 <span id="top_Include_HelpOnInstalling/ApacheOnLinux" class="anchor"></span><span id="line-9" class="anchor"></span><p>This page describes the particular steps that need to be taken to create a wiki instance using <a href="http://moinmaster.wikiwikiweb.de/MoinMoin">MoinMoin</a> 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>Installations on other Unices like FreeBSD are very similar. <span id="line-10" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
430 <span id="line-11" class="anchor"></span><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. <span id="line-12" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
431 <span id="line-13" class="anchor"></span><p><strong>Table of contents</strong> <ol>
0
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-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
433 <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
434 <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
435 <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
436 <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
437 <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
438 <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
439 <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
440 </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-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
442 <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
443 <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
444 <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
445 <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
446 <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
447 <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
448 <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
449 </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-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
451 <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
452 </ol>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
453 </li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
454 </ol>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
455 <span id="line-14" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
456 <span id="line-15" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
457 <h2 id="head-5a61f5b0107edba120089e4251cd633be60b6e15">Administrator (root)</h2>
209
345d0228a0bd make interwiki install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 196
diff changeset
458
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
459 <span id="line-16" class="anchor"></span><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: <span id="line-17" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
460 <span id="line-18" class="anchor"></span><ul>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
461 <li><p><tt>/etc/httpd/httpd.conf</tt> - the main Apache configuration file <span id="line-19" class="anchor"></span></p>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
462 </li>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
463 <li><p><tt>/var/log/httpd/error_log</tt> - the log file containing Apache error messages <span id="line-20" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
464 <span id="line-21" class="anchor"></span></li>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
465 </ul>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
466 <p>Some distributions use <tt>apache</tt> instead of <tt>httpd</tt> for the directory names, others may use weirder settings. <span id="line-22" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
467 <span id="line-23" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
468 <h3 id="head-c27688fbe7f65d67190a47ce8d32eba244ab0d01">Create a wiki instance</h3>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
469
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
470 <span id="line-24" class="anchor"></span><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: <span id="line-25" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
471 <span id="line-26" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
472 <span id="line-27" class="anchor"></span><pre>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
473 &gt; egrep "^User|^Group" /etc/httpd/httpd.conf
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
474 <span id="line-28" class="anchor"></span>User wwwrun
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
475 <span id="line-29" class="anchor"></span>Group nogroup
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
476 <span id="line-30" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
477 <span id="line-31" class="anchor"></span><span id="line-32" class="anchor"></span><p>This shows a typical result: "<tt>wwwrun.nogroup</tt>". Other common results are "<tt>nobody.nogroup</tt>", "<tt>apache.apache</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. <span id="line-33" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
478 <span id="line-34" class="anchor"></span><p>Once you have gathered this information, read <a href="http://moinmaster.wikiwikiweb.de/HelpOnInstalling/WikiInstanceCreation">../WikiInstanceCreation</a> and follow the steps described there. <span id="line-35" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
479 <span id="line-36" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
480 <h3 id="head-e3e9e08058bb0ae34c33f53367cd58d6c7411998">Install moin.cgi</h3>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
481
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
482 <span id="line-37" class="anchor"></span><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. <span id="line-38" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
483 <span id="line-39" class="anchor"></span><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: <span id="line-40" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
484 <span id="line-41" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
485 <span id="line-42" class="anchor"></span><pre>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
486 &gt; cd $WIKILOCATION/$INSTANCE
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
487 <span id="line-43" class="anchor"></span>&gt; mkdir cgi-bin
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
488 <span id="line-44" class="anchor"></span>&gt; cp $SHARE/server/moin.cgi cgi-bin
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
489 <span id="line-45" class="anchor"></span>&gt; chown -R $USER.$GROUP cgi-bin
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
490 <span id="line-46" class="anchor"></span>&gt; chmod -R ug+rx cgi-bin
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
491 <span id="line-47" class="anchor"></span>&gt; chmod -R o-rwx cgi-bin
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
492 <span id="line-48" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
493 <span id="line-49" class="anchor"></span><span id="line-50" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
494 <h3 id="head-408a7a283b2406c4e6b24646b25ec7996d5ff459">Configure moin.cgi</h3>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
495
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
496 <span id="line-51" class="anchor"></span><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: <span id="line-52" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
497 <span id="line-53" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
498 <span id="line-54" class="anchor"></span><pre>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
499 import sys
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
500 <span id="line-55" class="anchor"></span>sys.path.insert(0, '..')
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
501 <span id="line-56" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
502 <span id="line-57" class="anchor"></span><span id="line-58" class="anchor"></span><p>You can also use the absolute name of the directory that contains the <tt>wikiconfig.py</tt> file instead of <tt>'..'</tt>. <span id="line-59" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
503 <span id="line-60" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
504 <h3 id="head-b02e2f66403a66cc3b1ff0ce2c7261cf44e4f0d4">Configure Apache</h3>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
505
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
506 <span id="line-61" class="anchor"></span><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. <span id="line-62" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
507 <span id="line-63" class="anchor"></span><p>Your Apache should be set up so that: <span id="line-64" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
508 <span id="line-65" class="anchor"></span><ul>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
509 <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). <span id="line-66" class="anchor"></span></p>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
510 </li>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
511 <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>) <span id="line-67" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
512 </li>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
513 <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. <span id="line-68" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
514 <span id="line-69" class="anchor"></span></li>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
515 </ul>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
516 <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. <span id="line-70" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
517 <span id="line-71" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
518 <span id="line-72" class="anchor"></span><pre>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
519 &gt; echo "" &gt;&gt;/etc/httpd/httpd.conf
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
520 <span id="line-73" class="anchor"></span>&gt; echo "Alias /wiki/ \"$SHARE/htdocs/\"" &gt;&gt;/etc/httpd/httpd.conf
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
521 <span id="line-74" class="anchor"></span>&gt; echo "ScriptAlias /mywiki \"$WIKILOCATION/$INSTANCE/cgi-bin/moin.cgi\"" &gt;&gt;/etc/httpd/httpd.conf
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
522 <span id="line-75" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
523 <span id="line-76" class="anchor"></span><span id="line-77" class="anchor"></span><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. <span id="line-78" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
524 <span id="line-79" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
525 <h3 id="head-ffa39b171f9d130bb07a8481a5fff1a5a9065e86">Configure MoinMoin</h3>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
526
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
527 <span id="line-80" class="anchor"></span><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. <span id="line-81" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
528 <span id="line-82" class="anchor"></span><p>Here are the settings you should have in the config file if you followed all our suggestions: <span id="line-83" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
529 <span id="line-84" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
530 <span id="line-85" class="anchor"></span><pre>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
531 data_dir = '../data/'
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
532 <span id="line-86" class="anchor"></span> data_underlay_dir = '../underlay/'
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
533 <span id="line-87" class="anchor"></span> url_prefix = '/wiki'
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
534 <span id="line-88" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
535 <span id="line-89" class="anchor"></span><span id="line-90" class="anchor"></span><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. <span id="line-91" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
536 <span id="line-92" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
537 <h3 id="head-0f7a0fb8dccf6a13b6042fa17e0d7cda751fe3f3">Test the wiki</h3>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
538
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
539 <span id="line-93" class="anchor"></span><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: <span id="line-94" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
540 <span id="line-95" class="anchor"></span><ul>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
541 <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>. <span id="line-96" class="anchor"></span></p>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
542 </li>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
543 <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. <span id="line-97" class="anchor"></span></p>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
544 </li>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
545 <li><p>If this is the case, try to edit it and save your changes. <span id="line-98" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
546 </li>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
547 <li><p>If that works, see if your edit is reflected on the Recent<tt></tt>Changes page. <span id="line-99" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
548 </li>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
549 <li><p>If you see them, congratulations, your new wiki works! <img src="wiki/htdocs/modern/img/smile.png" alt=":)" height="15" width="15"> <span id="line-100" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
550 <span id="line-101" class="anchor"></span></li>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
551 </ul>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
552 <p>If something goes wrong, have a look at Troubleshooting, at the bottom of this page. <span id="line-102" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
553 <span id="line-103" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
554 <h3 id="head-52920da3312438e6a484347d4dfaa369b86cb521">Apache tricks</h3>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
555
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
556 <span id="line-104" class="anchor"></span><p>For more advanced configuration and some tricks see <a href="http://moinmaster.wikiwikiweb.de/HelpMiscellaneous">HelpMiscellaneous</a>. <span id="line-105" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
557 <span id="line-106" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
558 <h2 id="head-e559f024646d8751eee1135ad5423247d72ab7fd">Simple user (home directory installation)</h2>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
559
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
560 <span id="line-107" class="anchor"></span><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. <span id="line-108" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
561 <span id="line-109" class="anchor"></span><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. <span id="line-110" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
562 <span id="line-111" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
563 <h3 id="head-6a39e2829f37fd34c569c2ffa768c9b3ec2289cc">Make sure /~username works</h3>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
564
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
565 <span id="line-112" class="anchor"></span><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. <span id="line-113" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
566 <span id="line-114" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
567 <span id="line-115" class="anchor"></span><pre>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
568 &gt; ls -ld ~/public_html
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
569 <span id="line-116" class="anchor"></span>drwxr-xr-x 2 mm users 4096 Nov 30 00:29 public_html
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
570 <span id="line-117" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
571 <span id="line-118" class="anchor"></span><span id="line-119" class="anchor"></span><p>If the directory does not exist, create it, and be sure it can be read and entered by the web server. <span id="line-120" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
572 <span id="line-121" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
573 <span id="line-122" class="anchor"></span><pre>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
574 &gt; mkdir public_html
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
575 <span id="line-123" class="anchor"></span>&gt; chmod a+rx public_html
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
576 <span id="line-124" class="anchor"></span>&gt; ls -ld ~/public_html
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
577 <span id="line-125" class="anchor"></span>drwxr-xr-x 2 mm users 4096 Nov 30 00:35 public_html
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
578 <span id="line-126" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
579 <span id="line-127" class="anchor"></span><span id="line-128" class="anchor"></span><p>Now, check if the "<tt>/~mm</tt>" URL works: <span id="line-129" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
580 <span id="line-130" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
581 <span id="line-131" class="anchor"></span><pre>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
582 &gt; lynx -error_file=/dev/stderr -dump http://localhost/~mm/ &gt;/dev/null
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
583 <span id="line-132" class="anchor"></span>URL=http://localhost/~mm/ (GET)
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
584 <span id="line-133" class="anchor"></span>STATUS=HTTP/1.1 200 OK
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
585 <span id="line-134" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
586 <span id="line-135" class="anchor"></span><span id="line-136" class="anchor"></span><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. <span id="line-137" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
587 <span id="line-138" class="anchor"></span><ul>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
588 <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>". <span id="line-139" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
589 </li>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
590 <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). <span id="line-140" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
591 </li>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
592 <li><p>Finally, if the personal web site feature is disabled, maybe you can ask the administrator to enable it? <span id="line-141" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
593 <span id="line-142" class="anchor"></span></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
594 </ul>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
595 <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: <span id="line-143" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
596 <span id="line-144" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
597 <span id="line-145" class="anchor"></span><pre>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
598 &gt; mkdir -p ~/public_html/cgi-bin
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
599 <span id="line-146" class="anchor"></span>&gt; cat &gt; ~/public_html/cgi-bin/test.cgi
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
600 <span id="line-147" class="anchor"></span>#!/bin/sh
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
601 <span id="line-148" class="anchor"></span>echo Content-Type: text/plain
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
602 <span id="line-149" class="anchor"></span>echo
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
603 <span id="line-150" class="anchor"></span>echo "CGI scripts work"
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
604 <span id="line-151" class="anchor"></span>&lt;CTRL-D&gt;
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
605 <span id="line-152" class="anchor"></span>&gt; chmod a+rx ~/public_html/cgi-bin/test.cgi
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
606 <span id="line-153" class="anchor"></span>&gt; lynx -dump http://localhost/~jh/cgi-bin/test.cgi
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
607 <span id="line-154" class="anchor"></span>CGI scripts work
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
608 <span id="line-155" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
609 <span id="line-156" class="anchor"></span><span id="line-157" class="anchor"></span><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. <span id="line-158" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
610 <span id="line-159" class="anchor"></span><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"> <span id="line-160" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
611 <span id="line-161" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
612 <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
613
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
614 <span id="line-162" class="anchor"></span><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. <span id="line-163" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
615 <span id="line-164" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
616 <h3 id="head-ec9ce458a3f08281e5906f6d1e2e5cc008d620db">Install the htdocs files</h3>
196
d0250ed0cd53 make interwiki underlay install-docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 176
diff changeset
617
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
618 <span id="line-165" class="anchor"></span><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: <span id="line-166" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
619 <span id="line-167" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
620 <span id="line-168" class="anchor"></span><pre>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
621 &gt; cd ~/public_html
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
622 <span id="line-169" class="anchor"></span>&gt; cp -R ~/share/moin/htdocs wiki
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
623 <span id="line-170" class="anchor"></span>&gt; chmod -R a+rX wiki
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
624 <span id="line-171" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
625 <span id="line-172" class="anchor"></span><span id="line-173" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
626 <h3 id="head-e3e9e08058bb0ae34c33f53367cd58d6c7411998-2">Install moin.cgi</h3>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
627
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
628 <span id="line-174" class="anchor"></span><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: <span id="line-175" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
629 <span id="line-176" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
630 <span id="line-177" class="anchor"></span><pre>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
631 &gt; cd ~/public_html
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
632 <span id="line-178" class="anchor"></span>&gt; mkdir cgi-bin
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
633 <span id="line-179" class="anchor"></span>&gt; cp $SHARE/server/moin.cgi cgi-bin
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
634 <span id="line-180" class="anchor"></span>&gt; chmod -R a+rx cgi-bin
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
635 <span id="line-181" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
636 <span id="line-182" class="anchor"></span><span id="line-183" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
637 <h3 id="head-408a7a283b2406c4e6b24646b25ec7996d5ff459-2">Configure moin.cgi</h3>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
638
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
639 <span id="line-184" class="anchor"></span><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: <span id="line-185" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
640 <span id="line-186" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
641 <span id="line-187" class="anchor"></span><pre>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
642 import sys
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
643 <span id="line-188" class="anchor"></span>sys.path.insert(0, '/home/mm/lib/python2.3')
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
644 <span id="line-189" class="anchor"></span>sys.path.insert(0, '/home/mm/lib/python2.3/site-packages')
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
645 <span id="line-190" class="anchor"></span>sys.path.insert(0, '/home/mm/share/moin/mywiki')
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
646 <span id="line-191" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
647 <span id="line-192" class="anchor"></span><span id="line-193" class="anchor"></span><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. <span id="line-194" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
648 <span id="line-195" class="anchor"></span><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. <span id="line-196" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
649 <span id="line-197" class="anchor"></span><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>: <span id="line-198" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
650 <span id="line-199" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
651 <span id="line-200" class="anchor"></span><pre>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
652 def handle_request(req, env, form):
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
653 <span id="line-201" class="anchor"></span> request = RequestCGI(req, env, form, properties = {'script_name': '/mywiki'})
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
654 <span id="line-202" class="anchor"></span> request.run()
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
655 <span id="line-203" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
656 <span id="line-204" class="anchor"></span><span id="line-205" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
657 <h3 id="head-ffa39b171f9d130bb07a8481a5fff1a5a9065e86-2">Configure MoinMoin</h3>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
658
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
659 <span id="line-206" class="anchor"></span><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. <span id="line-207" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
660 <span id="line-208" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
661 <span id="line-209" class="anchor"></span><pre>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
662 data_dir = '/home/mm/share/moin/mywiki/data/'
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
663 <span id="line-210" class="anchor"></span> data_underlay_dir = '/home/mm/share/moin/mywiki/underlay/'
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
664 <span id="line-211" class="anchor"></span> url_prefix = '/~mm/wiki'
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
665 <span id="line-212" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
666 <span id="line-213" class="anchor"></span><span id="line-214" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
667 <h3 id="head-0f7a0fb8dccf6a13b6042fa17e0d7cda751fe3f3-2">Test the wiki</h3>
196
d0250ed0cd53 make interwiki underlay install-docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 176
diff changeset
668
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
669 <span id="line-215" class="anchor"></span><p>Everything should work fine, now. It is time to perform the following steps: <span id="line-216" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
670 <span id="line-217" class="anchor"></span><ul>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
671 <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> <span id="line-218" class="anchor"></span></p>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
672 </li>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
673 <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. <span id="line-219" class="anchor"></span></p>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
674 </li>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
675 <li><p>If this is the case, try to edit it and save your changes. <span id="line-220" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
676 </li>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
677 <li><p>If that works, see if your edit is reflected on the Recent<tt></tt>Changes page. <span id="line-221" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
678 </li>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
679 <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"> <span id="line-222" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
680 <span id="line-223" class="anchor"></span></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
681 </ul>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
682 <p>If something goes wrong, have a look at Troubleshooting, below. <span id="line-224" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
683 <span id="line-225" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
684 <h2 id="head-3f286acb05ce4ad64240f788c78a8f915f59e34e">Troubleshooting</h2>
196
d0250ed0cd53 make interwiki underlay install-docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 176
diff changeset
685
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
686 <span id="line-226" class="anchor"></span><p>See also <a href="http://moinmaster.wikiwikiweb.de/HelpOnInstalling/TroubleShooting">../TroubleShooting</a> for generic stuff. <span id="line-227" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
687 <span id="line-228" class="anchor"></span><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. <span id="line-229" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
688 <span id="line-230" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
689 <h3 id="head-b8c0d1c1aba9cd39d0d15f86ea33025f7f25d48d">Adding permission to serve the htdocs directory</h3>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
690
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
691 <span id="line-231" class="anchor"></span><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>"): <span id="line-232" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
692 <span id="line-233" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
693 <span id="line-234" class="anchor"></span><pre>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
694 # forbid access to the entire filesystem by default
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
695 <span id="line-235" class="anchor"></span>&lt;Directory /&gt;
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
696 <span id="line-236" class="anchor"></span> Options None
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
697 <span id="line-237" class="anchor"></span> AllowOverride None
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
698 <span id="line-238" class="anchor"></span> Order deny,allow
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
699 <span id="line-239" class="anchor"></span> Deny from all
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
700 <span id="line-240" class="anchor"></span>&lt;/Directory&gt;
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
701 <span id="line-241" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
702 <span id="line-242" class="anchor"></span><span id="line-243" class="anchor"></span><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>"): <span id="line-244" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
703 <span id="line-245" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
704 <span id="line-246" class="anchor"></span><pre>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
705 Alias /wiki/ "/usr/share/moin/htdocs/"
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
706 <span id="line-247" class="anchor"></span>&lt;Directory "/usr/share/moin/htdocs/"&gt;
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
707 <span id="line-248" class="anchor"></span> Order deny,allow
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
708 <span id="line-249" class="anchor"></span> Allow from all
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
709 <span id="line-250" class="anchor"></span>&lt;/Directory&gt;
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
710 <span id="line-251" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
711 <span id="line-252" class="anchor"></span>ScriptAlias /mywiki "/usr/share/moin/mywiki/cgi-bin/moin.cgi"
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
712 <span id="line-253" class="anchor"></span>&lt;Directory "/usr/share/moin/mywiki/cgi-bin"&gt;
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
713 <span id="line-254" class="anchor"></span> Order deny,allow
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
714 <span id="line-255" class="anchor"></span> Allow from all
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
715 <span id="line-256" class="anchor"></span>&lt;/Directory&gt;
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
716 <span id="line-257" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
717 <span id="line-258" class="anchor"></span><span id="line-259" class="anchor"></span><p>Of course, you need to adapt the paths to your particular situation. <span id="line-260" class="anchor"></span></p>
228
d456b1c48b09 make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 209
diff changeset
718 <span id="bottom_Include_HelpOnInstalling/ApacheOnLinux" class="anchor"></span>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
719 </div>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
720 <span id="line-54" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
721 <hr class="hr2">
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
722 <p> <span id="line-55" class="anchor"></span><span id="fastcgi-install" class="anchor"></span> <span id="line-56" class="anchor"></span> <span id="line-57" class="anchor"></span></p>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
723 <hr class="hr2">
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
724 <p> <span id="line-58" class="anchor"></span><span id="modpy-install" class="anchor"></span> <span id="line-59" class="anchor"></span>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
725 <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
726
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
727 <div lang="en" id="Include_HelpOnInstalling/ApacheWithModPython" dir="ltr">
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
728 <span id="top_Include_HelpOnInstalling/ApacheWithModPython" class="anchor"></span><span id="line-8" class="anchor"></span><span id="line-9" class="anchor"></span><ol>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
729 <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
730 <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
731 <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
732 <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
733 <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
734 <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
735 </ol>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
736 <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
737 <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
738 <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
739 <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
740 <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
741 </ol>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
742 <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
743 </ol>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
744 <p> <span id="line-10" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
745 <span id="line-11" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
746 <h1 id="head-4e6235e8e3535359b4aa9df9722961dfd62a685a">Why Use mod_python</h1>
196
d0250ed0cd53 make interwiki underlay install-docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 176
diff changeset
747
394
4d58b19bd3a7 make underlay install-docs interwiki
Thomas Waldmann <tw@waldmann-edv.de>
parents: 363
diff changeset
748 <span id="line-12" class="anchor"></span><span id="line-13" class="anchor"></span><p><a class="http" href="http://modpython.org/">mod_python</a> embeds the python interpreter into <span id="line-14" class="anchor"></span>the apache server. This saves initialization time and the need of <span id="line-15" class="anchor"></span>forking cgi scripts. It doesn't have the ability to run as different <span id="line-16" class="anchor"></span>users. It will always run as the main apache user and group. Be sure <span id="line-17" class="anchor"></span>that your wiki data files are accessible and writable by your apache <span id="line-18" class="anchor"></span>server. <span id="line-19" class="anchor"></span></p>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
749 <span id="line-20" class="anchor"></span><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" <span id="line-21" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
750 <span id="line-22" class="anchor"></span><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 <span id="line-23" class="anchor"></span>memory requirements considerably - especially as apache runs many <span id="line-24" class="anchor"></span>separate processes which will each need to have their own copy of the <span id="line-25" class="anchor"></span>python code and data in the process memory space. You may find that <span id="line-26" class="anchor"></span>FastCGI, as detailed in <a class="nonexistent" href="http://moinmaster.wikiwikiweb.de/HelpOnInstalling/ApacheWithFastCgi">HelpOnInstalling/ApacheWithFastCgi</a> is rather <span id="line-27" class="anchor"></span>more efficient in this respect. <span id="line-28" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
751 <span id="line-29" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
752 <h1 id="head-52f515a2448d32357136b23a188dd227330baeb2">Basic configuring</h1>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
753
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
754 <span id="line-30" class="anchor"></span><span id="line-31" class="anchor"></span><ol type="1">
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
755 <li><p>Install mod_python <span id="line-32" class="anchor"></span></p>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
756 </li>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
757 <li><p>Set up a wiki instance <span id="line-33" class="anchor"></span></p>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
758 </li>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
759 <li><p>Edit <tt>wikiconfig.py</tt> <span id="line-34" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
760 </li>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
761 <li><p>Changes to Apache <tt>httpd.conf</tt> <span id="line-35" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
762 </li>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
763 <li><p>Restart Apache <span id="line-36" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
764 <span id="line-37" class="anchor"></span></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
765 </ol>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
766 <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. <span id="line-38" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
767 <span id="line-39" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
768 <h2 id="head-8cd6758d1fcc77b433f6584bcc34e24469568d75">Install mod_python</h2>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
769
394
4d58b19bd3a7 make underlay install-docs interwiki
Thomas Waldmann <tw@waldmann-edv.de>
parents: 363
diff changeset
770 <span id="line-40" class="anchor"></span><span id="line-41" class="anchor"></span><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="http" href="http://modpython.org/live/current/doc-html/">mod_python documentation</a>. <span id="line-42" class="anchor"></span></p>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
771 <span id="line-43" class="anchor"></span><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>). <span id="line-44" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
772 <span id="line-45" class="anchor"></span><p>Make sure you have this line in <tt>httpd.conf</tt> or mod_python will not work: <span id="line-46" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
773 <span id="line-47" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
774 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
775 LoadModule python_module modules/mod_python.so
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
776 <span id="line-48" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
777 <span id="line-49" class="anchor"></span><span id="line-50" class="anchor"></span><p>After this restart Apache and make sure that it starts successfully, and that the error log has a line similar to this:- <span id="line-51" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
778 <span id="line-52" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
779 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
780 [Sat Jan 01 15:40:49 2005] [notice] mod_python: Creating 4 session mutexes based on 150 max processes and 0 max threads.
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
781 <span id="line-53" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
782 <span id="line-54" class="anchor"></span><span id="line-55" class="anchor"></span><p>You may need to change some environment variables on (eg) FreeBSD - this is detailed in the port installation message. <span id="line-56" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
783 <span id="line-57" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
784 <h2 id="head-671adcfb8441deb9daa6ba877d59cc69d5e9d25e">Set up a wiki instance</h2>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
785
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
786 <span id="line-58" class="anchor"></span><span id="line-59" class="anchor"></span><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. <span id="line-60" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
787 <span id="line-61" class="anchor"></span><ol type="1">
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
788 <li><p>Copy moin.cgi into your wiki directory <span id="line-62" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
789 </li>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
790 <li><p>Configure <tt>httpd.conf</tt> as cgi first: <span id="line-63" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
791 <ul>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
792 <li style="list-style-type:none">
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
793 <span id="line-64" class="anchor"></span><pre>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
794 Alias /wiki/ "/usr/share/moin/htdocs/"
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
795 <span id="line-65" class="anchor"></span>ScriptAlias /mywiki "/var/www/moin/mywiki/moin.cgi"
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
796 <span id="line-66" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
797 <span id="line-67" class="anchor"></span><span id="line-68" class="anchor"></span></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
798 </ul>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
799 </li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
800 </ol>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
801 <p>Restart Apache and make test that your wiki works. <span id="line-69" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
802 <span id="line-70" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
803 <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
804
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
805 <span id="line-71" class="anchor"></span><span id="line-72" class="anchor"></span><p>Make sure you use only absolute paths - relative paths will not work! <span id="line-73" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
806 <span id="line-74" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
807 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
808 data_dir = '/var/www/moin/mywiki/data/'
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
809 <span id="line-75" class="anchor"></span>data_underlay_dir = '/var/www/moin/mywiki/underlay/'
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
810 <span id="line-76" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
811 <span id="line-77" class="anchor"></span><span id="line-78" class="anchor"></span><p>If you do not want to use absolute paths, you can use Python's os module to construct the relative paths: <span id="line-79" class="anchor"></span></p>
137
cfbecd3400d3 make install-docs, intermap, underlay, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 0
diff changeset
812 <pre>
cfbecd3400d3 make install-docs, intermap, underlay, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 0
diff changeset
813 import os
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
814 <span id="line-80" class="anchor"></span>data_dir = os.path.join(os.path.dirname(__file__), 'data/')
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
815 <span id="line-81" class="anchor"></span>data_underlay_dir = os.path.join(os.path.dirname(__file__), 'underlay/')
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
816 <span id="line-82" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
817 <span id="line-83" class="anchor"></span><span id="line-84" class="anchor"></span><p>Test that the wiki works after this change. <span id="line-85" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
818 <span id="line-86" class="anchor"></span><ul>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
819 <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>. <span id="line-87" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
820 <span id="line-88" class="anchor"></span></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
821 </ul>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
822
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
823 <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
824
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
825 <span id="line-89" class="anchor"></span><span id="line-90" class="anchor"></span><p>After your wiki is running as cgi script, convert it to run with mod_python. <span id="line-91" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
826 <span id="line-92" class="anchor"></span><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: <span id="line-93" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
827 <span id="line-94" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
828 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
829 #ScriptAlias /mywiki "/var/www/moin/mywiki/moin.cgi"
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
830 <span id="line-95" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
831 <span id="line-96" class="anchor"></span><span id="line-97" class="anchor"></span><p>Add a <tt>Location</tt> directive: <span id="line-98" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
832 <span id="line-99" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
833 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
834 &lt;Location /mywiki&gt;
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
835 <span id="line-100" class="anchor"></span> SetHandler python-program
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
836 <span id="line-101" class="anchor"></span> # Add the path of your wiki directory
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
837 <span id="line-102" class="anchor"></span> PythonPath "['/var/www/moin/mywiki'] + sys.path"
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
838 <span id="line-103" class="anchor"></span> PythonHandler MoinMoin.request::RequestModPy.run
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
839 <span id="line-104" class="anchor"></span>&lt;/Location&gt;
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
840 <span id="line-105" class="anchor"></span></pre>
394
4d58b19bd3a7 make underlay install-docs interwiki
Thomas Waldmann <tw@waldmann-edv.de>
parents: 363
diff changeset
841 <span id="line-106" class="anchor"></span><span id="line-107" class="anchor"></span><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="http" href="http://modpython.org/live/current/doc-html/pyapi-interps.html">here</a> for details). <span id="line-108" class="anchor"></span></p>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
842 <span id="line-109" class="anchor"></span><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: <span id="line-110" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
843 <span id="line-111" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
844 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
845 PythonPath "['/var/www/moin/mywiki', '/prefix/lib/python2.x/site-packages'] + sys.path"
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
846 <span id="line-112" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
847 <span id="line-113" class="anchor"></span><span id="line-114" class="anchor"></span><p>Restart Apache - everything should now work correctly. <span id="line-115" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
848 <span id="line-116" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
849 <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
850
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
851 <span id="line-117" class="anchor"></span><span id="line-118" class="anchor"></span><ul>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
852 <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: <span id="line-119" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
853 <span id="line-120" class="anchor"></span></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
854 </ul>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
855 <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: <span id="line-121" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
856 <span id="line-122" class="anchor"></span></p>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
857 <pre>
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
858 &lt;Location /farm/mywiki&gt;
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
859 <span id="line-123" class="anchor"></span> ...
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
860 <span id="line-124" class="anchor"></span>&lt;/Location&gt;
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
861 <span id="line-125" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
862 <span id="line-126" class="anchor"></span><p>This will not work, because its not clear what is the script name, since with location setup, there is no real script. <span id="line-127" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
863 <span id="line-128" class="anchor"></span><p>To solve this problem, use a <tt>PythonOption</tt> directive: <span id="line-129" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
864 <span id="line-130" class="anchor"></span></p>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
865 <pre>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
866 &lt;Location /farm/mywiki&gt;
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
867 <span id="line-131" class="anchor"></span> # Location value must match the Apache Location value!
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
868 <span id="line-132" class="anchor"></span> PythonOption Location /farm/mywiki
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
869 <span id="line-133" class="anchor"></span> ...
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
870 <span id="line-134" class="anchor"></span>&lt;/Location&gt;
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
871 <span id="line-135" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
872 <span id="line-136" class="anchor"></span><ul>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
873 <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 <span id="line-137" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
874 <span id="line-138" class="anchor"></span></li>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
875 </ul>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
876
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
877 <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
878
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
879 <span id="line-139" class="anchor"></span><span id="line-140" class="anchor"></span><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. <span id="line-141" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
880 <span id="line-142" class="anchor"></span><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). <span id="line-143" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
881 <span id="line-144" class="anchor"></span><p>The Apache configuration needs <tt>mod_rewrite</tt> enabled - so the line <span id="line-145" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
882 <span id="line-146" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
883 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
884 LoadModule rewrite_module modules/mod_rewrite.so
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
885 <span id="line-147" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
886 <span id="line-148" class="anchor"></span><p>should appear in the first part of the <tt>httpd.conf</tt> configuration file. <span id="line-149" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
887 <span id="line-150" class="anchor"></span><p>The wiki and virtual host configuration sould look like this:- <span id="line-151" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
888 <span id="line-152" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
889 <pre>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
890 &lt;VirtualHost *:80&gt;
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
891 <span id="line-153" class="anchor"></span> ServerAdmin postmaster@example.com
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
892 <span id="line-154" class="anchor"></span> DocumentRoot /var/www/html
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
893 <span id="line-155" class="anchor"></span> ServerName wiki.example.com
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
894 <span id="line-156" class="anchor"></span> Alias /wiki/ "/usr/share/moin/htdocs/"
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
895 <span id="line-157" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
896 <span id="line-158" class="anchor"></span> # Rewrite urls
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
897 <span id="line-159" class="anchor"></span> RewriteEngine On
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
898 <span id="line-160" class="anchor"></span> RewriteLogLevel 0
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
899 <span id="line-161" class="anchor"></span> # map /wiki static files to Moin htdocs
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
900 <span id="line-162" class="anchor"></span> RewriteRule ^/wiki/(.*)$ /usr/share/moin/htdocs/$1 [last]
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
901 <span id="line-163" class="anchor"></span> RewriteRule ^/robots.txt$ /usr/share/moin/htdocs/robots.txt [last]
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
902 <span id="line-164" class="anchor"></span> RewriteRule ^/favicon.ico$ /usr/share/moin/htdocs/favicon.ico [last]
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
903 <span id="line-165" class="anchor"></span> # map everything else to server script
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
904 <span id="line-166" class="anchor"></span> RewriteRule ^(.*)$ /var/www/moin/mywiki/moinmodpy.py$1
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
905 <span id="line-167" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
906 <span id="line-168" class="anchor"></span> &lt;Directory "/var/www/moin/testwiki"&gt;
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
907 <span id="line-169" class="anchor"></span> # Modpy stuff
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
908 <span id="line-170" class="anchor"></span> AddHandler python-program .py
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
909 <span id="line-171" class="anchor"></span> # Add the path to the wiki directory, where
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
910 <span id="line-172" class="anchor"></span> # moinmodpy.py and wikiconfig.py are located.
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
911 <span id="line-173" class="anchor"></span> PythonPath "['/var/www/moin/mywiki'] + sys.path"
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
912 <span id="line-174" class="anchor"></span> PythonHandler moinmodpy
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
913 <span id="line-175" class="anchor"></span> &lt;/Directory&gt;
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
914 <span id="line-176" class="anchor"></span>&lt;/VirtualHost&gt;
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
915 <span id="line-177" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
916 <span id="line-178" class="anchor"></span><span id="line-179" class="anchor"></span><p>Apache should be restarted, and the FrontPage of <tt>mywiki</tt> should now appear at <tt>http://wiki.example.com/</tt>. <span id="line-180" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
917 <span id="line-181" class="anchor"></span><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>. <span id="line-182" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
918 <span id="line-183" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
919 <h1 id="head-53a11a51ff1c262df8f1f287084f8700685446d4">Older mod_python versions</h1>
209
345d0228a0bd make interwiki install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 196
diff changeset
920
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
921 <span id="line-184" class="anchor"></span><span id="line-185" class="anchor"></span><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 <span id="line-186" class="anchor"></span>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: <span id="line-187" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
922 <span id="line-188" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
923 <h2 id="head-7b2283d5184932488fe551b2cee08e28fb18230c">Use a wrapper script</h2>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
924
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
925 <span id="line-189" class="anchor"></span><span id="line-190" class="anchor"></span><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. <span id="line-191" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
926 <span id="line-192" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
927 <h2 id="head-f2a32b29f0aff0101a91c87d692d063a6e0a4ec2">Fix mod_python</h2>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
928
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
929 <span id="line-193" class="anchor"></span><p>mod_python has a small resolver bug in versions 2.7.10, 3.0.4 and 3.1.2b. <span id="line-194" class="anchor"></span>The method <tt>resolve_object</tt> in <tt>mod_python/apache.py</tt> checks the wrong <span id="line-195" class="anchor"></span>object, and so the lookup for <tt>RequestModPy.run</tt> fails. <span id="line-196" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
930 <span id="line-197" class="anchor"></span><p>To fix it you need to change the method <tt>resolve_object</tt> (around line 551 for <span id="line-198" class="anchor"></span>mod_python 3.1.2b) from <span id="line-199" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
931 <span id="line-200" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
932 <span id="line-201" class="anchor"></span><pre>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
933 if silent and not hasattr(module, obj_str):
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
934 <span id="line-202" class="anchor"></span> return None
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
935 <span id="line-203" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
936 <span id="line-204" class="anchor"></span><span id="line-205" class="anchor"></span><p>to <span id="line-206" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
937 <span id="line-207" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
938 <span id="line-208" class="anchor"></span><pre>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
939 if silent and not hasattr(obj, obj_str):
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
940 <span id="line-209" class="anchor"></span> return None
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
941 <span id="line-210" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
942 <span id="line-211" class="anchor"></span><span id="line-212" class="anchor"></span><span id="line-213" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
943 <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
944
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
945 <span id="line-214" class="anchor"></span><span id="line-215" class="anchor"></span><p>Page access gives apache error:: <span id="line-216" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
946 <ul>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
947 <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> <span id="line-217" class="anchor"></span>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>. <span id="line-218" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
948 </li>
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
949 </ul>
228
d456b1c48b09 make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 209
diff changeset
950 <span id="bottom_Include_HelpOnInstalling/ApacheWithModPython" class="anchor"></span>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
951 </div>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
952 <span id="line-60" class="anchor"></span></p>
0
77665d8e2254 tag of nonpublic@localhost--archive/moin--enterprise--1.5--base-0
Thomas Waldmann <tw-public@gmx.de>
parents:
diff changeset
953 <hr class="hr2">
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
954 <p> <span id="line-61" class="anchor"></span><span id="twisted-install" class="anchor"></span> <span id="line-62" class="anchor"></span>
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
955 <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
956
176
6ddcb13c0f4e make install-docs, interwiki, underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 137
diff changeset
957 <div lang="en" id="Include_HelpOnInstalling/TwistedWeb" dir="ltr">
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
958 <span id="top_Include_HelpOnInstalling/TwistedWeb" class="anchor"></span><span id="line-8" class="anchor"></span><span id="line-9" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
959 <h1 id="head-aadc9ea90352d5b5ad5745583f12238abc07f6b1">Using MoinMoin with Twisted</h1>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
960
394
4d58b19bd3a7 make underlay install-docs interwiki
Thomas Waldmann <tw@waldmann-edv.de>
parents: 363
diff changeset
961 <span id="line-10" class="anchor"></span><span id="line-11" class="anchor"></span><p><a class="http" href="http://twistedmatrix.com">Twisted</a> is a standalone python framework for many kinds of applications. <span id="line-12" class="anchor"></span>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. <span id="line-13" class="anchor"></span></p>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
962 <span id="line-14" class="anchor"></span><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>. <span id="line-15" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
963 <span id="line-16" class="anchor"></span><p>Another advantage is that this is all based on Python. <img src="wiki/htdocs/modern/img/smile4.png" alt=";)" height="15" width="15"> <span id="line-17" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
964 <span id="line-18" class="anchor"></span><p>First do <a href="http://moinmaster.wikiwikiweb.de/HelpOnInstalling/BasicInstallation">../BasicInstallation</a> and <a href="http://moinmaster.wikiwikiweb.de/HelpOnInstalling/WikiInstanceCreation">../WikiInstanceCreation</a>. <span id="line-19" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
965 <span id="line-20" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
966 <h2 id="head-781019b7b4433e2b39a07387d381c1ca28eb9134">Install Twisted</h2>
228
d456b1c48b09 make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 209
diff changeset
967
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
968 <span id="line-21" class="anchor"></span><span id="line-22" class="anchor"></span><p>First, install Twisted (see URL above). Many Linux distributions have Twisted packages. Please refer to the documentation of Twisted for installation information. <span id="line-23" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
969 <span id="line-24" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
970 <h2 id="head-f377d8187c2c46a84ee4a6ae292b323853a6ae0c">Configuring the Twisted server</h2>
228
d456b1c48b09 make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 209
diff changeset
971
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
972 <span id="line-25" class="anchor"></span><span id="line-26" class="anchor"></span><p>Copy the file <tt>wiki/server/mointwisted.py</tt> to your wiki directory. Edit and adapt the settings to your needs. <span id="line-27" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
973 <span id="line-28" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
974 <h3 id="head-6cf160dca6339d0a63474b5e9d1c94115980d292">System path configuration</h3>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
975
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
976 <span id="line-29" class="anchor"></span><span id="line-30" class="anchor"></span><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: <span id="line-31" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
977 <span id="line-32" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
978 <span id="line-33" class="anchor"></span><pre>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
979 sys.path.insert(0, '/path/to/moin')
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
980 <span id="line-34" class="anchor"></span>sys.path.insert(0, '/path/to/wikiconfig')
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
981 <span id="line-35" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
982 <span id="line-36" class="anchor"></span><span id="line-37" class="anchor"></span>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
983 <h3 id="head-a51f43e6a56656fb4ff7b17d487afc09442427b5">Config class options</h3>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
984
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
985 <span id="line-38" class="anchor"></span><span id="line-39" class="anchor"></span><p>If you did a standard install, the default options might be just what you need. Check and change what you like: <span id="line-40" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
986 <span id="line-41" class="anchor"></span><div>
228
d456b1c48b09 make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 209
diff changeset
987 <table>
d456b1c48b09 make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 209
diff changeset
988 <tr>
d456b1c48b09 make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 209
diff changeset
989 <td>
d456b1c48b09 make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 209
diff changeset
990 <p> <strong>Option</strong> </p>
d456b1c48b09 make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 209
diff changeset
991 </td>
d456b1c48b09 make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 209
diff changeset
992 <td>
d456b1c48b09 make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 209
diff changeset
993 <p> <strong>Default</strong> </p>
d456b1c48b09 make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 209
diff changeset
994 </td>
d456b1c48b09 make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 209
diff changeset
995 <td>
d456b1c48b09 make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 209
diff changeset
996 <p> <strong>Comment</strong> </p>
d456b1c48b09 make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 209
diff changeset
997 </td>
d456b1c48b09 make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 209
diff changeset
998 </tr>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
999 <span id="line-42" class="anchor"></span><tr>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
1000 <td>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1001 <p> docs </p>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
1002 </td>
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
1003 <td>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1004 <p> '/usr/share/moin/wiki/htdocs' </p>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
1005 </td>
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
1006 <td>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1007 <p> Path to moin shared files </p>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
1008 </td>
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
1009 </tr>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1010 <span id="line-43" class="anchor"></span><tr>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1011 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1012 <p> user </p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1013 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1014 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1015 <p> 'www-data' </p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1016 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1017 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1018 <p> If you run as root, the server will run as this user </p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1019 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1020 </tr>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1021 <span id="line-44" class="anchor"></span><tr>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1022 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1023 <p> group </p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1024 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1025 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1026 <p> 'www-data' </p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1027 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1028 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1029 <p> If you run as root, the server will run as this group </p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1030 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1031 </tr>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1032 <span id="line-45" class="anchor"></span><tr>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1033 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1034 <p> port </p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1035 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1036 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1037 <p> 8080 </p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1038 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1039 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1040 <p> Port to serve. To serve a privileged port below 1024 you will have to run as root </p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1041 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1042 </tr>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1043 <span id="line-46" class="anchor"></span><tr>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1044 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1045 <p> interfaces </p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1046 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1047 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1048 <p> <tt>['']</tt> </p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1049 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1050 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1051 <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>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1052 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1053 </tr>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1054 <span id="line-47" class="anchor"></span><tr>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1055 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1056 <p> logPath </p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1057 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1058 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1059 <p> 'mointwisted.log' </p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1060 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1061 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1062 <p> Log file. </p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1063 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1064 </tr>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1065 <span id="line-48" class="anchor"></span><tr>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1066 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1067 <p> profiler </p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1068 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1069 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1070 <p> commented python code </p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1071 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1072 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1073 <p> Useful only if you are a moin developer. </p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1074 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1075 </tr>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1076 <span id="line-49" class="anchor"></span></table>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
1077 </div>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1078 <span id="line-50" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1079 <h2 id="head-e4c385b7866dfc82bdf390d00038d1e191cd6870">Configuring wikiconfig.py</h2>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
1080
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1081 <span id="line-51" class="anchor"></span><span id="line-52" class="anchor"></span><p>The sample config file should be just fine. <span id="line-53" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1082 <span id="line-54" class="anchor"></span><div>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
1083 <table>
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
1084 <tr>
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
1085 <td>
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
1086 <p> <strong>Option</strong> </p>
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
1087 </td>
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
1088 <td>
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
1089 <p> <strong>Default</strong> </p>
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
1090 </td>
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
1091 <td>
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
1092 <p> <strong>Comment</strong> </p>
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
1093 </td>
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
1094 </tr>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1095 <span id="line-55" class="anchor"></span><tr>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
1096 <td>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1097 <p> url_prefix </p>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
1098 </td>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
1099 <td>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1100 <p> '/wiki' </p>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
1101 </td>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
1102 <td>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1103 <p> You should not change this, or images and css file will not be available to the wiki! </p>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
1104 </td>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
1105 </tr>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1106 <span id="line-56" class="anchor"></span></table>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
1107 </div>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1108 <span id="line-57" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1109 <h2 id="head-828a44c0e867e6f0fb60395a972cb6003658f76f">Starting the server on Unix</h2>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
1110
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1111 <span id="line-58" class="anchor"></span><span id="line-59" class="anchor"></span><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>. <span id="line-60" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1112 <span id="line-61" class="anchor"></span><p>Start the server with <tt>./mointwisted&nbsp;start</tt> and test your wiki at <a class="http" href="http://localhost:8080/">http://localhost:8080/</a>. Stop the server with <tt>./mointwisted&nbsp;stop</tt>. <span id="line-62" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1113 <span id="line-63" class="anchor"></span><p>For more options run <tt>./mointwisted</tt> without arguments. <span id="line-64" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1114 <span id="line-65" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1115 <h2 id="head-0457c39c25e65945e29141fa8f207afe318806fe">Starting the server on Windows</h2>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
1116
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1117 <span id="line-66" class="anchor"></span><span id="line-67" class="anchor"></span><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. <span id="line-68" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1118 <span id="line-69" class="anchor"></span><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. <span id="line-70" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1119 <span id="bottom_Include_HelpOnInstalling/TwistedWeb" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1120 </div>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1121 <span id="line-63" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1122 <hr class="hr2">
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1123 <p> <span id="line-64" class="anchor"></span><span id="linuxstandalone-install" class="anchor"></span> <span id="line-65" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1124 <h1>Linux Installation using standalone server</h1>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1125
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1126 <div lang="en" id="Include_HelpOnInstalling/StandaloneServer" dir="ltr">
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1127 <span id="top_Include_HelpOnInstalling/StandaloneServer" class="anchor"></span><span id="line-9" class="anchor"></span><p><strong>Installing and configuring standalone server</strong> <span id="line-10" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1128 <span id="line-11" class="anchor"></span><p>See also: <a href="http://moinmaster.wikiwikiweb.de/HelpOnConfiguration/IntegratingWithApache">HelpOnConfiguration/IntegratingWithApache</a> <span id="line-12" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1129 <span id="line-13" class="anchor"></span><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! <span id="line-14" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1130 <span id="line-15" class="anchor"></span><p>To install and run the standalone server: <span id="line-16" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1131 <ol type="1">
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1132 <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> <span id="line-17" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1133 </li>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1134 <li><p>Create a wiki instance as described in <a href="http://moinmaster.wikiwikiweb.de/HelpOnInstalling/WikiInstanceCreation">../WikiInstanceCreation</a> <span id="line-18" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1135 </li>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1136 <li><p>Copy <tt>moin.py</tt> to your wiki directory, where your <tt>wikiconfig.py</tt> is <span id="line-19" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1137 </li>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1138 <li><p>If you installed with <tt>--prefix</tt> option, you must edit moin.py and set <tt>docs</tt> to the correct path. <span id="line-20" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1139 </li>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1140 <li><p>Run <tt>moin.py</tt> <span id="line-21" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1141 </li>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1142 <li><p>Access your wiki at <a class="http" href="http://localhost:8000/">http://localhost:8000/</a> <span id="line-22" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1143 <span id="line-23" class="anchor"></span></li>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1144 </ol>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1145 <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. <span id="line-24" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1146 <span id="line-25" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1147 <h1 id="head-b104ff56fc1c89199447f1f2756b65995534e032">Configuring moin.py</h1>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1148
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1149 <span id="line-26" class="anchor"></span><span id="line-27" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1150 <h2 id="head-5d2a2fc430a567acd72fcaa712af23333abca0df">System path configuration</h2>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1151
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1152 <span id="line-28" class="anchor"></span><span id="line-29" class="anchor"></span><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: <span id="line-30" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1153 <span id="line-31" class="anchor"></span>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1154 <span id="line-32" class="anchor"></span><pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1155 import sys
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1156 <span id="line-33" class="anchor"></span>sys.path.insert(0, '/path/to/moin')
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1157 <span id="line-34" class="anchor"></span>sys.path.insert(0, '/path/to/wikiconfig')
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1158 <span id="line-35" class="anchor"></span></pre>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1159 <span id="line-36" class="anchor"></span><span id="line-37" class="anchor"></span><span id="options" class="anchor"></span><p> <span id="line-38" class="anchor"></span></p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1160
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1161 <h2 id="head-3cb7180f429490b9735cfc083869eaaa128ed64c">Config class options</h2>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1162
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1163 <span id="line-39" class="anchor"></span><span id="line-40" class="anchor"></span><div>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
1164 <table>
320
2506384f68c4 version bumped to 1.5.0beta6, updated docs
Thomas Waldmann <tw@waldmann-edv.de>
parents: 312
diff changeset
1165 <tr>
209
345d0228a0bd make interwiki install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 196
diff changeset
1166 <td>
329
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
1167 <p> <strong>Option</strong> </p>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
1168 </td>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
1169 <td>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
1170 <p> <strong>Default</strong> </p>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
1171 </td>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
1172 <td>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
1173 <p> <strong>Comment</strong> </p>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
1174 </td>
b577fa7d1409 preparing rc1 release, updated underlay, install-docs, ...
Thomas Waldmann <tw@waldmann-edv.de>
parents: 320
diff changeset
1175 </tr>
361
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1176 <span id="line-41" class="anchor"></span><tr>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1177 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1178 <p> name </p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1179 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1180 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1181 <p> <tt>'moin'</tt> </p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1182 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1183 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1184 <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>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1185 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1186 </tr>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1187 <span id="line-42" class="anchor"></span><tr>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1188 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1189 <p> docs </p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1190 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1191 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1192 <p> <tt>'/usr/share/moin/wiki/htdocs'</tt> </p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1193 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1194 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1195 <p> Path to moin shared files. If you used <tt>--prefix</tt> install, the default path will not work, and you must set the path to <tt>'PREFIX/share/moin/wiki/htdocs'</tt>. </p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1196 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1197 </tr>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1198 <span id="line-43" class="anchor"></span><tr>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1199 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1200 <p> user </p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1201 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1202 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1203 <p> <tt>'www-data'</tt> </p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1204 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1205 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1206 <p> If you run as root, the server will run with as this user </p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1207 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1208 </tr>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1209 <span id="line-44" class="anchor"></span><tr>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1210 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1211 <p> group </p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1212 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1213 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1214 <p> <tt>'www-data'</tt> </p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1215 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1216 <td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1217 <p> If you run as root, the server will run with as this group </p>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1218 </td>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1219 </tr>
ada478f208ec make install-docs underlay
Thomas Waldmann <tw@waldmann-edv.de>
parents: 347
diff changeset
1220 <span id="line-45" class="anchor"></span><tr>
ada478f208ec make install-docs underlay
&#