How to Add a New Website on DreamHost Shared Hosting 2016

When we purchased DreamHost Shared Hosting, we can add unlimited websites on the hosting as long as you do not use up all arranged resources. When we add a new website, we can either arrange the new website under an existing user (FTP user) or add a new FTP user for the new website, which is the recommended way by DreamHost.

About how to add a FTP user on DreamHost, we mentioned one way in shared hosting unlimited bandwidth was not exact right . Today we are going to have another way in our process of adding a new website.

Continue reading “How to Add a New Website on DreamHost Shared Hosting 2016”


Add New FTP User Under an Existing Website to Run Faster on DreamHost

(Updated on Feb 29, 2016) We can consider to add a new FTP user for an existing website if it runs slowly on DreamHost shared hosting and you set multiple websites under the same FTP user.

Shared Hosting is actually limited bandwidth

We all know DreamHost provides unlimited Bandwidth shared hosting. But actually their hosting servers still have a limit called memory cap. Just because there is memory cap, the Bandwidth can not be unlimited. I think most of shared hosting providers have the same limits.

So your hosting bandwidth is actually limited. Normally the memory cap is on the enough high level for most of websites which do not have huge visiting traffic, so you feel the website is under the “unlimited” bandwidth.

Continue reading “Add New FTP User Under an Existing Website to Run Faster on DreamHost”

GoGoToTo.com Has Been Running On DreamHost for Years by 2016

We have already some short DreamHost posts in this website since this website has been hosted on DreamHost longest time compared to it has been hosted on other Hosting services. We do have customer experience to share with other people which we know about DreamHost .

Why GoGoToTo.com chose DreamHost ?

GoGoToTo.com used several Hosting services before we moved to DreamHost, then we no more moved. It is hard to tell you exact reasons. DreamHost might not be the best hosting provider in this world, but it was the best hosting service to us at that time especially after we compared multiple hosting services, so might be it is the reason that we chose it and stay at on it.

image

Continue reading “GoGoToTo.com Has Been Running On DreamHost for Years by 2016”

Hurry! HostGator 4 Hours Hosting 60% OFF with 20% OFF Coupon!

Flash Sale ! Woo, from HostGator 1!!

We just received notify: HostGator has a 4 hours hosting 60% off + 20% off with coupon is LIVING !!

Woo! See the following link!

 

Today ONLY!

Limited Time Only! Save with 60% Off All New Hosting Packages + 20% Off Code Guard on Hostgator.com with code FEB214 on 2/14 from 8am to 11:59pm CST.

 

Expired deals:

Limited Time Only! Save with 60% Off All New Hosting Packages + 20% Off Code Guard on Hostgator.com with code FEB213 on 2/13 from 8am to 11:59pm CST.

Limited Time Only! Save with 60% Off All New Hosting Packages + 20% Off Code Guard on Hostgator.com with code FEB212 on 2/12 from 11am to 2:59pm CST.

Website Running Faster After DreamHost Changed Server

In the last week we complained “Webpage Loaded Slowly After DreamHost Changed Our Server”, But now all of our websites are running faster than before actually.

We did not know exact reason why webpages loaded slower in first 2 days, but we guess possible reasons were such as server was not stable, or they were traced speed using some software tools etc.

Continue reading “Website Running Faster After DreamHost Changed Server”

Webpage Loaded Slowly After DreamHost Changed Our Server ?

We knew DreamHost was trying to migrate to new server for their part of customers, or maybe they called this was Upgrade.

OK, since we now get website loading speed slow again today, which is just after they migrated our all websites to new server, and since we also got loading speed slow issue before they migrated our websites, so we want to record something about what happened on our websites.

Continue reading “Webpage Loaded Slowly After DreamHost Changed Our Server ?”

Setup A Godaddy 4GH Windows Web Hosting

Today we purchased a Godaddy Windows Web Hosting 4GH.

The following is the setup process:

After you purchased a Windows Web Hosting 4GH successfully, after wait for a short time, you can setup the hosting.

1: Go to the main menu and choose “Hosting & Servers”, and choose “Hosting Management” sub menu:

image

2: Now you are accessed to web hosting page, click the Launch button for your new account:

image

3: You can see the following window, input your main domain name for the new hosting, input FTP account password, or you can change FTP user name if you do not like the default name, if you have purchased SSL credits, you can choose the SSL item on this hosting:

(Note: the password required special format, please follow the tips when you got wrong for password.)

image

4: When you click Finish button in the previous step, you can click the hosting view to access your hosting list view, you can see your hosting is still on pending setup status, you have to wait some time, for example, wait until 30 minutes or even over 2 hours:

image

5: Around 1 minute, if you have set the SSL certificate to your hosting, you should receive an email from Godaddy, the content will similar as the following:

Dear Secure Certificate Customer,

An SSL certificate has been issued for the domain: www.xxxx.xxx.

Your hosting provider will install the issued certificate on your hosting account. Note that it may take up to 72 hours for the necessary DNS changes to take effect. As soon as DNS has been changed to point to the new, dedicated IP address, your SSL certificate will be functional.

You can check the status of the certificate-installation process by logging in to your SSL account.

To access your secure site, please go to the following URL: https://www.xxx.xxx.

If you encounter any problems or have any questions, our Customer Support department is ready to help, around-the-clock, seven days a week.

Customer Support:
E-Mail: ra@godaddy.com
Phone: 480.505.8852
Fax: 480.393.5009

For further information, log in to your account at https://certs.godaddy.com.

Now we need to wait more time to let Godaddy system set our hosting.

How both PHP 4 and PHP 5 sites run on the same Godaddy hosting account ?

I think your websites are running on PHP 4 or PHP 5. But, How they can run a Godaddy hosting account which you can set multiple websites but you found your hosting might be PHP 4 ?

If you bought a Linux hosting from Godaddy, you are able to build your site on either of PHP 4 or PHP 5.

As long as your site runs Hosting Configuration 2.0, both PHP 4 and PHP 5 applications can run on your site. By default, PHP 5 files require the .php5 extension, whereas the .php extension will run under PHP 4. You can change these defaults through the htaccess file.

By default, files with a .php extension run under PHP 4 and files with the .php5 extension run under PHP 5. The .htaccess file, located at the root of your site, can be used to change these default settings. The following entries in a directory’s .htaccess file designate .php files to run under PHP 5 and .php4 files to run under PHP 4.

    AddHandler x-httpd-php5 .php
    AddHandler x-httpd-php .php4

Changes made to an existing .htaccess file will be seen immediately. When a new .htaccess file is created or an existing .htaccess file is deleted, however, these changes will not be seen until the htaccess cache is cleared. This occurs every hour.

If your site does not run the new hosting configuration and you want to upgrade, you will have to search Godaddy help information to get How to upgrade hosting account to Hosting Configuration 2.0

NOTE: Godaddy Windows hosting and WordPress® hosting offerings only allow PHP 5.

Move local ASP.NET website based on MS Small business starter kit to Godaddy.com hosting

I create an ASP.NET 2.0 small website for a company based on Microsoft  Small Business Starter Kit recently.

I added administration module, login module and other new module the customer required. When I finished, Everything work well on my local PC. Later the customer bought a Godaddy.com share hosting space and I have to deploy the website to his godaddy space.

Since I developed this small website on SQL Server 2005 Express and MS Visual studio 2005 professional edition. I met a big problem : How to move the data from SQL Server 2005 Express to Godaddy’s SQL Server 2005 (I am lucky this time, Godaddy provides SQL Server 2005 since 2007 or the end of 2006, I bought its hosting in the beginning of 2006, it was only SQL Server 2000 and only there is ONE SQL server DB that customer can use).

Finally I deploy successfully. I write down all the processing that I did for this small website (www.HKNConsulting.com):

1: use sql server 2005 management express to general SQL Scripit (get empty tables and asp.net security tables, views,

store precedure), get a .sql file; (godaddy provides SQl Server 2005 now)

2: remove all “–” comment line from .sql file (godaddy’s SQl control panel doesn’t recognize “–” comment sign);

3: copy all sql script to godaddy’s sql server control panel and run;

4: insert some initial data to asp.net 2.0 tables:

SET QUOTED_IDENTIFIER OFF
GO
SET ANSI_NULLS ON
GO

INSERT INTO [aspnet_SchemaVersions]([Feature], [CompatibleSchemaVersion], [IsCurrentVersion])
VALUES(‘common’, 1, 1)

INSERT INTO [aspnet_SchemaVersions]([Feature], [CompatibleSchemaVersion], [IsCurrentVersion])
VALUES(‘health monitoring’, 1, 1)

INSERT INTO [aspnet_SchemaVersions]([Feature], [CompatibleSchemaVersion], [IsCurrentVersion])
VALUES(‘membership’, 1, 1)

INSERT INTO [aspnet_SchemaVersions]([Feature], [CompatibleSchemaVersion], [IsCurrentVersion])
VALUES(‘personalization’, 1, 1)

INSERT INTO [aspnet_SchemaVersions]([Feature], [CompatibleSchemaVersion], [IsCurrentVersion])
VALUES(‘profile’, 1, 1)

INSERT INTO [aspnet_SchemaVersions]([Feature], [CompatibleSchemaVersion], [IsCurrentVersion])
VALUES(‘role manager’, 1, 1)

Go

5: modify web.config to give correct connect string:

<add name=”MFSQLConnectionString” connectionString=”Server=p3swhsql-vxx.xxx.xxx.secureserver.net;
Database=DB_<XXXXXX>;
User ID=<XXXXX>;
Password=<XXXX>;
Trusted_Connection=False”
providerName=”System.Data.SqlClient” />

