r1 - 20 Jan 2010 - 09:49:51 - OlegSmolovYou are here: Wiki >  AppLogic27 Web > CatWebserversIISCid
ALERT! AppLogic 2.7/2.8 Documentation The latest production release is AppLogic 3.0.30

IIS03W/IIS03S/IIS03E/IIS03DC: Internet Information Server appliances - Implementation Design

Class Volumes

The boot volume of IIS03y is based on the corresponding edition of the WIN03y appliance (Windows Server 2003 R2 x86 for IIS03W and Windows Server 2003 R2 x64 for the rest). Below is a list of the software components installed on IIS (on top of WIN), most of them are from the Windows Install CD.

Installed components.

  • Microsoft Application Server (Application Server Console, ASP.NET, Internet Information Services (IIS) - Internet Information Services Manager, World Wide Web service and Active Server Pages)
  • Microsoft .NET Framework 3.5 SP1
  • MySQL ODBC driver v5.1.5
  • PostreSQL ODBC driver 8.3.0400
  • Cygwin perl-libwin32 0.27-1

Re-install Procedure

Here are the steps needed to create a IIS class from WIN (tested on Applogic 2.7.1)

  1. Create an application with only WIN03y in it
  2. Branch WIN03y
  3. Edit the class
    1. add a placeholder volume (name: content; mount on D:\)
    2. Update terminals:
      in In http
      db Out any
      fs Out cifs
      log Out cifs
      aux Out any
      net Out any
      mon Out cce
    3. mark net terminal as gateway
    4. change the class icon color to blue
    5. change the class name to IIS03y
    6. change the class description
    7. change class category to 'Web Servers'
    8. Add the following properties:
      • content_on_fs : type = string , values = on|off , dflt = off
      • docs_dir : type = string , filter = "^/[a-zA-Z0-9\\s/-_]*" , dflt = /
      • logs_enabled : type = string , values = on|off , dflt = off
      • logs_base_dir : type = string , filter = "^/[a-zA-Z0-9\\s/-_]*" , dflt = /
      • index_files : type = string , filter = "[a-zA-Z\\.\\s]*" , dflt = "default.htm default.asp default.aspx index.html"
      • max_connections : type = integer , min = 0 , max = 999999 , dflt = 0
      • idle_timeout_sec : type = integer , min = 1 , max = 3600 , dflt = 15
      • data_timeout_sec : type = integer , min = 1 , max = 3600 , dflt = 300

    1. Set resources
      Resource !IIS03W !IIS03S !IIS03E !IIS03DC Default (x86) Default (x64)
      CPU 2 4 8 32 0.25 0.5
      MEM 2G 32G 64G 64G 512M 1G
      BW 2G 2G 2G 2G 100M 100M
  1. Create a volume and use it as a IIS placeholder
  2. Save the application
  3. Start the application in debug mode
  4. Login the IIS using Applogic SSH-login and reset the Administrator password ("net user Administrator newpass")
  5. Login the IIS using GUI and follow the drivers installation wizard
  6. Stop the application
  7. Add a temporary placeholder volume (name: cdrom; mount on E:\) and attach Windows Installation CD-image to it (see "vol import" help)
  8. Start the application
  9. Login the IIS using GUI and proceed with optional components installation:
       Control panel->Add or Remove Programs->Add or remove Windows components. 
       Check Application Server component and all components listed above in the "Installed components" section. 
       Uncheck all Application Server's components, which are not listed in there.
       
    Download and install perl-libwin32-0.27-1.tar.bz2
    Download and install dotnetfx35.exe
    On x64, additionally, download and install WindowsServer2003.WindowsXP-KB942589-x64-ENU.exe
    Download and install mysql-connector-odbc-5.1.5-win32.msi
    Download and install psqlodbc_08_03_0400.zip
  10. Copy the following files in IIS
  11. Setup permissions of scripts
       cd /appliance ; chown root *.sh ; chmod +x appliance.sh iis_init.sh
       cd /usr/bin ; chown root iis.pl iismon.pl ; chmod +x iis.pl iismon.pl
       
  12. Enable IIS Metabase direct modification a. At the command prompt, type runas /user:Administrator "mmc %systemroot%\system32\inetsrv\iis.msc". Be ready to enter Administator's password. a. In IIS Manager, right-click the local computer, and then click Properties a. Select the Enable Direct Metabase Edit check box, and then click OK
  13. Cleanup the boot volume of IIS
     
       using Explorer: remove C:\WINDOWS\$* and temporary folders (system and in the Administrator's home)
       start Internet Explorer and purge IE cache 
       find var/log -type f -exec rm {} \;
       rm -f tmp/*
       echo -n "" > etc/applogic_network.conf
       echo -n "" > etc/hosts
       echo -n "" > etc/applogic/appliance.desc
       echo -n "" > etc/applogic.sh
       
  14. Stop the application
  15. Save the application
  16. Vol resize

on x86:

   vol resize IIS03y.boot size=3500M
   

on x64:

   vol resize IIS03y.boot size=4G
   
  1. Move the class to the /proto catalog or any other catalog of your choosing.

-- OlegSmolov - 03 Sep 2009

 
Copyright © CA 2005-2011. All Rights Reserved.
%