Creating a New IIS Server for Local Builds with ProteanCMS - Eonic/ProteanCMS GitHub Wiki

Prerequisites

  • You have a ProteanCMS project that is ready to be built.
  • You have Host File Editor downloaded and installed. (Download Link)
  • You have Internet Information Services (IIS) Manager downloaded and installed. (Download Link)

Creating the IIS Website

  1. Open IIS Manager:

    • Navigate to the IIS Manager.
    • Right-click the Sites folder and select Add Website....
  2. Configure the New Website:

    • Enter the Site Name you have chosen for your localhost.
    • Set the Physical Path to your wwwroot folder. Example: C:\HostingSpaces\[Projects]\[Solution]\wwwroot.
    • Enter the Host Name for your localhost.
  3. Finalize and Add Website:

    • Verify that all information is correct.
    • Click OK to add your website.

    Your website should now be visible in the Sites folder within IIS Manager.


Creating an Application

  1. Add a New Application:

    • Right-click the website you just created and select Add Application.
  2. Configure the Application:

    • In the Alias field, enter ptn.
    • Set the Physical Path to the ptn folder. Example: C:\HostingSpaces\ProteanCMS\V6_wwwroot\ptn.
  3. Finalize and Add Application:

    • Verify that all the information is correct.
    • Click OK.

    The application should now appear under the website you just created.


Editing the Host File

  1. Open Host File Editor:

    • Navigate to the Host File Editor application that you installed.
  2. Add a New Entry:

    • In a new row, under the IP Address column, enter 127.0.0.1.
    • In the Host Name column, add the name of your localhost.
  3. Save Changes:

    • Click Save to correctly configure your host file.

Building and Launching the Application

  1. Set Up the Project in Visual Studio:

    • Open the project you want to run locally in Visual Studio.
    • Right-click on the website in your solution and select Set as Startup Project.
  2. Run in Debug Mode:

    • Start the application in Debug mode.

    Your website should now launch and be accessible locally.



⚠️ **GitHub.com Fallback** ⚠️