Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ColdFusion 5 Server

Status
Not open for further replies.

khue

Programmer
Joined
Mar 6, 2001
Messages
112
Location
US
I've been running ColdFusion 4.5 Enterprise for the past year and I've recently installed ColdFusion 5 Server on two new box: Production and Development. The hardware for these two box is different. The Production box is an IBM Server xSeries 220 with a P3 800 Mhz and the development box is an IBM Intellistation M Pro with a P4 1.5 Mhz. Both, the Production box and the Development box are using a SCSI HD but the Production Box is setup as RAID 5 with 3 SCSI HDs and the development box is just a regular Server box with 1 SCSI HD. Both have only one driver letter (c) on each box. Both box have ColdFusion 5 Server, MS SQL 2000 Server and MS IIS 5.0 installed on the drive C: All configuration have been set to be the same in ColdFusion 5 Server, MS SQL 2000 Server and MS IIS 5.0.

After ColdFusion Server 5 have been installed, it reboots and brings up IE to test to see if the installation was successful. And it was, as I have test.

Now, after these two box have been installed, the databases are restored from backup and ColdFusion application files (*.cfm) have been moved from the old boxes to these two new boxes.

The problem I have is that the Production is running very well with no errors and the response time is instantaneous for each coldfusion that the user request.

On the other hand, the development box is not servicing the request! For example, I entered the following url: It cannot load this page! If I simply load any *.html file, it works just fine.

My conclusion is that Coldfuaion is not working correctly because it seems to be unable to service the request for the Login.cfm file.

My question is why the two boxes are behaving totally differently when infact both software configuration are set exactly? Is there a solution for this?

Your solution and help is appreciated greatly.
 
What happens when you try to load the login.cfm? Any error messages or anything?

Can you bring up the Cold Fusion administrator on the dev machine? If that works and you can bring up the installation test, then CF is working fine -- it is just that there is a problem with the configuration of IIS with your site.

Are your redirecting to a login page in your application.cfm page? (using cflocation) I'm thinking that your directories may not be exactly the same. Just from experience, I had a login page that if the session was not set, it would redirect to login.cfm, however if the page was login.cfm do not redirect (Otherwise it would be in a continual loop and look like it is not responding) -- well, when I moved it to another server, the path name was a little different (had a capital letter in it) so it thought Login.cfm was not login.cfm, so it got "stuck".

HTH,
Tim P.
 
Tim,

Yes, I can bring up the ColdFusion Administrator web page and installation test. And Yes, I am redirecting the to a login.cfm page in the application.cfm. The path in the application.cfm is <cflocation url=&quot;../login/login.cfm&quot;>. But the login.cfm page is in a subdirectory relative to application.cfm file. The Development directory structure is exactly the same as Production directory structure because I copied it from the Production box. The structure on both box are the same as below:

Main directory:
C:\Inetpub\
Subdirectories:
..\Balance
..\Bus
..\Course
..\Home
..\Images
..\Login
..\Payment
..\Refund
..\Reports
..\Teachers
..\Templates

Also <CFAPPLICATION ..> tag is set as the following:

<CFAPPLICATION NAME=&quot;Community Education&quot;
CLIENTMANAGEMENT=&quot;Yes&quot;
CLIENTSTORAGE=&quot;Client&quot;
SESSIONMANAGEMENT=&quot;Yes&quot;
SETCLIENTCOOKIES=&quot;No&quot;
SESSIONTIMEOUT=&quot;#CreateTimeSpan(0,8,30,0)#&quot;>

According to documentation, I believe that ColdFusion is not case sensitive.

Oh, I forgot to mention that the OS for both box are Windows 2000 Server.

If it is redirecting as to what you are assuming, where is it redirecting to? I thought that it should work because the Production box is working fine all the files and directory structures are the same.

Your help is greatly appreciated.
 
What directory is your application.cfm in? Can you post the code that determines when to use the cflocation tag?

Check in the CF Administrator for the mappings -- you may have your mappings different on the servers that could confuse things.

What I think could also be happening is that if you have your application.cfm in your directory, and you do not have an application.cfm in your login directory, when a user accesses a page in a different directory, it is redirecting to ./login/login.cfm. Since login.cfm is also a .cfm page, the application.cfm page is also called again, and then it tries to redirect login.cfm to itself, getting stuck in an endless loop in trying to redirect to login.cfm. This looks like it is locked up or hanging there. If you have some type of condition that checks to see if the script name is NOT ./login.cfm, then it could be case sensitive there. For example, you may have

<cfif cgi.script_name is NOT &quot;/login/login.cfm&quot;>
Then it may fail if your directory is &quot;Login&quot; and not &quot;login&quot; -- CF is not case sensitive when it comes to filenames on NT, but in the cfif, it is comparing 2 literal strings, so it would be case sensitve.

HTH,
Tim P.
 
Tim,

This the application.cfm code:

<CFAPPLICATION NAME=&quot;Community Education&quot;
CLIENTMANAGEMENT=&quot;Yes&quot;
CLIENTSTORAGE=&quot;Client&quot;
SESSIONMANAGEMENT=&quot;Yes&quot;
SETCLIENTCOOKIES=&quot;No&quot;
SESSIONTIMEOUT=&quot;#CreateTimeSpan(0,8,30,0)#&quot;
APPLICATIONTIMEOUT=&quot;#CreateTimeSpan(0,8,30,0)#&quot;>

<CFSET IP_Address = &quot;10.2.4.39&quot;>
<CFSET IP_DB1 = &quot;198.174.26.12&quot;>
<CFSET IP_DB2 = &quot;10.2.4.39&quot;>

<CFIF NOT IsDefined(&quot;Application.DSN1&quot;)>
<CFSET APPLICATION.DSN1 = &quot;Campus&quot;>
<!--- <CFSET APPLICATION.DSN1 = &quot;Kampus&quot;> --->
</CFIF>

<CFIF NOT IsDefined(&quot;Application.DSN3&quot;)>
<CFSET APPLICATION.DSN3 = &quot;CommunityEd&quot;>
</CFIF>

<CFIF NOT IsDefined(&quot;Application.Server&quot;)>
<CFSET APPLICATION.Server = &quot;#IP_Address#&quot;>
</CFIF>

<CFIF NOT IsDefined(&quot;Application.DB1&quot;)>
<CFSET APPLICATION.DB1 = &quot;#IP_DB1#&quot;>
<!--- <CFSET APPLICATION.DB1 = &quot;#IP_DB2#&quot;> --->
</CFIF>

<CFIF NOT IsDefined(&quot;Application.DB2&quot;)>
<CFSET APPLICATION.DB2 = &quot;#IP_DB2#&quot;>
</CFIF>

<CFIF NOT IsDefined(&quot;Application.Image&quot;)>
<CFSET APPLICATION.Image = &quot;../../Images&quot;>
</CFIF>

<CFIF NOT IsDefined(&quot;Application.Templates&quot;)>
<CFSET APPLICATION.Templates = &quot;../Templates&quot;>
</CFIF>

<!---If the user has not logged in, or their session has expired, take them to the login page.--->
<CFIF NOT IsDefined(&quot;Session.User_Name&quot;)>
<CFLOCATION URL=&quot;../login/login.cfm&quot; ADDTOKEN=&quot;No&quot;>
<CFABORT>
</CFIF>

<!--- End of application.cfm --->

The application.cfm file is in the directory: C:\Inetpub\
In the login directory, C:\Inetpub\there is no application.cfm file. Should there be one?

The whole web application is using relative path except for the Javascript codes which uses absolute path.
 
If there is no application.cfm in the login directory then it will use the application.cfm in the parent directory. Since the session.user_name is not set, then it will keep trying to cflocate to itself -- so that is what you are seeing -- it is in a loop.

The easiest thing to do would be to put an application.cfm page in that directory and see if that fixes it.

HTH,
Tim P.
 
Tim,

I will do that.

Just curious, if that is the case, then how come the Production box is working fine? Is there an explaination to the Production box?
 
I'm not sure why it would work on the production box. It &quot;shouldn't&quot; as far as I know.

The only thing that I am curious about is the mappings set up in the CF administrator -- maybe there was one set up for the login directory?

I haven't played with mappings very much, I haven't had the need for much, but I am curious if this would be the case.

Let me know if it works out.

Tim P.
 
Tim,

I have put an application.cfm file in the C:\Inetput\ directory and I have been able to see the login (login.cfm) screen but each time that I logon, it does not actually log me onto the system but rather loop/repost the login screen.

It seems like the application.cfm in the Login directory is not behaving properly.
 
Hmmm, what about the mappings? Any differences there? Any differences on the IIS settings?

Just to troubleshoot, have you tried taking out the cflocation tag and just putting some text there to see what it is doing?

 
Tim,

That was the very first thing that I have checked. The IIS configurations are the same in both box.

What mapping? Mapping in ColdFusion Studio?

This is a portion of the code that contains the <cflocation> tag:

<CFIF IsDefined(&quot;CLIENT.LastAccess&quot;)>
<CFLOCATION URL=&quot;../home/index.cfm&quot;>
<CFELSE>
<CFSET CLIENT.LastAccess = DateFormat(Now(),&quot;mm/dd/yyyy&quot;)>
<CFLOCATION URL=&quot;../home/index.cfm&quot;>
</CFIF>
<CFABORT>

the path here is relative to which is mapped to C:\Inetpub\
I have tried taking out the <cflocation > tag and have tested it. It does nothing once I commented out the <cflocation> tag.

This is very strange to me. I've never had this problem on the old boxes.

I've never had to do this much trouble shooting. It's strange because I've followed the installation process for both boxes.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top