How to set up smartphones and PCs. Informational portal
  • home
  • OS
  • Internet Information Services Administration: Management Tools. Installing IIS on Windows Server

Internet Information Services Administration: Management Tools. Installing IIS on Windows Server

Microsoft Internet Information Services (IIS) runs on the warehouse server and processes requests to it. IIS is a Microsoft Windows NT service.

When a user submits a request using one of the client applications, the request is sent to the warehouse server, where it is processed by IIS and MSSQLSERVER. Internet Information Services (IIS) authenticates the user and communicates with the file store using the system account. By default, the service uses the LocalSystem account. The user can specify a different account for added security.

View Server Settings in Service Manager

  • From the control panel, select Administration> Services, and then select "IIS Admin" from the list.

Server status

This column contains information about whether the service is running. The service usually needs to be started, but this is not required for the store to work. Internet Information Services (IIS) starts the first time clients connect to it.

Launch type

Internet Information Services (IIS) can be started manually, automatically, or disabled. In most cases, the startup type should be set to Auto. If the startup type is set to Manual, the service will start after the first client connection. It is recommended to set the startup type to "Auto".

Login as

This parameter specifies the type of account for network authentication. It is recommended to use the Local System account by default.

You can also specify a specific user account to lock the vault. Configuring a specific user restricts other users' access to the vault to prevent unauthorized access and provide increased security.

For more information, see the reference documentation for the operating system.

Connection errors

If you cannot connect to the server, then you must restart the service or the entire computer.

Note: Internet Information Services (IIS) requires a restart if the SQL Server service has been restarted.

Stopping IIS

  1. At the command prompt, enter the iisreset / stop command

Note: Clicking the Stop button in the Internet Information Services Manager dialog box does not break database connections.

Restarting IIS

  1. From the Windows Start menu, select Run.
  2. At the command prompt, enter the iisreset / start command

If the vault is still displayed as in use in the server console, the administrator can reload the database.

  1. From the Windows Start menu, select All Programs> Administrative Tools> Services.
  2. Restart the MSSQL $ AUTODESKVAULT service.

Attention! If the database is a SQL Server that users who are not running in Vault have access to, it is not recommended to restart SQL Server.

Hello. Let's install ISS. And first, let's find out what is IIS?

IIS (Internet Information Services, up to version 5.1 - Internet Information Server) is a proprietary set of servers for several Internet services from Microsoft. IIS is distributed with operating systems of the Windows NT family.

The main component of IIS is a web server that allows you to host sites on the Internet. IIS supports HTTP, HTTPS, FTP, POP3, SMTP, NNTP protocols.

Fine. Now we know what we are going to bet. Let's get started.

Installation

First of all, we go to the main menu "Start" (Start) next

Control Panel -> Programs -> Turn Windows features on or off.

We find in the list "Internet Information Services" and select the necessary components

  • Security... All components except "Certificate Mapping Authentication ...".
  • Application development components. PHP needs a CGI component.
  • Common HTTP functions... We mark all the points.
  • Performance check and diagnostics. Select "HTTP Logging" and "Request Monitor".
  • Performance enhancement functions. We mark all the points.
  • Website management tools. We mark only "IIS Management Console».

Personally, I deviated a little from this description and added FTP, since for my needs I will need to test work with FTP.

After the necessary items have been selected, click "OK" and it remains to wait until the required components are installed. after which you can restart the machine. this will not prevent her from starting all the required services.

all. We can say that our ISS Server is installed. Let's move on to its initial configuration.

Configuring

We go to computer management (right-click on the "Computer" -> Management), then "Services and Applications" -> "IIS Manager" or the happy owners of Windows 7 can go to another "Start" and in the "Find programs and files "enter" IIS "and the list will display the coveted" IIS Manager "

We go to the sites. I deleted the default site right away, deciding that I did not need it and for clarity, I will create a new one.

Right click on "sites" -> "Add web site"

and create our first website

In the folder specified as "physical path", there are files of our site, which were put by IIS as a demo file. 2 files are iisstart.htm and welcome.png

Installing the IIS web server

Open Control Panel -> Programs -> Turn Windows features on or off. Find the IIS section in the list. We open it and select the required components:

Basic set:

  • Safety. We select all components except "Authentication with certificate matching ...".
  • Application development components. I only need the CGI component to install PHP later.
  • Common HTTP functions. We mark all the points.
  • Performance check and diagnostics. Select "HTTP Logging" and "Request Monitor".
  • Performance enhancement functions. We mark all the points.
  • Website management tools. We mark only "IIS Management Console".

When all the items are selected, click OK. After the installation is complete, be sure to reboot!

Now let's move on to creating a website. Open the Control Panel -> System and Security -> Administrative Tools -> Computer Management (as quickly as possible: Start menu -> right click on Computer -> select Management from the menu). In the window that opens, open the "Services and Applications" group and open the "Internet Information Services Manager". In the Connections window, select the Sites folder, then in the Actions right window, click on the "Add website" link.

