How to Install IIS Web Server on Windows 10 Step by Step -H2S Media

IIS (Internet Information Services Manager) on Windows 10/7 Desktop or Server is basically a flexible and secure web server provided by Microsoft on its desktop and server operating systems. Just like Apache and Nginx in Linux distributions on Windows, we have IIS.

Install and Configure Web Server (IIS) in Windows 10


Microsoft has not only integrated the desktop version of Windows with IIS – Internet Information Services, but even Windows 10 Home can be turned into a web server using this feature.

However, compared to a free and open source server such as Apache, setting up and managing the IIS web server can be a bit complex, but if you are a Windows desktop or server user, using IIS would be preferable due to better integration into the system.

The IIS, which also contains an FTP server, is not intended for the customer to provide corporate websites or heavily used web applications. The Windows 10 IIS desktop is primarily intended for developing or demonstrating web applications.

So, if you want to setup and run any application on Windows 10 PC using IIS, for example WordPress, here is the step by step guide to install and setup this web server.

Step 1: Enable Internet Information Services -IIS on Windows 10


So, to install the Windows 10 web server feature, we don’t need to download any special packages, it’s already in our system and we just need to activate it.

Go to Control Panel->Select Program->Turn Windows features on and off.

Enable or disable Windows features

Now scroll down and select “Internet information services” and press Okay button to install it. Then restart the PC for the changes to take effect.

Installing it is very simple, by default when we select IIS Management Console, Web Management Tools and Word Wide Services along with HTTP Features, Performance Features, Security, System Status system and diagnostics will be automatically installed. If you also want an FTP server, click the + icon in front of Internet Information Services and select the FTP server option as well.

Enable Internet Information Services -IIS on Windows 10

Enable Internet Information Services -IIS on Windows 10

Step 2: Start the Internet Information Service (IIS) Manager


Go to Windows 10 search box and just type IIS and you will get Server Manager web application installed, click on it to start.

Start IIS

Start IIS

Finally, you will see the IIS manager with so many options to operate and manage different web server application tasks.

Start Internet Information Service (IIS) Manager

Start Internet Information Service (IIS) Manager

Step 3: Test the IIS web server


After installing IIS, Windows will automatically start the web server services on the default port number 80. So, to check whether it is working properly or not, open your system browser and type http://localhost see.

IIS test web server working or not

By default, IIS displays the local HTML page to show that everything is working correctly. If not, check if the HTTP server (localhost) is listening on port 80. Run the following command in the command prompt.

netstat -a -p tcp -n

However, for the newly installed IIS web server, such problem would not appear.

If your port 80 is already bound to another application, you can change the default website or Http listener port on IIS.

Right click on Default website option given under the Sites and select Edit Bindings.

Change binding of http port number 80 ISS

Change binding of ISS Http 80 port number

Now click on Edit and replace the port number with the one you want to use. You can also specify a particular IP address for which you want to use this port number.

Change port number

Step 4: Configure and install WordPress with IIS Manager


So, to give you an idea of ​​how to host an HTML website or a web application like WordPress on IIS, we will set it up.

However, by hosting a website on IIS, the steps will be the same for WordPress or for simple HTML. Yet, being a web application WordPress needs PHP support too.

Right click on the default website and select To explore.

The root directory at %SystemDrive%inetpubwwwroot will open. Now just extract all your WordPress files there. If he asks for permission, give it.

Now select your newly created website and click on the reboot option given in the right panel.

Restart the IIS website

To add index.php to the Default Document.

To select Default website and double-click Default document icon then To add link given on the right panel. Type index.php and save it.

Add index.php in default document

Add index.php in default document

Open the browser and point it to http://localhost, this time it will display the hosted website. However, in the case of WordPress, it gives an error because we haven’t configured its Wp-config file yet.

Right click again on the Default website ->To explore then rename wp-config-example.php at wp-config.php.

Now edit the wp-config.php file and modify the following marked in red… In short, add the database details.

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'database_name_here' );

/** MySQL database username */
define( 'DB_USER', 'username_here' );

/** MySQL database password */
define( 'DB_PASSWORD', 'password_here' );

/** MySQL hostname */
define( 'DB_HOST', 'localhost' );

Just in case, it will say you don’t have permission to write a wp-config file, then just right click on the Default website in the IIS manager and select Modify permissions.

Change website permission

Change website permission

Go to Security Tab and select your Windows system user. Then Edit button->Give it all permissions, then press Okay button.

Change root directory permissions

Change root directory permissions

Now type http://localhost/index.php and you will be able to access your WordPress installation.

Similarly, if you hosted an HTML-based website file for development in the root directory of the default website, you will be able to see it.

How to Disable IIS Web Server on Windows 10


If you don’t need the IIS manager and want to disable it. Open again »Enable or disable Windows feature” and uncheck the option “Internet information services“. This will remove the IIS web server from your Windows 10 or Windows 7 PC, laptop or server.

Enable Internet Information Services -IIS on Windows 10

Oother items: