Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Coldfusion migration from Windows to Linux - problem

New Here ,
Nov 04, 2009 Nov 04, 2009

We have recently moved our website hosting from a Windows based server at one company to a Linux based server at a different hosting company.  I have made the neccessary changes to Coldfusion (application.cfm to Application.cfm, etc.)  And most of our site works fine.  There is one area, though, that is still giving me some problems.

We have a site management area that allows us to log in and update ads and subscriptions.  However, this part of our site is not working.  When we try to get into that error, we recieve an error message.  In Firefox, the error states:  "Firefox has detected that the server is redirecting the request for this address in a way that will never complete."

The only code changes I made were to correct the case sensitive parts of of the code.  No other changes were made.  Does anyone have an idea if there is something else I need to look at that would cause this problem with Linux and not Windows?

Thanks.

Jason

5.4K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 05, 2009 Nov 05, 2009

Ok. According to GoDaddy (our hosting provider) we have both ColdFusion and Front Page extensions applied to our site. They seem to think the problem might be arising from that. Since we do not use Front Page to develop our site, I have submitted a request to have this removed. I will let you know if this helps out at all.

Jason

Date: Wed, 4 Nov 2009 13:48:36 -0700

From: forums@adobe.com

To: jew0312@live.com

Subject: Coldfusion migration from Windows to Linux - problem

It is an 'Aministration' section of the site, the general public portion of the site does not require login.

>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Nov 05, 2009 Nov 05, 2009

Well I would be careful about trusting GoDaddy technical support in reguards to ColdFusion.  Especially thier first line suport as very little idea how ColdFusion works and how to administer it.

I don't mind GoDaddy for my personal, vanity website.  But I understand their limitations and the one time I needed a ColdFusion question answered, I just imediatly insisted on being esculated to a tier two support technician so I could talk to one of their actual ColdFusion administrators.

Back in the day, when I was playing with both ColdFusion and Frontpage, I never had any trouble with them working together.  But it has been a decade since I concerned myself with Frontpage.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 05, 2009 Nov 05, 2009

Thanks for the info. I'll keep that in mind. Haven't had much time to work on this problem today. I'm having to be three other people in different departments!

Date: Thu, 5 Nov 2009 09:24:20 -0700

From: forums@adobe.com

To: jew0312@live.com

Subject: Coldfusion migration from Windows to Linux - problem

Well I would be careful about trusting GoDaddy technical support in reguards to ColdFusion. Especially thier first line suport as very little idea how ColdFusion works and how to administer it.

I don't mind GoDaddy for my personal, vanity website. But I understand their limitations and the one time I needed a ColdFusion question answered, I just imediatly insisted on being esculated to a tier two support technician so I could talk to one of their actual ColdFusion administrators.

Back in the day, when I was playing with both ColdFusion and Frontpage, I never had any trouble with them working together. But it has been a decade since I concerned myself with Frontpage.

>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 16, 2009 Nov 16, 2009

Well, after doing some more sniffing around, I think I have isolated where this dang problem is coming from.

In the directory where the management console scripts are, there is an Application.cfm file. I assume that each directory that has coldfusion scripts must have to have an Application file in there?

Anyhow, below is the code from that file:

<cfinclude template="../Application.cfm"> <cfset attributes.compressoutput = 0> <CFIF NOT IsDefined("session.adminlogged_in") AND NOT cgi.path_info CONTAINS "login.cfm"> <CFLOCATION url="#Application.managementUrl#/login.cfm" addtoken="No"> </CFIF>

The problem seems to be coming from either the CFIF tag or the CFLOCATION tag. Do you see anything glaring from this code? Seems I have read where there can be problems using CFLOCATION.

Thanks for any help you can give!

Jason

Date: Thu, 5 Nov 2009 09:24:20 -0700

From: forums@adobe.com

To: jew0312@live.com

Subject: Coldfusion migration from Windows to Linux - problem

Well I would be careful about trusting GoDaddy technical support in reguards to ColdFusion. Especially thier first line suport as very little idea how ColdFusion works and how to administer it.

I don't mind GoDaddy for my personal, vanity website. But I understand their limitations and the one time I needed a ColdFusion question answered, I just imediatly insisted on being esculated to a tier two support technician so I could talk to one of their actual ColdFusion administrators.

Back in the day, when I was playing with both ColdFusion and Frontpage, I never had any trouble with them working together. But it has been a decade since I concerned myself with Frontpage.

>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Nov 16, 2009 Nov 16, 2009

JEWilson1971 wrote:

Well, after doing some more sniffing around, I think I have isolated where this dang problem is coming from.

In the directory where the management console scripts are, there is an Application.cfm file.  I assume that each directory that has coldfusion scripts must have to have an Application file in there?

