Previous Topic: Define MediaWiki Database

Next Topic: Create Wiki Service Template


Define MediaWiki Content

These files are the application files that the wiki needs for running.

Follow these steps:

  1. Click Resources, and in the Explore tree, right-click OnDemand Services, and select New Application.

    The Define an Application wizard opens in the Application Details panel.

  2. Specify the Name, Version, and Vendor for the application.
  3. Specify the location of the application files (absolute or relative path to the Staging folder).
  4. Specify PHP and MediaWiki Database as prerequisites for this application.
  5. Click Next.

    The System Requirements panel opens.

  6. Set the following recommended values:
  7. Click Next.

    The Configure Installation Actions panel opens. You will define two installation actions: Copy Files and Update DB Server.

  8. Click + to define the Copy Files action.
    1. On the Select Installation Action panel, in the Action field, input the command to execute:
      xcopy
      
    2. Enter a description for the action.
    3. Click Next.
    4. On the Define Installation Action Options panel, add the following two options:
      %CD%\* C:\Apache\htdocs
      
      /S
      
    5. Click Finish.

      The action is saved.

  9. Click + to define the Update DB Server action.
    1. On the Select Installation Action panel, select Update File from the Action drop-down list.
    2. Enter a description for the action.
    3. In the File Name field, enter the path to the configuration file: C:\Apache\htdocs\LocalSettings.php
    4. Click Next.
    5. On the Define Installation Action Options panel, add the following five options:
      CONFIG_FILE_ACTION=FILEUPDATE
      
      CONFIG_FILE_NAME=C:\Apache\htdocs\LocalSettings.php
      
      #DB_SERVER#=%DEPENDINGHOST%
      
      #BLOG_TITLE#=<Wiki Title>
      
      #DBPASSWORD#=pass
      
    6. Make the #DB_SERVER#, BLOG_TITLE, and #DBPASSWORD# options user editable.
    7. Click Finish.

      The action is saved.

  10. Click Next, and then Finish.

    The MediaWiki Content application is saved.