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

Heroku

This site is built on Heroku

Join the ranks of developers at Salesforce, Airbase, DEV, and more who deploy their mission critical applications on Heroku. Sign up today and launch your first app!

Get Started

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay