* Add wipi.fcgi fastcgi script. It is the the standard moin fcgi script,
authorMatthijs Kooijman <matthijs@stdio.flexvps.nl>
Sun, 8 Jun 2008 15:30:33 +0000 (17:30 +0200)
committerMatthijs Kooijman <matthijs@stdio.flexvps.nl>
Sun, 8 Jun 2008 15:30:33 +0000 (17:30 +0200)
   modified to find its configuration relative to its own location.

wipi.fcgi [new file with mode: 0755]

diff --git a/wipi.fcgi b/wipi.fcgi
new file mode 100755 (executable)
index 0000000..07234d2
--- /dev/null
+++ b/wipi.fcgi
@@ -0,0 +1,41 @@
+#!/usr/bin/python
+# -*- coding: iso-8859-1 -*-
+"""
+    MoinMoin - FastCGI Driver Script
+    
+    @copyright: 2007 MoinMoin:ThomasWaldmann
+    @license: GNU GPL, see COPYING for details.
+"""
+
+import sys, logging
+
+# Path to MoinMoin package, needed if you installed with --prefix=PREFIX
+# or if you did not use setup.py.
+#sys.path.insert(0, 'PREFIX/lib/python2.3/site-packages')
+
+# Path of the directory where wikiconfig.py is located.
+# YOU NEED TO CHANGE THIS TO MATCH YOUR SETUP.
+#sys.path.insert(0, '/etc/moin')
+
+import os
+# Path of the directory where farmconfig is located (if different).
+sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'conf'))
+
+# Debug mode - show detailed error reports
+#import os
+#os.environ['MOIN_DEBUG'] = '1'
+
+from MoinMoin.server.server_fastcgi import FastCgiConfig, run
+
+class Config(FastCgiConfig):
+    #loglevel_file = logging.DEBUG  # adapt if you don't like the default
+    logPath = os.path.join(os.path.dirname(__file__), os.path.pardir, os.path.pardir, 'logs', 'wipi.log')
+
+    properties = {}
+    # properties = {'script_name': '/'} # use this instead of the line above if your wiki runs under "/" url
+
+    # for backlog, we use a default of 5. if the listen(backlog) call crashes for you, try a smaller value!
+    # backlog = 1
+
+run(Config)
+