The following 208 words could not be found in the dictionary of 550 words (including 550 LocalSpellingWords) and are highlighted below:

2b   ability   above   access   accessible   after   all   also   always   and   apache   are   around   as   basic   Be   be   below   bin   bug   by   can   cases   cause   cd   change   changelog   changes   Check   check   checks   class   commented   conf   config   contain   copy   Copy   cp   currently   data   default   Deploying   deployment   described   development   did   different   directly   do   docroot   documentation   does   Don   don   either   embeds   fails   Files   files   find   fix   fixed   Fixing   Follow   for   forking   found   from   get   group   Group   has   hasattr   have   htaccess   if   If   In   in   initialization   installation   installed   instance   instead   interpreter   into   is   it   It   lib   line   lines   list   live   local   lookup   main   maintainers   matches   method   Mod   mod   modpy   modpython   module   name   need   needed   needs   newer   next   no   None   not   Note   obj   object   of   on   only   operating   or   other   out   own   package   part   parts   patch   path   Path   Please   possibilities   previous   process   promised   python   Python   read   refer   releases   reported   Request   resolve   resolver   restart   return   run   sample   saves   script   scripts   section   see   server   setup   share   should   silent   small   so   some   special   stored   str   sure   sys   system   that   The   the   there   they   This   this   time   to   To   two   Use   use   used   User   user   users   Using   using   usr   verify   version   versions   was   where   which   wide   wikiname   will   with   within   won   works   worry   wrapper   wrong   You   you   your  

Clear message

Using MoinMoin with apache + mod_python

[WWW]mod_python embeds the python interpreter into the apache server. This saves initialization time and the need of forking cgi scripts. It doesn't have the ability to run as different users. It will always run as the main apache user and group. Be sure that your wiki data files are accessible by your apache server!

/!\ mod_python versions 2.7.10, 3.0.4 and 3.1.2b have a bug in apache.resolve_object This bug was reported to the mod_python maintainers and will be fixed in the next releases, as they promised. The sample files use a wrapper to get around this bug, so there is no need to worry.

Deploying MoinMoin with mod_python

Follow the basic apache installation for your operating system as described in other parts of the MoinMoin installation documentation. Don't copy moin.cgi, cause you won't need it. Be sure that the apache process can access the wiki data files (check User and Group in your apache.conf).

Copy the sample moin_modpy.htaccess as .htaccess to the path below which your wiki instance should be found:

cd /usr/local/share/moin
cp wiki/cgi-bin/moin_modpy.htaccess /path/to/your/docroot/.htaccess

Check the .htaccess that the PythonPath matches your installation. It should contain the path where the wrapper is installed (Note: the wrapper does not have to be within your DOCROOT). You can also change the name of your instance (<Files wikiname>).

Check sys.path of It needs to find the MoinMoin package (not needed if MoinMoin is installed system wide) and your

In some cases you need to restart apache after changes to py files used by mod_python. Please refer to the mod_python documentation.

Fixing the mod_python bug

/!\ If you did use the wrapper setup from the previous section, you don't need to do this.

mod_python has a small resolver bug in versions 2.7.10, 3.0.4 and 3.1.2b. The method resolve_object in mod_python/ checks the wrong object, and so the lookup for fails. You have two possibilities to live with it: either use the wrapper script or fix the bug.

To fix it you need to change the method resolve_object (around line 551 for mod_python 3.1.2b) from

        if silent and not hasattr(module, obj_str):
            return None


        if silent and not hasattr(obj, obj_str):
            return None

This bug is currently in all versions of mod_python (2.7.10, 3.0.4, 3.1.2b) and should be fixed in newer mod_python versions (bug and patch are reported to the mod_python development list). Please read the changelog of mod_python to be sure that you have a fixed version, or verify the lines on your own!

Deploying with a fixed mod_python

/!\ This section only works with a fixed mod_python (see previous section)!

Follow the deployment documentation above. Use the special commented out section of moin_modpy.htaccess instead of the default wrapper using part.

Check the PythonPath in the .htaccess that it matches your installation. It should contain the python lib path where the MoinMoin package is stored (not needed if MoinMoin is installed system wide) and the path to your

The wrapper script is not needed, cause the RequestModPy class is used directly by mod_python.