-
Notifications
You must be signed in to change notification settings - Fork 105
Manual installation on IIS 7.x and .NET 4
###Pre-requisites
IIS 7.x is installed, if not you can enable it from Windows feature configuration on Windows 7 Pro or Windows Server 2008 under Control Panel > Programs
.NET framework is installed, ideally .NET 4.0 (it is possible to use .NET 3.5 SP1 but in this article we will use .NET 4).
These steps assume you have at least a little familiarity with IIS and that you are able to create a database and database user in SQL Server. Steps
Download the mojoPortal content management system package mojoportal-x-x-x-x-mssql-net40-deploymentfiles.zip from our download page.
Extract the zip file
Copy the wwwroot folder to wherever you want to install it and optionally rename the folder, ie rename it to mojoportal. This folder does not have to be under InetPub, it can be anywhere on your local hard disk.
Create a SQL Database using SQL Server Management Studio or any tool that you are already using for managing databases, it can be named whatever you want, mojodb for example
Create a SQL user and add him as a dbo on the database you created in step 4 (your SQL Server or SQLExpress installation should be configured for mixed mode so you can use sql users)
In the root of the mojoportal folder rename the user.config.sample file to just user.config
Edit user.config with a text editor like Notepad and set your connection string there for the database, then close Notepad.
For testing purposes we will create a hosts file entry, right click Notepad and choose run as administrator
From the File menu choose open, then change the file type to all files instead of .txt
Browse to C:\Windows\System32\drivers\etc and open the hosts file (it has no file extension but it is a text file).
In the hosts file add a line as follows and save the file and close out of Notepad:
127.0.0.1 mojoportal
Create a new Web Site in IIS and name it mojoportal, leave the IP address as "All Unassigned" but add the host name "mojoportal"
Point the web site root to the mojoportal folder and choose a .NET 4 Integrated application pool.
Make note of the user that is the identity on the application pool
In Windows Explorer, right click the mojoportal folder and choose properties, on the security tab click Edit..., then click Add..., then click Advanced..., then click Find Now. Select the user that is the identity on the application pool, then click OK, give the user read permissions here and click OK.
Repeat the above step on the /App_Data and /Data folders but this time, the user will already be there and you just need to change the permissions on these folders to Full Control for the user.
Open a web browser and navigate to http://mojoportal/
If all the above steps were done correctly it should automatically redirect to http://mojoportal/Setup/Default.aspx and that will complete the initial installation.
The above steps will get it working so you can see it when working directly on the server or Windows 7 machine. The hosts file entry only works on the current machine, to use it for an internet facing ip address you would need to setup DNS records to point to your ip address and then add the host name in IIS just as we added "mojoportal" in the above example.
###Additional Resources