Install and upgrade moinmoin Wiki in IIS

Source: Internet
Author: User

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.

    1. 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.

    1. 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.
 

    1. 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 ')

  • In Chinese culture, open wikiconfig. py
    Change the top encoding to #-*-coding: UTF-8-*-to process Chinese characters.
    Add or modify existing configurations Code Is:

    Language_default =   ' ZH '
    Page_category_regex = U ' ^ Category [A-Z] | class $ '
    Page_dict_regex = U ' [A-Z] dict $ | dictionary $ '
    Page_form_regex = U ' [A-Z] Form $ | table $ '
    Page_group_regex = U ' [A-Z] group $ | group $ '
    Page_template_regex = U ' [A-Z] template $ | template $ '

    In fact, these can be customized, but the default compatibility will be better and more convenient for future upgrades.

 

    1. Configure IIS
    • Create a site and set its main directory to C:/Moin/simonwwiki
      . create an application.
      B. the IIS permission is read, and the execution permission is pure script.
      C. remove the IIS read permission for its subdirectory data and underlay.
      D. configure the application extension and add. CGI extension.

      the executable file is " C: \ python25 \ python.exe " -u " % S " " % S "
      extension. CGI
      action: all actions
      tick the footfall engine , check whether the file exists.

      E. set 404 to the default value for the custom error. Otherwise, a new wiki page cannot be created.

    • 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.

 

    1. 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.