Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...DNN Install - No Database ConnectionDNN Install - No Database Connection
Previous
 
Next
New Post
5/11/2014 5:18 PM
 
you need either download SQL Server with Advanced Services (http://www.microsoft.com/en-us/downlo..., latest version: http://msdn.microsoft.com/en-us/libra...)

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
5/12/2014 6:39 AM
 
Mark Eckeard wrote:
...
4) Create a new SQL user and make it owner of the database created in the previous step
...

Mark,

for security reasons I would not create an SQL Server User for accessing the database, but use integrated (Windows) security. Before Windows Vista, this user was NETWORK SERVICE, since IIS 7 there is a profile-less user that reflects the Application Pool ("Application Pool Identity"). This one should be the choice.

The only scenario where I could not succeed with this is when the SQL Server and the Web Server are on different machines that are not in a domain, or in two different domains without mutual trust. Then a SQL Server user is necessary (or some trick I have not found out yet). If they are in the same domain, the machine where the web server is running should be the SQL user (eg. DOMAIN\WEBSERVER$).

Best wishes
Michael

 


Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
5/14/2014 5:12 PM
 
Michael Tobisch wrote:

Bruce,

if you did not already I would suggest to use the Web Platform Installer for installing DNN.

Otherwise (I assume you install DNN on your local machine, and SQL Server is installed there as well):

  1. Create a folder on your computer, e.g. C:\DNN
  2. In IIS Manager, create a new Application Pool, e.g. DnnAppPool. Use the .Net 4.0 or .Net 4.5 framework and integrated pipeline mode. Make sure the Application Pool Identity is set to "ApplicationPoolIdentity". (in the application pool's Advanced Settings).
  3. Set the permissions for the directory created in Step 1 for the Application Pool (e.g. "IIS AppPool\DnnAppPool") to Modify.
  4. Unblock the DNN installation pack ZIP file, and then unzip it to the folder.
  5. In IIS Manager, create a new WebSite, e.g. "DnnWebSite". Set the Application Pool to the application pool created in step 2 (e.g. DnnAppPool). Assign the folder created in Step 1, and add a host header, eg. "dnn.local"
  6. Select the created Web Site and double click "Authentication" (under "IIS"). Select "Anonymous Identification" and click "Edit..." on the right hand side. Select "Application Pool Identity" from the given options.
  7. If you have not already installed MS SQL Server Express do so. Then open SQL Server Management Studio and connect to your SQL Server Instance.
  8. Create a new database, e.g. DnnDatabase.
  9. Under Security :: Logins, create a new login. Use Windows Authentication, and add the Application Pool Identity (e.g. "IIS AppPool\DnnAppPool"). Assign dbo permissions for this login to the database created in Step 8.
  10. Open the file C:\Windows\System32\drivers\etc\hosts (without any extension, note that the folder "etc" is hidden in newer Windows version, so I rcommend to copy and paste the path to Windows Explorer), using a text editor. Add the line

    127.0.0.1   dnn.local

    (or whatever hostname you assigned in Step 5). Save the file.
  11. Now open your browser and type http://dnn.local in the address line. The installation process should start.
  12. When it comes to the database selection, select the custom installation method. Use "SQL Server/SQL Server Express Database". Enter the Server name (e.g. ".\SQLEXPRESS") and the database name (e.g. "DnnDatabase"), use Integrated Security and check "Run Database as: [x] Database owner". If you want to setup the web site for development purposes, I would highly recommend to use an Object Qualifier, e.g. "dnn".
  13. Click "Continue".

I hope this helps.

Best wishes

Michael

 

OK, stuck at a spot here in this process. Finally got SQL loaded with Management Studio so I can see what is going on. After I created the new database and new user login, assigned as DBO, but not sure how to add/assign the Application Pool Identity that was used in IIS?

Can you explain a little more please on how to do this? :-) I have been looking around on how to add/assign and Application Pool Identity to the new use with no luck.

 

Bruce

 

 
New Post
5/14/2014 9:27 PM
 
either use a dedicated SQL server account for accessing the database (you need to provide userID and password with the connection strings in web.config file) OR use the windows account of the IIS Application pool (see advanced settings) and use integrated security - in this case you need to create a SQL server login for this account and grand dbowner permission for your database.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
5/21/2014 5:14 AM
 
Bruce,

to assign the application pool just add a login to SQL Server named "IIS AppPool\AppPoolName" (in the above example "IIS AppPool\DnnAppPool"). This is a Windows user, so use "Windows Authentication", and that's it.

Note: this only works like this when SQL Server and IIS are on the same machine. If not, let me know about your configuration (diferent machines - within the same (Windows) domain or not?)

Best wishes
Michael

Michael Tobisch
DNN★MVP

dnn-Connect.org - The most vibrant community around the DNN-platform
 
Previous
 
Next
HomeHomeGetting StartedGetting StartedNew to DNN Plat...New to DNN Plat...DNN Install - No Database ConnectionDNN Install - No Database Connection


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out