Outils pour utilisateurs

Outils du site


tips_informatiques:windows:iis:iis

Ceci est une ancienne révision du document !


Installer IIS sous Windows XP Home

OS: Windows XP Home Edition SP2

Problème:

Sous Win XP Home, IIS n'est pas présent, contrairement à la version Pro de Win XP. Il est néanmoins possible d'installer une version permettant de faire du développement local à partir d'une version de Windows 2000.

Solution:

Il est nécessaire d'avoir le CD de Win XP Home et un CD de Windows 2000. Perso, j'ai utilisé: le CD de Dell contenant l'OS en français et un CD de Windows 2000 Advanced Server anglais.

  • ouvrir C:\WINDOWS\INF\SYSOC.INF
  • remplacer la ligne
      iis=iis.dll,OcEntry,iis.inf,hide,7

par

      iis=iis2.dll,OcEntry,iis2.inf,,7
  • Depuis le CD de Win 2000, copier
      D:\I386\iis.dl_

et

      D:\I386\iis.in_

vers un dossier.

  • à partir d'un shell au niveau du dossier, lancer:
      expand iis.dl_ iis2.dll
      expand iis.in_ iis2.inf
  • cela crée les deux fichiers iis2.dll et iis2.inf
  • copier iis2.inf vers C:\Windows\INF
  • copier iis2.dll vers C:\Windows\System32\Setup
  • dans le panneau de configuration → ajout de programme → ajout de composants Windows → IIS
  • déselectionner SMTP
  • démarrer l'installation
  • le CD de Windows 2000 est demandé. Spécifier
      D:\I386
  • faire de même quand le CD de Win XP Home est demandé
  • l'installation de IIS est faite !

Configurer IIS:

Apparemment, seule l'authentification via NTLM (ou Integrated Windows Authentication) fonctionne. Pour IE, cela fonctionne par défaut.

Pour Firefox, il reste une option à configurer:

  • about:config
  • chercher
      network.autodial-helper.enabled

et vérifier que la valeur est à True

  • chercher
      network.automatic-ntlm-auth.trusted-uris

et rajouter la valeur alaxoscom.yourwebhostingmysql.com

Note:

sans cette modification de Firefox, un popup avec login+pwd est affiché.

Installation de IIS après .Net

Si l'on installe IIS après l'installation de .Net, IIS n'est pas capable de faire tourner des applis .Net.

Pour cela, il est nécessaire de lancer la commande suivante qui installe ASP.Net:

aspnet_regiis -i

Si la commande n'est pas dans le Path, ouvrir l'invite de commande depuis le menu démarrer → outils Visual Studio → …

Configurer le serveur FTP

OS: Windows Server 2003 IIS: 6.0

Problème:

Après installation du service FTP, par défaut impossible de se connecter avec un client comme FileZilla.

Raison:

Accès en mode passif n'est pas possible. Pour cela, il faut configurer le FTP et le firewall de Windows afin de permettre des connexions sur d'autres ports que le 21.

Source:

http://www.newagedigital.com/cgi-bin/newagedigital/articles/ms-firewall-ftp.html

On Windows 2003 Server with IIS6

  • To Enable Direct Metabase Edit
  1. Open the IIS Microsoft Management Console (MMC).
  2. Right-click on the Local Computer node.
  3. Select Properties.
  4. Make sure the Enable Direct Metabase Edit checkbox is checked.
  • Configure PassivePortRange via ADSUTIL script
  1. Click Start, click Run, type cmd, and then click OK.
  2. Type cd Inetpub\AdminScripts and then press ENTER.
  3. Type the following command where the range is specified in “..”. cscript.exe adsutil.vbs set /MSFTPSVC/PassivePortRange “5001-5201”
  4. Restart the FTP Publishing Service.
  • You'll see the following output, when you configure via ADSUTIL script:
      Microsoft (R) Windows Script Host Version 5.6
      Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

      PassivePortRange : (STRING) "5001-5201"
  • Add each port to the Windows Firewall
  1. Click Start, click Control Panel, open Windows Firewall, and select the Exceptions tab.
  2. Click the Add Port button.
  3. Enter a Name for the Exception and the first number in the port range.
  4. Click TCP if not already selected and click OK.
  5. Repeat for each port in the range - for large ranges see the end of the document.
  6. Enable the Windows Firewall on the General Tab.
  • To add a range of ports to Windows Firewall from the Command Line
  1. Click Start, click Run, type cmd, and then click OK.
  2. Type in the following where the range is specified in ( ) and the name of the firewall entry is in “ ”.
      FOR /L %I IN (5001,1,5201) DO netsh firewall add portopening
      TCP %I "Passive FTP"%I
  1. Each port in the range will be added with an “OK” confirmation.

http://www.simongibson.com/intranet/ftp2003/

The FTP Root Directory

In order to use FTP in “Isolation” mode, we need to construct the FTP Root so that users are “Dropped” into their correct home directory.

The structure illustrated above contains two subdirectories, “localuser” and my domain “simongibson” which contain home directories for each user. These user sub-directories must match their respective username exactly. If not, the user will not be able to log onto your FTP server.

Create the directory structure above to match your configuration. The “FTPRoot” directory can be placed anywhere on your system.

tips_informatiques/windows/iis/iis.1245674712.txt.gz · Dernière modification: 2009/06/22 00:00 (modification externe)