Click OK. This completes the basic setup. You need to check the functionality of the newly created site. Open a browser and enter in the address bar: http: // localhost. If everything is working correctly, you will see a similar page:

Finishing touch. For the site to be accessible from outside, you must open the 80th port for incoming connections. How to do this using the example of the standard Windows 7 firewall:
Open Control Panel -> System and Security -> Windows Firewall -> Advanced Options. Find and enable the Internet Services (Inbound HTTP) rule in the list:

In this basic installation mode, the web server is only able to render static pages (regular HTML + JavaScript). To expand its capabilities, you can install support for ASP, ASP.NET, or PHP. I myself am doing programming so far only in PHP, so further I will only talk about installing PHP on IIS in FastCGI mode.

Install PHP (FastCGI)

Of course, the best web server for PHP is Apache, but there are still times when you need to install PHP on IIS. Moreover, recently the developers have done a lot of work to improve the performance of PHP on IIS.

Before starting the installation, you need to download the PHP release from http://windows.php.net/download/. It offers several options. We need a release VC9 x86 Non Thread Safe... For FastCGI operation, this is the fastest and most stable option. I recommend downloading the release with the installer, not the zip archive (this is for fans of manual installation).

Now we launch the installer. After a few not very informative windows, we will be prompted to select a web server and PHP mode:

IISFastCGI - yes, right now this is the only stable option for installing PHP on IIS.

After the installer completes, go to the IIS settings. In principle, only one action needs to be done here - to raise the priority of php-files so that they are processed first. In the IIS Manager, click on the name of our site and in the window on the right, select the "Default Document" section. In the list that appears, you need to move index.php to the beginning:

Windows 7 64-bit users, attention! You need to perform one additional action. Open the Application Pools section. Highlight DefaultAppPool and open Advanced Options (right-click or in the far right column). In the General section, find the "Enable 32-bit Applications" option and set it to True. If additional pools have already been created for existing sites, then for each of them you need to do the same operation.

Now you need to test PHP. In the root folder of the website (c: \ inetpub \ wwwroot) you need to place the index.php file with the following content:

