DEV Community

Olalekan Oladiran
Olalekan Oladiran

Posted on Edited on

HOW TO CREATE A WEB SERVER AND INSTALL SERVER ROLE ON A WINDOW VIRTUAL MACHINE

STEPS

Once you are connected to your machine using remote desktop protocol(rdp) file and you are now on the desktop page, you can test your virtual machine for web server by copying the the public ip address and running it on a browser.

This will fail because web server has not been installed.
The following steps will install web server on your virtual machine

  • Click on windows logo
  • search for powershell and run it as administrator by right clicking on it and selecting run as administrator
  • Once the powershell pane opens type in the following code:Install-WindowsFeature Web-Server.

    Note that it is case sensitive.

  • Start installation will be displayed

  • After Installation, you will see this

  • You can now test it again by copying the public ip address and searching it on a browser

  • This time around, windows server will be displayed showing Internet Information Service

Top comments (0)