6: make sure in your web.config , there are some configration for asp.net 2.0 membership due to your own database (combine

the asp.net 2.0 membership database — normally it is ASPNETDB.mdf, to your own database):

<membership>
<providers>
<remove name=”AspNetSqlMembershipProvider”/>
<add name=”AspNetSqlMembershipProvider”
type=”System.Web.Security.SqlMembershipProvider, System.Web, Version=2.0.0.0, Culture=neutral,

PublicKeyToken=b03f5f7f11d50a3a”
connectionStringName=”MFSQLConnectionString”
enablePasswordRetrieval=”false”
enablePasswordReset=”true”
requiresQuestionAndAnswer=”true”
applicationName=”/”
requiresUniqueEmail=”false”
passwordFormat=”Hashed”
maxInvalidPasswordAttempts=”5″
minRequiredPasswordLength=”6″
minRequiredNonalphanumericCharacters=”0″
passwordAttemptWindow=”10″
passwordStrengthRegularExpression=””/>
</providers>
</membership>
<profile>
<providers>
<remove name=”AspNetSqlProfileProvider”/>
<add name=”AspNetSqlProfileProvider”
connectionStringName=”MFSQLConnectionString”
applicationName=”/”
type=”System.Web.Profile.SqlProfileProvider, System.Web, Version=2.0.0.0, Culture=neutral,

PublicKeyToken=b03f5f7f11d50a3a”/>
</providers>
</profile>
<roleManager enabled=”true”>
<providers>
<remove name=”AspNetSqlRoleProvider”/>
<add name=”AspNetSqlRoleProvider”
connectionStringName=”MFSQLConnectionString”
applicationName=”/”
type=”System.Web.Security.SqlRoleProvider, System.Web, Version=2.0.0.0, Culture=neutral,

PublicKeyToken=b03f5f7f11d50a3a”/>
</providers>
</roleManager>

7: Remove ”  <customErrors mode=”RemoteOnly” defaultRedirect=”CustomError.aspx”> from web.config file;
Add “<customErrors mode=”Off”/>”;

8: Insert your own data to your user tables:

INSERT INTO [Services]([visible], [title], [Category],[description])
VALUES(True, ‘Expertise on business’, ‘Business’,’•    Governments and public sectors
•    Banking business
•    Mutual funds investments
•    Group Pensions
•    Insurance
‘)

INSERT INTO [Services]([visible], [title], [Category],[description])
VALUES(True, ‘Expertise on Information Technologys’, ‘IT’,’•    e-Solutions using latest web technology
•    Infrastructure architecture
•    Enterprise Technology Assessments
‘)

INSERT INTO [Services]([visible], [title], [Category],[description])
VALUES(True, ‘Business Analysis’, ‘IT’,’•    Strategic planning
•    Business case development
•    Preliminary analysis and needs identification
•    Business requirement development
•    Business process development and re-design
‘)

INSERT INTO [Services]([visible], [title], [Category],[description])
VALUES(True, ‘System Design and Development’, ‘IT’,’•    Project Management
•    Requirements definition
•    System requirements definition
•    System architecture
•    Data and process analysis
•    Development and Implementation
•    Quality assurance and user acceptance testing
•    Documentation
‘)

INSERT INTO [Staff]([visible], [firstName],[lastName],[title],[description])
VALUES(True, ‘Wayne’, ‘Nguyen’,’Senior Team Manager’,’Wayne is a partner with HKN Consulting and supports the Ontario

Public Sector Practices.   Wayne brings over 15 years of financing industry and consulting experience both in the private

and public sectors.  Wayne has built a great deal of knowledge and experience in e-Government and e-Business through

managing projects for many major financing clients from agencies under Ontario Ministry of Finance, Ministry of Municipal

Affairs and Housing, to banking, investments, and insurance companies.  His extensive experience of back-end and web-based

technology as well as indepth knowledge in business processes and practices within and across organizations help him in

achieving high quality results for clients.

Prior to doing consulting, Wayne was project manager and technical lead for several companies, including Barclays Bank

(U.K.), Fidelity Investments (U.S.) , and Canada Life.  He holds a Master degree in Computer Science.’)

INSERT INTO [Staff]([visible], [firstName],[lastName],[title],[description])
VALUES(True, ‘Professional’, ‘Team’,’Professional Team’,’Our professional team consists of dedicated, highly trained and

experienced individuals:

•    Project managers
•    Applications architects
•    Business analysts
•    Quality assurance analysts
•    Systems analysts
•    Database analysts
•    Developers
‘)

INSERT INTO [Images]([fileName], [path],[imgClass])
VALUES(‘POINT.GIF’, ‘images\staff\’,’STAFF’)

INSERT INTO [Images]([fileName], [path],[imgClass])
VALUES(‘2190.jpg’, ‘images\services\’,’SERVICE’)

(Note: if you insert images into Image Table, you must check whether these images existing the related folder)

9: Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the

following specific error details and modify your source code appropriately.

Compiler Error Message: CS0433: The type ‘Staff’ exists in both ‘c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary

ASP.NET Files\root\799f60bd\464de44c\assembly\dl3\058d1167\5ec0b38b_b386c701\App_Web_75ma_t_n.DLL’ and

‘c:\windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET

Files\root\799f60bd\464de44c\assembly\dl3\22c56c35\5400338b_b386c701\App_Code.DLL’

Cause:

I used the same name “Staff” for one aspx page and one class, this lead Type name conflict when compile, but it can work on

my local PC not only on Godaddy remote hosting, Finally I give the class name a new name “StaffType” , then it is OK.

10:

Unable to cast object of type ‘System.DBNull’ to type ‘System.String’.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace

for more information about the error and where it originated in the code.

Exception Details: System.InvalidCastException: Unable to cast object of type ‘System.DBNull’ to type ‘System.String’.

Source Error:

Line 41:                         <asp:TemplateField>
Line 42:                             <ItemTemplate>
Line 43:                                 <asp:Image ID=”Image2″ runat=”server” ImageUrl='<%# (string)Eval(@”imageUrl”) +

(string)Eval(@”imgFileName”) %>’
Line 44:                                     AlternateText='<%# (string)Eval(“imageAltText”)%>’ Width=”120″ Height=”90″

CssClass=”photo-border photo-float-left” />
Line 45:                                 <h2>
Reason:

imageAltText field is Null. strange it work on Local but No work on Godaddy.com , just like 9 above.

Resolve:

<asp:GridView ID=”GridView1″ runat=”server” AutoGenerateColumns=”False” DataSourceID=”ObjectDataSource1″
AllowPaging=”True” PageSize=”5″ OnRowCreated=”GridView1_RowCreated” BorderWidth=”0px”
BorderColor=”White” DataKeyNames=”serviceID”>
<Columns>
<asp:TemplateField>
<ItemTemplate>
<asp:Image ID=”Image2″ runat=”server” ImageUrl=‘<%# ((Eval(“imageUrl”) is DBNull)?String.Empty:(string)(Eval(@”imageUrl”))) + ((Eval(“imgFileName”) is DBNull)?String.Empty:(string)(Eval(@”imgFileName”))) %>’
AlternateText=‘<%# ((Eval(“imageAltText”) is DBNull)?String.Empty:(string)(Eval(“imageAltText”))) %>’ Width=”120″ Height=”90″ CssClass=”photo-border photo-float-left” />
<h2>
<asp:LinkButton ID=”LinkButton1″  CommandName= “Select” CommandArgument='<%#”Id”%>’
runat=”server” OnCommand=”LinkButton1_OnCommand”>
<%# Eval(“title”).ToString()%>
</asp:LinkButton></h2>
<p>
<%# Eval(“description”).ToString().PadRight(256,’ ‘).Substring(0, 256) %>
</p>
<asp:ImageButton ID=”ImageButton1″ CommandName=”Select” CommandArgument='<%#”Id”%>’
runat=”server” OnCommand=”LinkButton1_OnCommand” ImageUrl=”images/arrow.gif” />
<asp:LinkButton ID=”LinkButtonNews” CommandName=”Select” CommandArgument='<%#”Id”%>’
runat=”server” OnCommand=”LinkButton1_OnCommand”>Read More </asp:LinkButton>
<hr />
</ItemTemplate>
</asp:TemplateField>
</Columns>
<PagerSettings Mode=”NumericFirstLast” Position=”TopAndBottom” />
</asp:GridView>

11:

Administraton : When tried to upload image file, get the following error:

ERROR: Access to the path ‘d:\hosting\waynenguyen\images\staff\Blue hills.jpg’ is denied.

Reason: User Permissions

http://help.godaddy.com/article.php?article_id=59

Keep in mind that with ASP hosting, the root directory of a hosting account will never have write access using an

ASP/ASP.NET script. If you want to specify write access to a subfolder, you must define write access to that folder through

the Directory Management option in your hosting account settings. The Directory Management settings are also used to set up

a “Virtual Root” in IIS by selecting the Set Root option.
Resolve:

should set user permissions for image/staff and image/services folder.

Since the hosting is windows hosting, so I can not set permission by FTP tool.

ONLY way:  set READ and WRITE permissions in Godaddy.com control panel:

Directory Management -> click CREATE DIRECTORY button -> input “image/staff”, and check on “Write” and “Read” -> click

Continue button -> Click “Edit” button (Don’t click “ADD” button since the folder has already created when I use FTP)