No, You only need another Applicaiton.cfm|cfc file if it is overriding or extending the functionality in a parent Application.cfm|cfc file.  The ColdFusion server will start with the directory the CFML file it is running is in and scan up from there to the disk root directory.  The first Applicaiton.cfc or Application.cfm file it finds is the file it will use.  If the same directory has both, it will use the CFC file by preference.

Anyhow, below is the code from that file:

Again, no code included or attached.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 16, 2009 Nov 16, 2009

<cfinclude template="../Application.cfm"> <cfset attributes.compressoutput = 0> <CFIF NOT IsDefined("session.adminlogged_in") AND NOT cgi.path_info CONTAINS "login.cfm"> <CFLOCATION url="#Application.managementUrl#/login.cfm" addtoken="No">

</CFIF

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 16, 2009 Nov 16, 2009

<cfinclude template="../Application.cfm">

<cfset attributes.compressoutput = 0>

<CFIF NOT IsDefined("session.adminlogged_in") AND NOT cgi.path_info  CONTAINS "login.cfm">
      <CFLOCATION url="#Application.managementUrl#/login.cfm" addtoken="No">
</CFIF>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Nov 16, 2009 Nov 16, 2009

Have you tested those values, does that IF statement ever return false.

I can only presume, after reviewing this thread, that it is not ever returning a false value and thus every request is repeadedly relocated.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 19, 2009 Nov 19, 2009
LATEST

Looks like I finally go this working.  What I ended up having to do is to replace cgi.path_info with cgi.script_name.  Once that change was made, I was able to login to the system.  thanks for all the help.

jason

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 04, 2009 Nov 04, 2009

We do not require our users to login to view our site. We do, however, require a login to the area where WE go in to process subscriptions and ads that come in through our site.

Sorry for the confustion.

Date: Wed, 4 Nov 2009 13:47:28 -0700

From: forums@adobe.com

To: jew0312@live.com

Subject: Coldfusion migration from Windows to Linux - problem

Hang on. On one hand you say you don't require uses to login to your site. Then in your next post you're talking about login.cfm...?

I'm confused.

--

Adam

>

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Nov 04, 2009 Nov 04, 2009

Well, then the error needs to be in the login.cfm page or some page included in that request, such as Application.cfm|cfc.

I didn't see any obvious loop in the login.cfm you posted earlier, what goes on your your Application file?

Any other files also included?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Nov 04, 2009 Nov 04, 2009

The only other files that are included are the index.cfm and home.cfm files that I posted earlier.

The way this was set up, and it was all written before I ever started working here, was the Application.cfm file is in the root directory. The files I am working on are in a subdirectory named manage. The Application.cfm file in the manage directory calls back to the Application.cfm in the root directory.

Here is the Application.cfm file from the manage directory:

<cfinclude template="../Application.cfm"> <cfset attributes.compressoutput = 0> <CFIF NOT IsDefined("session.adminlogged_in") AND NOT cgi.path_info CONTAINS "login.cfm"> <CFLOCATION url="#Application.managementUrl#/login.cfm" addtoken="No"> </CFIF> And here is the Application.cfm file in the root directory: <cfapplication name="boatsandharbors" clientmanagement="yes" sessionmanagement="yes" sessiontimeout="#CreateTimeSpan(0,12,0,0)#"> <cfinclude template="functions.cfm"> <cfscript>

if (NOT IsDefined("attributes")) attributes=structNew();

StructAppend(attributes, url, "yes");

StructAppend(attributes, form, "yes");

Attributes.compressOutput = '1';

Application.ds = 'mysqlcf_boatsandharbor';

Application.dsUserName = '';

Application.dsPassword = '';

if (CGI.SERVER_PORT IS "443") {

Application.url = 'https://www.boats-and-harbors.com';

} else {

Application.url = 'http://www.boats-and-harbors.com';

}

Application.secureURL = 'https://www.boats-and-harbors.com';

Application.managementUrl = 'https://www.boats-and-harbors.com/manage';

Application.path = expandpath(".");

Application.classifiedUploadPath = '/home/content/b/o/a/boatsandharbor/html/manage/uploads/classifieds';

Application.displayUploadPath = '/home/content/b/o/a/boatsandharbor/html/manage/uploads/displays';

Application.displaySectionsPath = '/home/content/b/o/a/boatsandharbor/html/manage/uploads/displaySections.txt';

Application.verityDisplays = 'bh_displays';

Application.orderEmail = 'boatsandharbors@citlink.net';

Application.adminEmail = 'boatsandharbors@citlink.net';

Application.adminPhone = '865-637-5525';

settings = QUERY(SQLString: 'SELECT * FROM settings');

</cfscript

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources