Subtext, Godaddy and redgreenblur

So here is the start of a new blog about random things that I find interesting.  The most interesting thing going on right now is my battle with getting Subtext working with my Godaddy Economy Hosting account...

I found a blog posting about setting Subtext up with Godaddy over at fallingcanbedeadly.com but still had a couple issues getting up and running. (http://fallingcanbedeadly.com/blog/archive/2007/06/10/just-switched-to-subtext-1.9.5.aspx)   Here is my version of running Subtext on Godaddy:

Start by downloading the latest version of the Subtext Install package from www.subtextproject.com and extracting these files to a temporary folder.

Login to Godaddy and open the hosting control panel for the domain you want to install Subtext on.

Set your Content Root ASP.NET Runtime to version 2.0 with the Directory Management tool.
Create a directory named "blog" with Read, Write, Web, and Setroot permissions.

Using the Database tool create a new SQL Server Database.  You can make the database name, username, and password whatever you want.
After the database setup is complete click the Edit/View Details button, then the Configuration button.  Your going to need to use some of the information from the SqlConnection string.
* SqlConnection (.NET):
* Data Source=YOURSERVER; Initial Catalog=YOURDATABASE; User ID=YOURUSERID; Password='YOURPASSWORD';

Open the Web.config file from the root of the Subtext install package you downloaded and make the following changes:
(line numbers are estimated)

Database connection string-Line 40: 
<add name="subtextData" connectionString="Server=YOURSERVER; Database=YOURDATABASE; User ID=YOURUSERID; Password=YOURPASSWORD; Trusted_Connection=False" providerName="System.Data.SqlClient" />

Email settings for godaddy-Line 168:
<add name="SystemMailProvider" type="Subtext.Framework.Email.SystemMailProvider, Subtext.Framework"
          smtpServer="relay-hosting.secureserver.net"
          username=""
          password=""
          adminEmail="youremail@yourdomain.com"/>


Forgot Admin Password Email-Line 360:
<add key="HostEmailAddress" value="youremailaddress@domain.com"/>

Trust Level-Line 379:
<!--  <trust level="Full" originUrl=".*" /> -->

Custom Errors-Line 410:
<customErrors mode="Off"/>  
<!-- <customErrors mode="RemoteOnly" defaultRedirect="~/SystemMessages/Error.aspx">
      <error statusCode="404" redirect="~/SystemMessages/FileNotFound.aspx"/>
      </customErrors> -->

 
Now you will need to upload your Subtext folder to your Godaddy hosting account using your favorite ftp client.  Place all of the Subtext files and folders into the "blog" folder we created earlier.

Open your browser and go to http://www.yourdomain.com/blog. The Subtext installer will take it from here.

If you want you can make a redirect Default.aspx page in your root folder to forward visitors to the blog.  Just copy and paste the following into a text editor and save it as Default.aspx.  Change "yourdomain" and upload it into your root folder.  Credit goes to Fallingcanbedeadly.com for the following source:

<%@ Page language="c#" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >

<html>
  <head runat="server">
    <title></title>
    <meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
    <meta name="CODE_LANGUAGE" Content="C#">
    <meta name=vs_defaultClientScript content="JavaScript">
    <meta name=vs_targetSchema content="http://schemas.microsoft.com/intellisense/ie5">
  </head>
  <body MS_POSITIONING="GridLayout">
    <form id="Form1" method="post" runat="server">
  <% Response.Redirect("http://www.yourdomain.com/blog"); %>
     </form>
  </body>
</html>

Feedback

# re: Subtext, Godaddy and redgreenblur

Gravatar Thanks for the advise but mydomain.com has a separate web.config file and every time I try to login to my admin to add to my blog it redirects me to my login page on the blog.Is there awork around to having two web.config files in the same domain hosting account. 7/31/2007 1:27 AM | djstampede

# re: Subtext, Godaddy and redgreenblur

Gravatar Thanks for the advice. I followed all the steps, but when I go to my blog, I get a runtime error and can't access subtext. The error tells me that I need to change my custom errors setting to "off", which I've already done. Any ideas?

Thanks in advance for any help you can give. 8/1/2007 12:58 AM | Temira

# re: Subtext, Godaddy and redgreenblur

Gravatar Try placing another Web.config file in your root godaddy directory that just has:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.web>
<!-- RemoteOnly | On | Off -->
<customErrors mode="Off" />
</system.web>
</configuration>

Let me know if that takes care of it. 8/1/2007 1:17 AM | mikeas

# re: Subtext, Godaddy and redgreenblur

Gravatar Never mind... Call that operator error. But now I'm getting this, which is over my head.


Parser Error Message: This configuration section cannot be used at this path. This happens when the site administrator has locked access to this section using <location allowOverride="false"> from an inherited configuration file.

Source Error:


Line 376: <system.web>
Line 377: <!-- [Full|High|Medium|Low|Minimal] -->
Line 378: <trust level="Full" originUrl=".*" />
Line 379:
Line 380: <xhtmlConformance mode="Transitional" />

8/1/2007 1:18 AM | Temira

# re: Subtext, Godaddy and redgreenblur

Gravatar You will want to comment out the trust level line:

<!-- <trust level="Full" originUrl=".*" /> -->

Or you could just remove it.
8/1/2007 10:05 AM | mikeas

# re: Subtext, Godaddy and redgreenblur

Gravatar Hey , do you happen to know why when I try to login to admin my blog I keep getting redirected to the login page.I hav e ahunh it has to do with a web.configfile for mydomain.com and I cant figure out how to separate the tow config files from interfering during authorization of users. 8/8/2007 9:31 PM | djstampede

# Solution to HostAdmin login failures

Gravatar I successfully followed your instructions to install subtext (thanks!), however, after setting up the HostAdmin account during the install I found that I could not login with the information I provided. Here is the solution that worked from me, available from the subtext website:

http://subtextproject.com/Home/Docs/Upgrading/tabid/147/Default.aspx

Forgot Your Host Admin Password?
If you have forgotten your HostAdmin password or inadverdently deleted the HostAdmin record, you can run the following query on the database server to reset the HostAdmin account with the password “password”. Use carefully as it will leave your blog open to attack temporarily.

Make sure to hit CTRL+SHIFT+M in Query Analyzer to replace the template variables in the script before running it.

IF 0 = (SELECT COUNT(1) FROM subtext_Host) INSERT subtext_Host SELECT 'DesiredUserName' , 'sIHb6F4ew//D1OfQInQAzQ==' , 'SPYxRrEmM0CGLgjg0ikCgQ==' , getdate()ELSE UPDATE subtext_Host SET Password='sIHb6F4ew//D1OfQInQAzQ==' , Salt='SPYxRrEmM0CGLgjg0ikCgQ=='
NOTE: You'll need to restart the application in order to clear the old credentials out of the cache. You can do this by opening Web.Config, add a space at the end of the 1st line, and save.

Immediately change the password afterwards in the HostAdmin tool.
8/9/2007 9:04 PM | solarcents

# re: Subtext, Godaddy and redgreenblur

Gravatar Thanks for all of the info you provided. I went through all of the steps but am getting this when I navigate to my blog...any ideas?:

Server Application Unavailable

The web application you are attempting to access on this web server is currently unavailable. Please hit the "Refresh" button in your web browser to retry your request.

Administrator Note: An error message detailing the cause of this specific request failure can be found in the application event log of the web server. Please review this log entry to discover what caused this error to occur. 10/24/2007 11:33 PM | brian

# re: Subtext, Godaddy and redgreenblur

Gravatar do you already have an API application for you blog? I am trying to make this work for MediaWiki. I also get Server Applic. unavaiable.
regards 3/7/2008 3:38 PM | bestanden kwijt

# re: Subtext, Godaddy and redgreenblur

Gravatar Good article.Thanks a lot. 3/11/2008 11:09 PM | 翻译公司

# re: Subtext, Godaddy and redgreenblur

Gravatar thanx for the solution. Regards 3/17/2008 12:32 PM | recover deleted files

# 北京华美达翻译公司

Gravatar 北京华美达翻译公司是由清华、北大的几位专家教授组建而成。管理规范、翻译专业水平高并拥有一大批有经验的专业翻译人员。公司译员大多是毕业于清华、北大、北京外语大学、第二外国语学院等著名大学,都具有多年的翻译经验,具有很高的专业翻译水平。
北京翻译公司以清华大学的自强不息、厚德载物作为优良传统,以“客户至上”为指导思想,为客户提供最周到、最专业的服务,以优质、低价、高效的服务让客户满意,本公司因有一大批优秀的翻译人才而享有盛名,赢得了众多客户的认可和好评。
北京华美达英语翻译提供包括英语、日语翻译德语翻译俄语翻译
韩语翻译法语翻译
意大利语语翻译阿拉伯语翻译
西班牙语翻译等,以及小语种的中外文翻译服务。并且涉及的专业范围广,如:机械设备、电子电气、仪器仪表、计算机、水利工程、医疗医药、生物化学、经济金融、法律、贸易等等及相关领域。同时北京华美达翻译公司提供同传、口译和交传等翻译服务。很多译员曾先后出色的完成一些重要会议、电话及谈判等的同传、口译业务,并赢得广大客户的依赖和好评。
  北京达专家翻译网奉行 “真诚为客户服务”的宗旨,竭诚为每一位客户提供最优质、最快捷的翻译服务。公司由经理、项目部、译者部和业务部组成。管理科学、分工严密,因此,公司赢得各界客户的好评和支持,并与一些著名的翻译公司合作,以求互补、互利、共同进步,提高翻译界的翻译水平。
北京华美达翻译公司以科学的管理模式、严格的质量控制体系,提高每一个翻译项目的满意度。我们也将始终不渝地以“客户至上”的指导思想,为您提供优质、低价、高效的服务。
我们相信,在广大新老客户的支持和关怀下,通过公司全体员工和所有翻译老师的共同努力,在经济全球化不断加深、改革开放不断扩大的新形势下,北京华美达翻译公司将不断发展壮大,以质量取胜, 为客户提供满意的服务, 在竞争中脱颖而出,成为翻译界的一颗璀璨的明珠。
5/18/2008 4:37 AM | 翻译公司

# re: Subtext, Godaddy and redgreenblur

Gravatar 上海译佰翻译公司是一家业内知名的上海翻译公司,并且设立有北京翻译公司分部,能够提供同声传译同传设备出租的服务。公司同时可以为客户提供会议同传系统租赁会议设备租赁服务,并且以杰出的同声传译同传设备租赁服务闻名于上海同声传译上海同传设备租赁市场上。同时公司可以提供无线导览出租,以用于参观工厂和无线导游讲解,并以专业的设备和服务立足于上海无线导览出租市场。 6/16/2008 3:53 AM | 同声传译

Post a comment





 

Please add 6 and 8 and type the answer here: