Before you install MoinMoin, you must have the necessary infrastructure in place. This procedure explains the steps necessary to install the infrastructure and provides detailed instructions for the installation of MoinMoin.

Downloading and installing all of the required components will require almost 100 MB of disk space. The table below shows the approximate sizes of the various components.


Download MB

Installation MB













Many users prefer to install software products in a folder other than the installation default. Python typically changes the default installation folder name with each point release, and Apache has changed the default installation folder name with the release of version 2. Instead of enumerating all the possibilities at each step, this procedure will use the Reference name in the table below as the installed location for each product. Substitute your real installation location when editing configuration files and entering commands.



Installation Default or Typical Name



C:\Program Files\Apache Group\Apache2





wiki instances

C:\My Documents\Moin

This installation procedure was tested with Apache 1.3.26 and Apache 2.0.44 for Windows running on Windows/ME, and using Python 2.1, 2.2 and 2.3a.


MSI Installer

Installation of Apache and one alternative distribution of Python require the Microsoft MSI Installer. The latest version, 2.0, was released in September of 2001. You will know you don't have the correct version if you receive errors after double-clicking on a file name ending in .msi. To get the latest version, go to, search for msi installer, and follow the instructions. There are two versions, one for Windows/ME, 98, and 95; and another for Windows 2000 and NT. Windows/XP has the 2.0 version and requires no update.

WinZip, unzip, ...

MoinMoin is distributed in a zipped format for Windows users. Some versions of Windows are distributed with an unzip utility, many other Windows users rely on WinZip, a popular shareware program, available from There are many alternative compression utilities that are compatible with the .zip format. Since the .zip format is so commonly used for downloaded files, this procedure assumes you have a zip utility and know how to use it. If not, download WinZip or an alternative and review the instructions.

WinCVS, TortoiseCVS, or Neither

Because development snapshots of the Nightly CVS tarball and Stable CVS tarball of MoinMoin are now downloadable directly from SourceForge, few users will need to install a CVS utility. In general, the latest MoinMoin release will be the most stable and best documented choice for new users, Stable CVS should be trouble free and may have useful new features but may lack corresponding documentation, and Nightly CVS should be chosen only if you are a Python programmer and want to help test freshly coded features.

CVS utilities are discussed here only because they are uncommon in the Windows environment, and many Windows users may not be familiar with them. If you intend to modify MoinMoin source code to add your own new features, then you may want to consider installing a CVS utility. CVS utilities allow you modify your local MoinMoin source code and automatically merge your changes with changes made by other developers when you update your local copy of the MoinMoin source code from the CVS Head. Even better, if you wish to submit your nifty new feature to the MoinMoin developers for inclusion in a future MoinMoin release, you can create a patch of your enhancement that a MoinMoin developer can easily install and test on their own local copy of the MoinMoin source.

If you are unfamiliar with CVS or are not a Python programmer, your choice for now should definitely be Neither. You can always revisit this step later. While either CVS utility is easy to install, you should expect to spend a few days learning CVS concepts.

WinCVS is probably the most widely installed CVS utility. You can read more about it in MoinMoinWinCvs.

TortoiseCVS is an add-on component for Microsoft's Windows Explorer. It works by changing the icons used for CVS-related folders and files and adds entries to the Windows Explorer menus. One advantage of TortoiseCVS for one-person development shops is that it can create and update a CVS repository for your own development projects. WinCVS requires a separate CVS repository utility to function and there are few/none available for Windows. You can learn more about TortoiseCVS at Don't be confused by the alternative TortoiseSVN product -- you will need TortoiseCVS.

With either WinCVS or TortoiseCVS, you can install MoinMoin directly from your \CVSRoot\moin folder, just follow the installation instructions below as if you unzipped the current release into that folder. Note there is a potential problem if you instruct WinCVS to mark files with the Read-Only attribute. The setup program will not work correctly the second time you try to reinstall MoinMoin from \CVSRoot\moin because it will fail while attempting to overwrite the Read-Only files from the prior installation.

Installing Apache

