The following 165 words could not be found in the dictionary of 1275 words (including 1275 LocalSpellingWords) and are highlighted below:
adapt   advantage   another   applications   arguments   at   Basic   be   below   Besides   cached   can   Check   class   close   cmd   Comment   commented   Config   config   configuration   Configuring   contains   Contents   Creation   Default   default   developer   did   dir   distributions   docs   documentation   Don   Double   driven   enhancing   entries   entry   event   file   files   finds   For   for   framework   from   general   group   hardcoded   htdocs   if   If   ignored   imports   including   information   initialized   initscript   insert   Installation   installation   Instance   interfaces   interpreter   itself   just   kinds   like   list   listen   loaded   localhost   Log   log   Mac   make   Many   many   memory   might   mointwisted   montwisted   more   need   needs   networking   new   On   on   one   only   options   or   Otherwise   packages   path   Path   performance   persistently   Please   pointing   port   Port   prefix   privileged   probably   profiler   python   refer   request   root   run   same   sample   scripts   section   see   serve   settings   share   shared   should   skip   standard   Starting   startup   static   stop   Stop   sure   sys   System   Table   terminal   that   This   this   time   to   To   trac   twistd   Twisted   twistedmatrix   Unix   used   Useful   user   Using   usr   value   via   want   webserver   what   where   which   wikiconfig   will   window   Windows   with   without   working  

Clear message
Italiano English
Locked History Actions


Using MoinMoin with Twisted

Twisted is an event-driven networking framework for many kinds of applications. For MoinMoin Twisted is used as a web server that just imports MoinMoin persistently. This has the advantage that the Python interpreter and all Python scripts (including Twisted itself and also MoinMoin) is only loaded and initialized one time, and that data can be cached in memory from request to request, enhancing the performance of MoinMoin.

Besides the general installation you need 3 files:

  1. the script /path/to/cgi-dir/mointwisted (see "Starting the server" below)

  2. the webserver script file like (which needs to be in the same directory where your working directory is).

  3. the configuration file like /path/to/wikiconfig-dir/

Install Twisted

First, install Twisted (see URL above). Many Linux distributions have Twisted packages. Please refer to the documentation of Twisted for installation information.

Configuring the Twisted server

Copy the file wiki/server/ to your wiki directory. Edit and adapt the settings to your needs.

System path configuration

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:

sys.path.insert(0, '/path/to/moin')
sys.path.insert(0, '/path/to/wikiconfig')

Config class options

If you did a standard install, the default options might be just what you need. Check and change what you like:






Path to moin shared files



If you run as root, the server will run as this user



If you run as root, the server will run as this group



Port to serve. To serve a privileged port below 1024 you will have to run as root



A list of interfaces the server will listen to. If the list contains the entry '' (like for the default configuration), all other entries are ignored and the server will listen to all interfaces.



Log file.


commented python code

Useful only if you are a moin developer.


The sample config file should be just fine.

Don't change url_prefix_static as the default value is hardcoded in the Twisted server.

Starting the server

on Unix

On GNU/Linux, Mac OS X or another POSIX-like OS, copy wiki/server/mointwisted to your wiki directory. You might want to adapt PYTHONPATH and the path to twistd.

Start the server with ./mointwisted start and test your wiki at http://localhost:8080/. Stop the server with ./mointwisted stop.

For more options run ./mointwisted without arguments.

If you want to start the server via initscript make sure mointwisted finds on startup!

on Windows

Copy wiki/server/mointwisted.cmd to your wiki directory. You might have to change the path pointing to the python-scripts directory.

Double click mointwisted.cmd to start the server. It will create a new terminal window. To stop the server, close the terminal window.