2012-05-10 123 views

回答

2

如果您对本地主机上的网站没有做任何操作,可能最简单的方法是让您的主机为您安装一个DotNetNuke的干净副本。许多主机会为您提供帮助,或者提供自动化工具来通过他们的控制面板进行安装。

为了帮助您移动DotNetNuke的网站,我们确实需要更多的细节,以提供一个完整的答案(您的托管公司应该能够给你指导),但基本是:

1a. If you are just using SQL Express on the local host and plan to 
use it under SQL Express on the host as well, you'll just need to 
FTP up the DB files along with all the other files. 
1b. If you'll be 
running the DB under a full SQL Server: Backup your database on your 
localhost, copy the DB backup to your host, and restore the database 
to the database server provided by the host. 
2. Create a blank website on the host. 
3. FTP all site files from your localhost to the root directory of your new website. 
4. Make sure the Network Service account has Full Access permissions to the root directory and all sub-directories. 
5. If you're using a full SQL Server, you'll need to update connection strings in the web.config to point to the restored DB and 
ensure you're using a user/login with read/write rights to the DB. 
6. Browse to the site. 

这应该做到这一点。

+0

谢谢,我做了这个工程,我只是想知道,我应该如何改变web.config文件指向恢复数据库?在web.config中找到 – Arash

+1

,查找SiteSqlServer并更新连接字符串。您只需要知道数据库服务器名称,数据库名称,用户名和密码。 – EfficionDave

相关问题