The installation and upgrade of moinmoin wiki are relatively simple, but you still need to pay attention to some details. the Wiki version is later than 1.5 in this article. It is installed on a single Wiki in CGI Mode, and the operating system is Windows 2003. for details about other configurations, refer to the official homepage or the Wiki documentation.
- Preparations
First you need to download the latest python for Windows Installation version in the http://www.python.org/download/. Install Python process will not go into detail, one way to next. Then in the http://moinmoin.wikiwikiweb.de/download the latest moinmoin wiki installation package.
Environment in this example:
Host Name: simonw-Server
Python version 2.5,
Python installation path: C: \ python25,
Wiki version 1.5.7,
Wiki decompress the installation file directory c: \ moininstall,
The Wiki installation directory is c: \ Moin.
The above environment should be changed according to your actual situation.
- Install Wiki
Run the installation command to generate the files required by the Wiki. Run the following command in cmd command line mode:
C:
Cd c: \ moininstall \ Moin- 1.5.7
C: \ python25 \ python.exe setup. py -- Quiet install -- prefix = " C: \ Moin " -- Record = Install. Log
After the execution is complete, the Lib will be generated under C: \ Moin (main runProgram), Share (template of the Wiki instance), and scripts.
- Create a wiki instance
- Create a wiki instance directory under the c: \ Moin directory. I am calling it simonwwiki. copy some templates in the share directory to C: \ Moin \ simonwwiki.
Run:
Cd C: \ Moin
MD simonwwiki \ data
MD simonwwiki \ underlay
xcopy share \ Moin \ data simonwwiki \ data/E
xcopy share \ Moin \ underlay simonwwiki \ underlay/E
copy share \ Moin \ Server \ Moin. CGI simonwwiki \
copy share \ Moin \ config \ wikiconfig. PY simonwwiki \
copy share \ Moin \ htdocs \ index.html simonwwiki \ default.htm mainly involves copying the data (Wiki user data page Directory), underlay (wiki system document page Directory) folder, and Moin. CGI (main caller), wikiconfig. PY (Wiki configuration file), default.htm (transition transfer page) file.
- Open the Moin. cgi file and add the following two configurations:
Specify the location of the Wiki Program
SYS. Path. insert (0, 'c:/Moin/lib/Site-packages ')
Specify the location of the wikiconfig. py configuration file
SYS. Path. insert (0, 'c:/Moin/simonwwiki ')
- Configure IIS
- Set c: \ Moin \ share \ Moin \ htdocs to the virtual directory named wiki under the site. Use the default settings. here are some static files, site skins, CSS, images, and other files required by the web.
- Set the IIS web service extension and add c: \ python25 \ python.exe-U "% s" "% s.
- The file permissions of the sub-directories data and underlay. In the resource manager or IIS, right-click the permission and grant the write and modification permissions to the IUSR _ simonw-server users, in this way, you can create a wiki page.
- The application pool uses the default network service account. In special cases, you can use a local account. We recommend that you use a separate application pool for wiki.
- On the home page, Use http: // localhost/Moin. cgi/systempagessetup to install the Chinese Language Pack.
- Upgrade
All user data is in c: \ Moin \ simonwwiki. If you have a custom skin, it will be in c: \ Moin \ share \ Moin \ htdocs, so back up the two directories. the upgrade process is simple. after the backup, delete everything except c: \ Moin \ simonwwiki and c: \ Moin. Execute Step 2 to install Wiki and recreate the virtual directory named wiki. you do not need to stop or restart IIS throughout the process.
In addition, if the system documentation is updated, you need to re-copy the Underlay in share to C: \ Moin \ simonwwiki to replace the existing Directory. Then you need to re-install the Chinese Language Pack on the home page.