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 the web server (IIS) on 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 like Apache, setting up and managing the IIS web server can be a bit complex, but if you are a desktop or Windows 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 on the client to provide corporate websites or heavily used web applications. Windows 10 IIS Desktop is primarily intended for developing or demonstrating web applications.

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

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


So, to install the web server feature of Windows 10, we don’t need to download any special packages, it is 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 to apply the changes.

Its installation is very simple. By default, when we select IIS Management Console, Web Management Tools and Word Wide Services as well as HTTP Features, Performance Features, Security, System Status and Diagnostics will be installed automatically. If you also want an FTP server, click on the + icon in front of Internet Information Services and also select the FTP server option.

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 the Webserver Manager app 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 the Internet Information Services (IIS) Manager

Start the Internet Information Services (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 if it is working properly or not, open your system browser and type http://localhost see.

Test the IIS web server is working or not

Test the IIS web server is 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, this problem would not appear.

In case your port 80 is already bound to another application, you can change the default website or Http listening port to IIS.

Right click on Default website option offered under the Sites and select Modify links.

Modify the binding of the ISS http 80 port number

Modify the binding of the ISS Http 80 port number

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

Change the 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 web application like WordPress on IIS, let’s set it up.

However, to host a website on IIS, the steps will be the same for WordPress or just plain HTML. Yet being a web app that WordPress needs PHP also support.

Right click on the default website and select To explore.

The root directory at% SystemDrive% inetpub wwwroot will open. Now just extract your entire WordPress file there. If he asks for permission, give it.

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

Restart the IIS website

Add index.php to the Default document.

To select Default website and double click on Default Document Icon so Add link given on the right panel. Type index.php and save it.

Add index.php in the default document

Add index.php in the 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-sample.php To wp-config.php.

Now edit the wp-config.php file and edit the following items shown 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' );

In case, it will say that 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 authorizations.

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 permissions for the root directory

Change permissions for the root directory

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

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

How to Disable IIS Web Server in Windows 10


If you don’t need IIS manager and want to turn it off. Open again “Enable or disable Windows functionality“and deselect the option”Internet information servicesThis 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 articles:


Source link

Leave a Reply

Your email address will not be published. Required fields are marked *