Open the site in a browser (http: // localhost). If everything is working correctly, you will see a page with information about installing PHP:

Installing MySQL

Moved out in a separate article.

  • When starting the site, an error occurs: “The process cannot access the file because it is being used by another process. (Exception from HRESULT: 0x80070020) ".
    This error indicates that the port to which the site is bound (80 by default) is already occupied by another application. Very often this error occurs if another web server is installed (for example Apache).
    To find out which process is occupying port 80, at the command line enter: netstat -ano -p tcp
    In the column "Local address" we look for an entry of the form 0.0.0.0:80, then we look at which "PID" corresponds to this entry. In the "Task Manager" open the Processes tab (the "Show processes of all users" option should be checked). Next, go to the View -> "Select Columns" menu and mark the "Process ID (PID)". Now, using the PID, you can find out which process is occupying the port.
    Another solution to this problem is to bind the site to an alternate port (eg 8080).
  • When running the php script, an error appears: Warning: fopen (file_path): failed to open stream: Permission denied in file_path.
    The problem is that the IIS_IUSRS user group has read-only permissions. Open the properties of the folder where the website files are located (wwwroot by default), the Security tab. In the list we find the IIS_IUSRS group and give it full access rights.
  • How to set site encoding.
    Open Internet Information Services Manager, select the desired website. In Site Settings, open the HTTP Response Headers section. Click the Add link. In the window that opens, in the Name field, enter: Content-type, in the Value field, enter: text-html; charset = windows-1251 (see screenshot). Instead of windows-1251, you can write any other encoding.

Internet Information Services (IIS) it is a set of internet servers from Microsoft. The main component of IIS is the web server, although that doesn't stop there. The latest version 8 of IIS ships with all editions of Windows Server 2012 R2.

Despite the proprietary nature of IIS, the market share of this set of services is gradually increasing. On the Internet, you can find many sacred disputes about which is still better - IIS, Apache or, say, Nginx. Let's not be like them, let's just say in what cases IIS is mainly used.

The most convenient option for using IIS is when your entire working environment (and its server side too) runs on Windows. In this case, you can get a number of convenient "buns" from IIS for working in a domain. After all, IIS is also an FTP server and a mail server. The IIS interface is quite intuitive, which is generally typical of a Windows environment. And, of course, IIS will come in handy if you are using MS SQL.

To enable IIS on Windows Server 2012 R2, go to Server Manager.

In Server Manager, look for Add Roles and Features.

Make sure you have CGI enabled.

After that, in the Administration section, you will see the IIS Service Manager.

You can also enable IIS in Windows 7 Professional and Ultimate, as well as in Windows 8. To do this, go to Control Panel → Programs → Turn Windows features on or off.

The Service Manager is a graphical interface for managing your servers.

Servers and sites are listed on the right. By default, a folder is created on the system partition inetpub where the folders are located ftproot and wwwroot for FTP servers and websites, respectively.

Install PHP on IIS

To install PHP, follow the link and download the ZIP archive with the version Non Thread Safe... Designation VC11 next to the version indicates that it requires Visual C ++ Redistributable for Visual Studio 2012 to compile it. For older versions labeled as VC9, requires Visual C ++ Redistributable for Visual Studio 2008 SP1.

You can choose the directory for unpacking the ZIP archive at your discretion. After extracting the archive, create a copy of the file php.ini-production under the name php.ini in the same folder.

The php.ini file contains the rules for executing PHP and working with the environment in which it is executed. There are a number of required parameters that must be specified. Below is a list of these parameters.

extension_dir = [path to extension directory]- this parameter is responsible for the location of PHP extensions. For example, C: \ php \ ext.

extension = xxxxx.dll- for each plug-in extension it is necessary to register such a directive. Such extensions will be loaded when PHP starts.

log_errors = On- enable the error log.

error_log = [path to error log file]- actually, everything is clear here.

cgi.force_redirect = 0- disabling the directory protection mechanism, under IIS this parameter should take exactly this value in order to avoid PHP core errors in Windows.

cgi.fix_pathinfo = 1- enable support for PATH_INFO according to the CGI specification. IIS FastCGI uses this setting.

fastcgi.impersonate = 1- enable identification of caller security tokens.

fastcgi.logging = 0- FastCGI logs in IIS must be disabled.

Further, in the properties of the system, you need to adjust the environment variables. In Windows Server 2012 R2, you need to go to the Control Panel, select the System item, there Advanced system settings. On the Advanced tab, at the bottom is the Environment Variables button.

Find the Path variable among the system variables and add the path to the PHP directory in the Variable value field. In my example, this is C: \ php.

Learn how to install Internet Information Services (IIS) on servers running Windows Server 2012 R2 and Windows Server 2008 R2.

IIS (Internet Information Services) is a set of services from Microsoft for the operation of a web server and other Internet services. IIS is installed on the server and works with HTTP / HTTPS, POP3, SMTP, FTP, NNTP protocols. In 2015, version 10 of IIS was released, developed for Windows Server 2016.

Installing IIS on Windows Server 2008

Log in to the server with administrator rights. Launch Server Manager from the Start menu or taskbar.
From the Server Manager menu, select Roles.
Click the Add Roles button.
Review the information on the installation start page and click Next.
Select Web Server IIS from the list of server roles and click Next.
Review the information about the web server and click Next.

Please note that services such as ASP.NET, ISAPI filters, etc. are not installed by default.


Click "Install" to start installation.
Launch Server Manager and go to Roles> Web Server IIS> Internet Information Services Manager.

The capabilities available to you in IIS are listed in the Internet Information Services (IIS) Manager. From here, manage IIS capabilities, configure and restart.


Test the default site by typing localhost in the address bar of your browser.

The default page will load.

Add sites that will be served by this web server.


In the context menu of the "Sites" item on the "Connections" tab, select "Add Web Site"

The newly added one appears in the list of IIS sites.

Installing IIS on Windows Server 2012 R2

Log in to the server with administrator rights. Launch Server Manager from the Start menu.
In the Dashboard, select Add roles and features.

The same can be done through the "Local Server" - "Manage" panel.


The IIS Setup Wizard will start, read the first page and click Next.
Select the installation type "Role-based or feature-based installation" and click "Next".
Select a server from the server pool and note your server name. Click Next.
On the Select Server Roles page, check Web Server IIS.
Leave everything unchanged in the window that appears and click Add Features.
If you do not install anything except IIS, then click "Next" (Next).
Browse the list of IIS components, select the ones you want or leave as default, click Next.
Review the information in the next window and click Next.
Review the list of the IIS web server roles that will be installed. Check the required ones or leave them unchanged and click “Next”.

Please note that FTP service is not installed by default. If in the future you need new roles, you can add them without reinstalling IIS.


Click the Install button.

If necessary, check "Restart the destination server automatically if required", if the item is not selected, then reboot the server yourself after the installation is complete.


Launch Server Manager from the Start menu.

The installed IIS appears in the list of contents.


In the upper right corner, click on the "Tools" menu item and launch the "Internet Information Services Manager".
In the "Connections" panel, click on the server name, in the window that appears, check "Do not show this message" and click the "No" button.
Features View Pane

The features available to you in IIS are listed in the Features View pane. From here, manage IIS capabilities, configure and restart. For example, set up SSL certificates.


Immediately after installing IIS, an empty Default Web Site is created by default.
Check it works by typing localhost in the address bar of your browser. The default page will load.
The files for this page are located by default at C: \ inetpub \ wwwroot
Add sites that will be served by this web server. To do this, in the context menu of the Sites item on the Connections tab, select Add Website.
Fill in the form fields with information about the site and click OK.
The newly added one appears in the list of IIS sites.

Top related articles