Previous Topic: Define Applications for Wiki

Next Topic: Define PHP


Define Apache HTTP Server

Apache HTTP Server is the host on which the wiki will be running. You install the web server as a service.

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.
  4. Click Next.

    The System Requirements panel opens.

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

    The Configure Installation Actions panel opens. You will define four installation actions: Disable Windows Firewall, Disable Windows Firewall on Windows 2003, Install Apache Server, and Reboot.

  7. Click + to define the Disable Windows Firewall action.
    1. On the Select Installation Action panel, in the Action field, input the command to execute:
      netsh advfirewall set currentprofile state off
      
    2. Click Next.
    3. On the Define Installation Action Options panel, only check the preview and click Finish.

      The action is saved.

  8. Click + to define the Disable Windows Firewall on Windows 2003 action.
    1. On the Select Installation Action panel, in the Action field, input the command to execute:
      netsh advfirewall set opmode disable & if "%errorlevel%"=="1" exit /b 0
      
    2. Click Next.
    3. On the Define Installation Action Options panel, only check the preview and click Finish.

      The action is saved.

  9. Click + to define the Install Apache Server action.
    1. On the Select Installation Action panel, in the Action field, input the command to execute:
      cmd.exe /c start /w msiexec.exe
      
    2. Click Next.
    3. On the Define Installation Action Options panel, add the following four options:
      /i %CD%\httpd-2.2.22-win32-x86-openssl-0.9.8t.msi
      
      INSTALLDIR=C:\Apache
      
      SERVERADMIN=admin@localhost.com
      
      SERVERNAME=%LOCALHOST%
      
      AgreeToLicense=1
      
      ALLUSERS=1
      
      RebootYESNo=No
      
    4. Check the action preview and click Finish.

      The action is saved.

  10. Click + to define the Reboot action.
    1. On the Select Installation Action panel, in the Action field, input the command to execute:
      cmd.exe /c shutdown -r -t 20 & exit /b 1641
      
    2. Click Next.
    3. On the Define Installation Action Options panel, only check the preview and click Finish.

      The action is saved.

  11. Click Next, and then Finish.

    The Apache HTTP Server application is saved.