UserPreferences

HelpOnInstalling/BasicInstallation


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

able   above   action   add   After   after   already   always   and   Apache   append   archive   are   area   backup   Basic   basic   be   Before   bin   but   cache   call   can   cd   Change   change   changing   comes   command   commands   complete   Computer   conf   consult   context   correctly   created   creates   css   current   data   default   depending   details   Development   different   directive   Directly   directories   directory   disk   distribution   do   doc   document   don   done   download   driver   Env   environment   Environment   especially   etc   exact   exactly   example   explain   files   first   following   For   for   formatter   from   go   group   have   htdocs   httpd   i18n   id   If   img   import   in   inst   install   Installation   installation   installed   Installing   instructions   integrate   interested   into   is   it   item   know   layout   like   likely   list   ll   loaded   macro   manual   means   mechanism   menu   might   module   Modules   modules   more   My   named   need   net   not   note   of   on   option   or   our   package   pages   parser   path   persistent   php   plugin   prefix   print   process   profile   project   Properties   Python   python   quiet   re   read   record   root   says   script   Scripts   scripts   search   see   set   Set   setup   several   share   showed   showfiles   slightly   sourceforge   specific   standard   step   steps   structure   suitable   support   sys   system   systems   T4   take   tell   temporary   text   that   The   the   then   There   theses   This   this   tmp   to   To   twisted   unpack   unpacking   unzip   Use   use   used   user   using   usual   value   variable   version   versioned   W2   W9x   warning   way   ways   We   we   web   webapi   what   when   where   which   will   Windows   won   work   You   you   your   yourself   zip  

Clear message

Basic Installation

Before you can integrate MoinMoin into your web environment, you have to do the basic installation using the standard Python distutils mechanism. We'll explain the usual steps you need to take to do this. For more details on the distutils installation process, consult the [WWW]Installing Python Modules document of your Python manual.

The first step is to unpack the distribution archive, which you have done already when you loaded this instructions from your disk. If you read this on the web, the distribution comes in a versioned ZIP or TAR archive, which you can unpack in the usual ways, into a temporary directory (/tmp on UNIX, C:\TEMP on Windows). The distribution archive will always unpack into a directory named moin-<version>, for example moin-1.1. To download the distribution archive, go to the [WWW]download area.

After unpacking, to install into a specific directory (C:\moin in our example), call setup.py after changing your current directory to the distribution directory. The following commands can be used to complete theses steps:

This creates the following directories in "C:\moin" (note that on a UNIX system, the directory layout will be slightly different):

You will likely see the following warning:

This means exactly what it says, you need to add your install directory to the search path of Python. There are several ways to do this:

Environment variable

Change PYTHONPATH in a way that is persistent (/etc/profile.d on UNIX, AUTOEXEC.BAT on W9x, the Properties item in the context menu of My Computer on NT4 and W2K)

Apache "httpd.conf"

Use the SetEnv directive to set PYTHONPATH to a suitable value, for example:

    SetEnv PYTHONPATH "C:\moin"

"moin.cgi"

Directly add your installation directory to the CGI driver script, like this:

    import sys
    sys.path.append('C:/moin')

If you use the following default installation command, MoinMoin will be installed to the Python directory:

You won't need to change your PYTHONPATH then, but depending on your system environment you might not be able to use that command, especially when you are not the root user on a UNIX system. If you don't know where your Python directory is, this command will tell you:

The directory structure we showed above will then be created in that directory. If you're interested in the exact list of files that are installed, use the --record option of distutils.