Manually installing Nearforums

  1. Download the zip file
  2. Setup database
  3. Setup web server
  4. Configuration

Download

Download the Nearforums .zip file from Downloads tab. Select the file containing the website and db for the latest build of Nearforums.

Database

On a SQL Server 2005+ / SQL Azure
  • Execute mssql.nearforums-db.sql script file included in the folder db/mssql/ of the release in an empty database.
On a MySql server 5 or above

Webserver

On Windows server
  • Copy and paste contents of the web folder from the release.
  • Create the site under IIS, assigning the folder from the previous step as home directory and select .NET 4.0 as the target framework.
  • Add write access to the web application identity (generally member of the IIS_IUSRS group) on the folder <... site root...>/content.

On Apache with Mono (mod_mono)
  • Copy and paste contents of the web folder from the release.
  • Set up a virtual host in Apache configuration, assigning the folder from the previous step as home directory.
    • (OPTIONAL) If you want extension-less routes, add ForceType application/x-asp-net in the mono configuration file.

Configuration

Edit connection string in the <... site root...>/web.config file, specifying the provider using providerName attribute (System.Data.SqlClient or MySql.Data.MySQLClient depending on which database engine you are using).
If you are using MySql as db server:
Add the MySql.Data.dll file manually to the bin folder from the MySql Connector for .NET - This dll is not redistributed by Nearforums because MySql license does not allow it.
Add MySql provider in the membership configuration section in the <... site root...>/web.config file.
Authentication providers
ASP.NET Membership and Twitter authentication providers are enabled by default.
Read more information on How to setup authorization providers for Nearforums.
If you have an existing user repository, read How to authenticate users from an existing db into Nearforums site.

Last edited Jun 4, 2013 at 2:54 PM by jorgebg, version 13

Comments

StraightAsAnArrow Jul 6, 2012 at 8:33 AM 
Hi,
I'm new to web app and especially IIS.
So, following your instructions I have completed:
-- Creating site in IIS
-- update config file

In IIS when trying to browse it asks for a default document.
So, which should be the default do and how do I configure it?

This is on Win7 Pro and IIS versin 7.5.7600.16385

Thanks in advance for your hellp.

sv219 Feb 1, 2012 at 9:26 AM 
Would you tell me what steps is necessary to perform for manual installation. Now I'm getting error: "500 - Internal server error."

I did next steps:
- Create database "PGT_Forum"
- run scripts "mssql.nearforums-db.sql". Scripts was executed successfully.
- copy all directories and files from "web" directory to my server
- create site in IIS
- update web.config file, modify connection string to: <add name="Forums" connectionString="Data Source=localhost;Initial Catalog=PGT_Forum;Integrated Security=True" providerName="System.Data.SqlClient"/>

on server installed:
- Microsoft SQL Server 2008 (SP1) - 10.0.2531.0 (X64) Mar 29 2009 10:11:52 Copyright (c) 1988-2008 Microsoft Corporation Web Edition (64-bit) on Windows NT 6.0 <X64> (Build 6002: Service Pack 2)
- IIS 6 SP2
- .NET Framework 4.0

May be I missed something?