To obtain the latest version of Apache, go to, and click on the link to HTTP Server. Find the link to download the Win32 Binary (MSI Installer) version. Read the Apache documentation to determine the correct installation procedure for your situation. Questions and problems with the Apache installation process should be resolved through use of the resources provided by the Apache organization. Be sure your webserver runs correctly before proceeding.

Warning: the procedure described above tends to trivialize the installation of the Apache web server. Apache can be installed and running on your PC in a very few minutes with only a cursory examination of the Apache documentation. Before you undertake the installation of any web server that can be accessed through the internet, you should exercise a controlled level of paranoia and assess the potential damage that may be caused by hackers accessing or destroying sensitive data. This should include not only the all data which resides on the PC which will host the Apache web server, but all other PCs on the local LAN which participate in any form of file sharing.

Windows/ME, 98SE, 98, 95, and probably NT should be considered inappropriate hosts for any Apache web server that can be accessed via the internet. Use either Windows/2000 or XP and install all security patches available for your operating system.

Do not let the above discourage you from installing MoinMoin. Most of the internet activity probing your system for weaknesses will be from virus infected Windows/NT systems running IIS whose owners have neglected to apply available security patches. The starting Apache configuration is secure and you will not have a problem provided you:

Installing Python

There are currently two different distributions of Python available for Windows. The normal Python distribution is available from This is distributed as a windows executable (.exe) file.

An alternative distribution called ActivePython is available from This distribution uses the MSI Installer and contains some tools specific to the Windows operating system and a popular Windows IDE called Pythonwin. ActivePython is available for free; an email address is requested (but not required) before downloading.

MoinMoin will work with either distribution, but requires Python release 2.0 or later. Download and install the distribution of your choice. Questions and problems dealing with the Python installation process should be resolved through the use of resources provided by or ActiveState. Be sure your Python installation is correct before proceeding.

For file locking, you will also need to download and install the Win32 extensions for Python (aka win32all). Choose the version matching the Python version you are using. The alternative ActivePython distribution discussed above include these extensions.

Installing MoinMoin

Download the current version of MoinMoin from into C:\TEMP or an alternative location. Be sure to choose the version in the .zip format rather than the .tgz or .tar.gz format. (If you have decided to install either the stable CVS tarball or nightly CVS tarball for some reason that makes sense to you, your zip utility may be able to read the .tar.gz format. If not, try WinZip.)

Using your favorite unzip utility discussed above, unzip the MoinMoin distribution file into the same folder. You should then have a folder C:\TEMP\moin-x.x where "x.x" is the current release number. This folder will contain a file in addition to several other files and subfolders.

Open an MS-DOS or console window and enter the commands:

cd \TEMP\moin-x.x
C:\Python\python install --record=install.log

The above commands will add MoinMoin to your C:\Python installation and create an install.log file in C:\temp\moin-x.x listing all the copied files. You may use Windows Explorer to examine the newly created folders within C:\Python. You should find a C:\Python\share\moin folder with subfolders cgi-bin, data, and htdocs. If you have Python 2.0 or 2.1 you will find a folder C:\Python\MoinMoin, but with Python 2.2 and later it will be C:\Python\Lib\site-packages\MoinMoin. The MoinMoin folder contains many Python scripts and several subfolders.

You are now ready to create a wiki instance.

Creating a Wiki Instance

It is a good practice to try to keep all of your personal or site specific data under a few root folders. This way you can easily backup your important data on a regular basis without having to waste time either backing up static files or picking out dozens of important folders scattered throughout your folder structure. You should avoid placing your wiki data under the C:\Python folder so that you can later upgrade Python or MoinMoin without accidentally overwriting or deleting your wiki data. For the same reason, you probably don't want to place your wiki data within the C:\Apache folder. The default personal folder under many Windows versions is called C:\My Documents.

Choose a location appropriate for you; the following instructions assume you will be creating one or more wiki instances in C:\Moin\ and the first wiki instance will be named mywiki.

You may replace the name mywiki with almost any name you wish, but do not use wiki because that is used by MoinMoin for loading standard images and style sheets. Although this can be changed later, the plan is that the name you choose for mywiki will become part of the url used to access your site, e.g.

