Skip to main content
Participating Frequently
February 15, 2007
Question

Changing web host

  • February 15, 2007
  • 17 replies
  • 1548 views
When my company was doing well I had our website developed by professionals, using ColdFusion. However, business has taken a nose dive and I've been forced to find cheaper hosting service. Before ending the contract with the old service I downloaded (via FTP, using FileZila) what I believe was the entire website and SQL database. I've uploaded the entire site to the new host (GoDaddy), but I am not able to open our webiste. I do subscribe to a CF server and SQL.
GoDaddy first said my index file was not in the root. Guess it was not in the root at the old server, but I located the file and copied it (index.cfm) to the root. However, this only generated the following:

Error occured while processing request:

Could not find the included template fbx_fusebox30_CF50.cfm.
Note: If you wish to use an absolute template path (e.g. TEMPLATE="/mypath/index.cfm") with CFINCLUDE then you must create a mapping for the path using the ColdFusion Administrator. Using relative paths (e.g. TEMPLATE="index.cfm" or TEMPLATE="../index.cfm") does not require the creation of any special mappings. It is therefore recommended that you use relative paths with CFINCLUDE whenever possible.

The error occurred in D:\Hosting\acg2003\index.cfm: line 17

15 : <cfelse>
16 : <cfif variables.fuseboxOSName contains "Windows">
17 : <cfinclude template="fbx_fusebox30_CF50.cfm">
18 : <cfelse>
19 : <cfinclude template="fbx_fusebox30_CF50_nix.cfm">

This is when I realize I am in over my head. I'm not a CF programmer. I've just started to get comfortable with Dreamweaver.

Could anyone, based on the above, tell me if I am attempting something that will be imposible to do, move an entire website from one server to another? Or, do I need help from (expensive) professionals to do this? Or, is there an easy and free way to accomplish the move? Can I expect to have to make massive amounts of link changes?

Please, any input will be greatly appreciated.

Tor-Eddie
This topic has been closed for replies.

17 replies

Inspiring
February 15, 2007
I would check with the hosting company and ask THEM what file is executed first, and from where.

I have heard the same thing Azadi mentioned - that their CF services are pretty "difficult" to get "right". (That was very tactful, no?)

If the site you have uses relative paths, then all you should need to do is GET folks to the directory structure you ARE using.

What directory names does your app actually exist in now?

- Mike
Inspiring
February 15, 2007
Tor-Eddie,

I thought you had mentioned that you had access to whatever they say your actual web root is.

In your earlier posts, the files were running, just with some problems, I thought.

The idea is to leave the installation in its subdirectories, and to simply put a redirect link in the root that points to the "original" index.cfm file.

- Mike
toreddieAuthor
Participating Frequently
February 15, 2007
Mike,
Tried to create the new file, but this is the new error message I get:

This site is a Virtual Web Server hosted by Magma Communications.

Virtual Web Server information and access to tools for customers can be found at www.magma.ca.
Magma Communications is Ottawa's largest full-service Internet Company. Founded in 1995, Magma specializes in providing Internet services that include residential and corporate internet access, custom web development, and a range of website and server hosting packages.


I take it this means that the index.cfm is not the correct one?

Tor-Eddie
Inspiring
February 15, 2007
Tor-Eddie,

I've had to move a site, and this is probably the easiest way to resolve your situation:

1. Leave everything in /html like it is. The apps should work fine as long as they all use relative paths (looks like they do).

2. Create an index.cfm for the root of the site, with a single statement:

<cflocation url="/html/index.cfm">

Very simple redirect to the app without having to re-program stuff.

- Mike
Inspiring
February 15, 2007
FYI, many hosting companies have a folder/directory called html as the root of the site... so maybe just assume that everything you have inside your html folder should go in the root on godaddy (who's cf hosting, btw, totally sucks...)
toreddieAuthor
Participating Frequently
February 15, 2007
Mike & Dave,

The index.cfm file used to be in the folder "html" but GoDaddy told me the index file had to be in the root. Well, based on my basic knowledge of Dreamweaver I sort of knew that that could be the problem. However, when I searched all 6 folders in the site for index files, I found 15-20. Most were "index.cfm", but some "index.html". Asked the site developer if he could tell me which would be the one that would open the site and he said it would be the "index.cfm" file in the "html" folder.
I didn't know any better so I copied this file from "html" to the root. That's when the first error message came up.
I followed MIke's advise and added "html" (where he used templates in his example), but it only triggered an even longer list of errors:

Data source dcconley could not be found.

The error occurred in D:\Hosting\acg2003\html\includes\qryGetPagesNav.cfm: line 2
Called from D:\Hosting\acg2003\html\fbx_Settings.cfm: line 48
Called from D:\Hosting\acg2003\html\fbx_fusebox30_CF50.cfm: line 159
Called from D:\Hosting\acg2003\html\fbx_fusebox30_CF50.cfm: line 1
Called from D:\Hosting\acg2003\html\fbx_fusebox30_CF50.cfm: line 1
Called from D:\Hosting\acg2003\index.cfm: line 17
Called from D:\Hosting\acg2003\html\includes\qryGetPagesNav.cfm: line 2
Called from D:\Hosting\acg2003\html\fbx_Settings.cfm: line 48
Called from D:\Hosting\acg2003\html\fbx_fusebox30_CF50.cfm: line 159
Called from D:\Hosting\acg2003\html\fbx_fusebox30_CF50.cfm: line 1
Called from D:\Hosting\acg2003\html\fbx_fusebox30_CF50.cfm: line 1
Called from D:\Hosting\acg2003\index.cfm: line 17

1 : <cfsilent>
2 : <cfquery name="getPages" datasource="#request.dbDSN#" username="#request.dbUsername#" password="#request.dbPassword#">
3 : SELECT
4 : #CMS['lstTbls']['Pages']#.ID,


Should I have kept the "index.cfm" file inside the "html" folder? How would the website have know how to open? Why are there so many other index.cfm and index.html files?

I see this relates to the database. However, I don't know if this is an indication that Mike's advise was correct, and that I made a step in the right direction or not?
I am subscribing to an SQL database service from GoDaddy, but only activated it this morning. I (stupidly) thought that when I subscribed, the database would be active, and ready to use. Now I'm waiting for it to be activated (it is "pending activation").

BTW: Thank you for taking the time to help out. I'd like to do this my self, as a learning experience.

Tor-Eddie
Inspiring
February 15, 2007
Well, for the specific error you are getting, it simply can't find a specific template:

fbx_fusebox30_CF50.cfm

Is this file in the same directory as the index.cfm file? I would guess not, and the mapping was probably setup in your previous configuration under the ColdFusion Administrator.

BIG NOTE: Not knowing your application, I DON'T know the ramifications of moving the above named file into the same directory as index.cfm, so I would simply modify the line to point to where the file actually is RELATIVE to where your index.cfm. Let's say index.cfm is in the root, and the other file is in a subdirecotry called "templates", you would say:

<cfinclude template="/templates/fbx_fusebox30_CF50.cfm">
<cfelse>
<cfinclude template="/templates/fbx_fusebox30_CF50_nix.cfm">

Let me know if this helps.

- Mike
Inspiring
February 15, 2007
Hi,

The Fusebox core files needs to be kept in where you actually have your index.cfm (which Mr.Mike is also mentioned in his post)... Please check and reply back...