- Creating a Wiki Instance
Before you install MoinMoin, make sure you have the necessary infra-structure in place, namely the Internet Information Services webserver (any version should be OK), and a Python installation (version 2.3 is required, the latest python release is recommended).
From Microsoft: (http://www.microsoft.com/windows2000/en/server/iis/)
Click Start, point to Settings, click Control Panel and start the Add/Remove Programs application. Select Configure Windows, click the Components button, and then follow the on-screen instructions to install, remove, or add components to IIS.
Download Python 2.3.4 and install it. Python installation is done via a standard Windows installer program.
Alternatively, you may download the ActivePython distribution as a Microsoft Installer package.
C: cd \temp unzip moin-1.3.zip cd moin-1.3 python setup.py install --prefix=C:\Moin --record=install.log
Creating a Wiki Instance
md mywiki md mywiki\data md mywiki\underlay xcopy share\moin\data mywiki\data /E xcopy share\moin\underlay mywiki\underlay /E copy share\moin\server\moin.cgi mywiki\ copy share\moin\config\wikiconfig.py mywiki\ copy share\moin\htdocs\index.html mywiki\default.htm
"mywiki" is the name of your wiki instance, you might want to chose a different name best fitting the intended use of this instance; just don't name it simply "wiki", because that would result in confusion and problems later on.
We have to make sure that moin.cgi can find the MoinMoin directory, so that "import MoinMoin" will work. The easiest way to make sure MoinMoin can be imported is to append to sys.path within moin.cgi.
1 #!python 2 import sys 3 sys.path.append('C:/Moin/Lib/site-packages')
Right click on Default Web Site and choose New => Virtual directory. This will bring up a wizard with the mandatory useless first screen, hit next. Enter "wiki" for the alias name and hit next. Browse to "C:\Moin\share\moin\htdocs" and hit next. Leave the Access permissions at their defaults and hit next. And now you're done, hit finish!
Now you need to setup the 'mywiki' alias so that it will run Python to interpret .cgi files. On Windows Server 2003, you will need to click the Create button under Application Settings to create an application space. Right click on your new 'mywiki' alias and choose Properties. On the first tab (Virtual Directory), click the Configuration button. The first tab is the App Mappings tab, which defines which programs to use for each file exetension. Click Add. Browse to your python.exe (probably something like c:\pythonXX\python.exe). Then add -u "%s" "%s" after the Python executable path. The Executable line will look something like this: "C:\Python22\python.exe" -u "%s" "%s". In the Extension box enter .cgi with the begining period. Make sure that the Check that file exists option is not checked (if it is, MoinMoin won't be able to display sub pages). Ok, you're done with the alias configuration, click OK several times to get back out of all the dialog boxes.
That is all, try to access your new-born wiki with the URL "http://127.0.0.1/mywiki/". You should see the FrontPage, try to edit and save it, and if that works, see if your edit is reflected on the RecentChanges page.
NOTE: The configuration variable "url_prefix" in "wikiconfig.py" should match the alias for "C:\Moin\share\moin\htdocs" or themes will not work ("/wiki" for the instructions above). This way, any reference in "wikiconfig.py" to "/wiki/something" will look in the shared data directory and a reference to "/mywiki/something" will look in the wiki instance directory. These are considered absolute paths because relative paths will not work correctly.
Starting with MoinMoin 1.3.5, it seems you need to change the Custom Errors setting for 404 before you can create new pages. You can accomplish this by performing the following steps:
IIS 6.0 (Windows Server 2003)
The instructions below also apply to IIS 6.0 but the more aggressive security settings in newer version of IIS disallow the usage of unknown CGI extensions. That means you will always get a 404 error unless you do this:
Under Windows Server 2003, you will also need to give your IUSR_MACHINENAME account Modify access to the mywiki\data and mywiki\underlay sub-directories, as file system permissions are more restricted by default than previous Windows versions.
If some images like InterWiki and WorldWideWeb don't show up, it could have been because of incorrect permissions or a bad "url_prefix" in "wikiconfig.py" or the cached pages need to be updated by an Edit or deleting them in the data folder.
Check your URL regular expressions in the "wikis" list in "farmconfig.py". Content-type: text/html;charset=utf-8 MoinMoin Configuration Error Could not find a match for url: "servername/wikiname/moin.cgi? Check your URL regular expressions in the "wikis" list in "farmconfig.py".