Skip to main content

Windows Server 2012 & 2016

Windows Server 2012 - 2016

First of all to access the machine level installation you need to be signed up as an EonicWeb Partner

EonicWeb Partner Programme

Step 1. Install the Pre-requisites

Microsoft provide a very handy tool for installing everything you might need to run and develop web applications locally on your machine it is called Microsoft Web Platform Installer and you can download it here

Run the downloaded file to set up the Web Platform Installer. 

The following packages are a minimum requirement to run eonicweb 5:

  • Products / Server - IIS 7 Recommended Configuration
  • Products / Server - URL Rewrite 2.0
  • Products / Database - SQL Server Express 2008 R2

Our preference is build sites using Visual Studio 2010 , if you don't have access to a licence I would recommend the following

  • Products / Tools - Visual Web Developer 2010 Express SP1
  • Products / Database - SQL Server 2008 Management Studio Express

The installer will retrieve all required files from the internet.  Installing certain features may take some time.

When installation completes you will be ready to begin configuring eonicweb 5.

Step 2. Installing EonicWeb Core Files

Download the EonicWeb Zip File accessible via your partner logon

We recommend creating websites in the following directory Structure

driveletter:\HostingSpaces\ClientSites\ClientSiteURL\wwwroot

Unpack the EwCommon5-1 folder to the following location

driveletter:\HostingSpaces\EwCommon5-1

We recommend for server hosting environments you look at SolidCP  to manage your installations

Download and install the Platform DLL with the EonicWeb Platform Installer, accessible with your partner login.

Step 3. Machine Level Web.Config settings

Now if you intend to be developing multiple EonicWeb sites we recommend some config settings being managed at a machine level.

Edit the machine level Web.Config at

For 64 bit machines-

C:\Windows\Microsoft.NET\Framework64\v2.0.50727\CONFIG\web.config

For 32 bit machines-

C:\Windows\Microsoft.NET\Framework\v2.0.50727\CONFIG\web.config

Include the following block of code

 
<eonic>
    <web>
      <add key="AdminAcct" value="EONICWEB_ADMINISTRATIVE_ACCT" />
      <add key="AdminDomain" value="MACHINE_NAME" />
      <add key="AdminPassword" value="EONICWEB_PASSWORD" />
      <add key="AdminGroup" value="EONICWEB_ADMINGROUP" />
      <add key="MailServer" value="YOUR_MAILSERVER" />
      <add key="SoapIPs" value="127.0.0.1" />
      <add key="DatabaseType" value="SQL" />
      <add key="DatabaseServer" value="LOCALHOST" />
      <add key="DatabaseAuth" value="user id=DBUSER; password=DBPASSWORD" />
    </web>
    <scheduler>
      <add key="DatabaseServer" value="" />
      <add key="DatabaseName" value="" />
      <add key="DatabaseAuth" value="user id=; password=" />
      <add key="SchedulerMonitorXsl" value="/ewcommon/xsl/Tools/schedulermonitor.xsl" />
      <add key="SchedulerMonitorEmail" value="alerts@eonic.co.uk" />
    </scheduler>
    <PasswordPolicy>
      <Password>
        <retrys>0</retrys>
        <minLength>6</minLength>
        <maxLength>25</maxLength>
        <numsLength>1</numsLength>
        <upperLength>1</upperLength>
        <specialLength>0</specialLength>
        <barWidth>200</barWidth>
        <barColor>Green</barColor>
        <specialChars>!@#\\$%*()_+^&amp;}{:;?.</specialChars>
        <!-- 1=Yes, 0=No-->
        <useMultipleColors>1</useMultipleColors>
        <blockHistoricPassword>0</blockHistoricPassword>
      </Password>
    </PasswordPolicy>
  </eonic>
 
 

Change the following keys to the correct values for your system: AdminAcct, AdminDomain, AdminPassword, AdminGroup, MailServer, DatabaseServer (HOSTNAME\SQLEXPRESS), DatabaseAuth (user id=user; password=password).  The admin account specified must have administrative priveleges on the SQL server or database creation will fail.


Step 4. Allow double escaping in IIS 7

Go to windows/System32/inetsrv/config/applicationhost.config

You might need to open it using Notepad "Run as Administrator"

And change


            <requestFiltering>

To


            <requestFiltering allowDoubleEscaping="True">

 
 


Step 5

if you are running .Net4 then in the machine level web.config you need

<httpRuntime requestValidationMode=" 2.0" />

If you are running in 64 bit you should change both 64 and 32 bit versions of the machine levels web.config and also each .Net version you intend using.

 

Step 6. SQL Server Configuration for Backup

 

In order for the built in Database backup functionality to work the following is required.

On the master database run the following scripts

EXEC sp_configure 'show advanced options', 1
GO

EXEC sp_configure 'xp_cmdshell', 1
GO

RECONFIGURE
GO

Also you must enable Filestream options using the SQL Server Configuration Manager