Start an MS-DOS or console window and enter the commands below. This will create a clone of the MoinMoin wiki in the mywiki folder. The wikidata folder will be used later for mywiki customization, such as logos and style sheets.

cd C:\ 
md Moin
md Moin\wikidata
md Moin\mywiki
md Moin\mywiki\data
cd \Python\share\moin
xcopy data        C:\Moin\mywiki\data /E
copy  cgi-bin\*.* C:\Moin\mywiki\*.*

If your server is going to run multiple wikis, you need to create additional clones. The commands below will create mywiki2. The wikidata folder created above can contain custom logos and style sheets for all your wikis.

cd C:\ 
md Moin\mywiki2
md Moin\mywiki2\data
cd \Python\share\moin
xcopy data        C:\Moin\mywiki2\data /E
copy  cgi-bin\*.* C:\Moin\mywiki2\*.*

Use your editor to edit the file C:\Moin\mywiki\moin.cgi. Change the first line (the shebang statement) to point to your local Python executable program. Note the forward slashes -- Apache uses the Unix convention for folder separators. This tells Apache the moin.cgi file is an executable script that will be interpreted by a program to be loaded from C:/Python/python.

The next step is to tell Apache that is has more work to do. Use your editor to append the following lines to C:\Apache\conf\httpd.conf. Note the presence and absence of trailing slashes, it is important to enter the lines exactly as shown below.

Alias       /wiki/     "C:/Python/share/moin/htdocs/"
Alias       /wikidata/ "C:/Moin/wikidata/"
ScriptAlias /mywiki    "C:/Moin/mywiki/moin.cgi"

The Alias lines for wiki and wikidata above instructs Apache to serve images, style sheets, etc. from the specified folders and subfolders. The ScriptAlias line is needed once for each wiki instance, so if you have multiple wikis, repeat the statement using mywiki2, mywiki3, etc. The ScriptAlias statement instructs Apache to execute scripts from the specified folder. See the Apache docs for a complete explanation.

Test your changes by restarting your Apache server and try to access your newborn wiki with the URL You should see the FrontPage, try to edit and save it, and if that works, verify your edit is reflected on the RecentChanges page.

Finally, edit C:\Moin\mywiki\ and at least change sitename to the name of your wiki:

sitename = 'My Wiki'

If you want to replace the MoinMoin logo with one named mywikilogo.gif, copy your logo to C:\Moin\wikidata and change logo_url in as follows:

logo_url = '/wikidata/mywikilogo.gif'

For a personal or intranet installation, you'll normally also add this line to

allowed_actions = ['DeletePage', 'AttachFile']

Additional configuration details can be found in HelpOnConfiguration.

And now, it is up to you and your user community to transform your wiki into an informative and useful tool. You will probably want to retain most of the HelpOn~ pages dealing with editing, delete those pages with irrelevant information (like this page, don't let your users or boss know how easy it was to install MoinMoin ;) ), and rewrite the FrontPage to introduce your wiki topic.


The first place to look for clues when the unexpected happens is to try changing your url to: If Apache can find and execute the module C:/Moin/mywiki/moin.cgi, a page of diagnostics titled MoinMoin CGI Diagnosis will be displayed. Check the output for error messages.

The second place to look for is C:\Apache\logs\error.log. The following are common errors grouped by the message displayed by your browser.

Internal Server Error

If the Apache log shows a message "The system cannot find the file specified." then a possibility is the shebang statement in moin.cgi is incorrect.

If the Apache log shows a different error message, then the MoinMoin Python scripts may be abending. To determine the cause, you could try temporarily renaming moin.cgi to, loading with the Python idle IDE and executing it to determine if there are any error messages.

Not Found

If the Apache error log shows the message "File does not exist: C:/Apache/htdocs/mywiki", the ScriptAlias statement in httpd.conf may be incorrect.

The Page Cannot be found

If the Apache error log shows the message "File does not exist: C:/Apache/htdocs/????", you may have mistyped the url "" into your browser.

FrontPage Loads Without Icons

If the Apache Error log shows many error messages "File does not exist: C:/Apache/htdocs/wiki", then the Alias statement in httpd.conf may be incorrect.