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.
Image description
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 Image description
  • search for powershell and run it as administrator by right clicking on it and selecting run as administrator Image description
  • Once the powershell pane opens type in the following code:Install-WindowsFeature Web-Server.
    Image description
    Note that it is case sensitive.

  • Start installation will be displayed
    Image description

  • After Installation, you will see this
    Image description

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

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

Top comments (0)