September 29, 2022
COLDFUSION IN DISTRIBUTED ENVIRONMENT (WINDOWS)
Comments
(2)
September 29, 2022
COLDFUSION IN DISTRIBUTED ENVIRONMENT (WINDOWS)
Staff 7 posts
Followers: 2 people
(2)

ColdFusion in distributed environment (Windows) – Updating for CF2021 and CF2023.

On IIS Server:

  • Install IIS Roles and components:

Ensure that, all of the below IIS features are enabled:

  • NET
  • CGI
  • ISAPI Extensions
  • ISAPI Filters

  • Install Visual C++ Redistributable for Visual Studio 2012 (x64) from the below link:

https://www.microsoft.com/en-in/download/details.aspx?id=30679

  • Copy the following from ColdFusion server to IIS server: (<version> would be 2021 or 2023 based on your ColdFusion installation). Create the similar directory structure as in ColdFusion server.

C:\ColdFusion<version>\jre (directory)

C:\ColdFusion<version>\cfusion\runtime\lib\wsconfig.jar

C:\ColdFusion<version>\cfusion\runtime\lib\config.properties

C:\ColdFusion<version>\cfusion\runtime\conf\server.xml

C:\ColdFusion<version>\config\instances.xml

C:\ColdFusion<version>\config\cluster.xml

C:\ColdFusion<version>\cfusion\wwwroot\WEB-INF\web.xml (Applicable for ColdFusion 2021 and ColdFusion 2023)

  • Open a Command prompt, as Administrator on IIS Server and run the CF wsconfig tool:

C:\ColdFusion<version>\jre\bin\java -jar cfusion\runtime\lib\wsconfig.jar

  • Create a sample cfm file and place in files under IIS web server root and the same files under ColdFusion’s Webroot. Send requests to the Web server’s URL.

Distributed environment is ready for use. The web server would redirect these to ColdFusion, which is on some other machine.

2 Comments
2024-07-12 20:26:48
2024-07-12 20:26:48

When I followed the instructions at the wsconfig.jar part, it won’t show IIS as an option.  It only shows Apache.  I’m running it from a CMD prompt as administrator, but it displays this error message:

Error while configuring connector on IIS. Make sure you have administrator privileges

Like
()
(1)
>
sjibben
's comment
2024-07-12 20:54:55
2024-07-12 20:54:55
>
sjibben
's comment

Missed the step of installing VS 2012 redistributable.  It works now.

Like
()
Add Comment