This guide may help you to install MDriven Server on Windows(8, 10), Windows 2012R2 and Windows 2016. If you use Windows 7 Enterprise and you have a problem with installation of MDriven Server, please see this article - Installation of MDriven Server on Windows 7 Enterprise.
Installing IIS Services and its components
First of all, you need to install IIS on your computer, on Windows(8, 10) head to the Control Panel -> Programs and Features -> Turn Windows features on or off and add Internet Information Services.
On Windows 2012R2 or Windows 2016 after installation add roles: Web server IIS.
Also, you need to add ASP .NET 4.5(or higher) and its component.
Important! Under .NET Framework 4.5(or higher) "Features", head to WCF Services and select HTTP Activation and TCP Port Sharing.
You should also consider adding:
- Logging Tools
- Request Monitor
- Dynamic Content Compression
- Application Initialization
- Management Service
- IIS Management Scripts and Tools
- Basic Authentication, Windows authentication or another authentication service
Note! If you don’t install HTTP Activation, you will get “Error 405 – method not allowed” instead of the MDriven login screen.
Now, you can start IIS Manager on your computer.
If you had some troubles with installation on Windows 2012R2 see also — https://docs.microsoft.com/en-us/iis/install/installing-iis-85/installing-iis-85-on-windows-server-2012-r2.
Setting up IIS Manager
After installation of IIS, you should install Microsoft Web Platform Installer 5.0 - https://www.microsoft.com/web/downloads/platform.aspx
After the installation, open Web Platform Installer head to Products and install following components to IIS:
- Web Deploy 3.6. (or download Web Deploy from Microsoft website - https://www.iis.net/downloads/microsoft/web-deploy)
- Web Deployment Tool 2.1. (seems not always necessary)
Note! For Windows Server 2016: you may need to "repair" or re-install the Web Deploy 3.6 after this is done, or you will not see "Deploy" in the context-menu when you right-click the site.
Install MDriven Server
Add an Application Pool
Start IIS Manager and add an Application Pool.
Name your Pool and set it to .NET CLR 4.0 and Integrated pipeline mode.
Configure the AppPool
Select your Application Pool and head to Advanced Settings and set:
- Start mode: AlwaysRunning
- Identity: <choose what suits your needs>
- Limit interval: 1
Check file permissions
Check this page for information on the AppPool user settings
The application will act as the AppPool user when accessing the disc. The application will also use "%temp%" for extracting AssetsTK and CodeDress assembliess from the modlr file. The AppPool user will also need access to the whole application in order to distribute codedress assemblies. Also the Logg subdirectory must allow write.
Add a certificate for SSL
In ISS Manager select Server Certificates and create Self-Signed Certificate.
Note! Create the self signed certificate with you servers machine name.
Notice the name in the certificates "Issued to" field. You'll be using this name when you access your server.
If you don't use this URL, you'll get a certificate error, and the server won't be able to communicate internally, so you can't ignore this error!
On the Default web site or on web site which you created, add https binding for port 433 and select the certificate needed.
Installing of MDriven Server
- Add an application and give a descriptive name. Select the Application Pool which you created earlier.
- Create an application with your name ("MyTurnkeyApp)
- Create another application under “MyTrunkeyApp” called “__MDrivenServer” (double underscore) so that it ends up like this: “MyTurnkeyApp/__MDrivenServer”
- Use the deploy function to import the application MDriven Server & MDriven Turnkey which you download from the mdriven.net site. The installer will not overwrite your existing database if this is an upgrade. The normal choice when upgrading the framework is to overwrite and not remove the existing files.
Note: During installation of MDriven Server or MDriven Turnkey app, if you created the structure before, keep "application path" field empty to save the needed folders' structure.
As a result you will get the following application structure:
Setting up MDriven Server
Now, you can open your MDrivenServer in a browser via link
Important! You have to change "localhost" in a link to the URL in your certificate (which is usually your full machine name including domain).
On the first screen you should register a new user for MDriven Server. For example "admin" (not "a", used by Turnkey)
After this you may log in and head to Admin area -> Infos, errors and MDrivenServer evolve and push "Evolve Admin database.
Important! MDriven Turnkey will use a user account named “a”, so you need to go back and head to AutoForm select "databaseIdentity" to admin.
Choose ASP_User -> Show and there you can see all user of MDriven Server. The user "a" will be on the top, if you click on the "Details" you will be able to change user name to another one.
After this, you can log out and register user "a" with your own password.
(Please note that the video was created when the MDriven Server was called "Boring Predictable Server" as a working name)
To make your experience more comfortable, we set the main tags mentioned in the video to the right bar menu of this mini player. Choose the interesting subtitle on the list and immediately get to the exact theme timeplace in the video. Now you can pick any topic to be instructed without watching the whole video.