Skip to main content
Marco Colombo
Participating Frequently
December 22, 2023
Question

cf 2023 install on windows server, web server choose

  • December 22, 2023
  • 1 reply
  • 1453 views

Hi,

I'm installing cf 2023 standard edition on a windows server.

I have installed apache web server.

At this link:

https://helpx.adobe.com/it/coldfusion/installing/installing-the-server-configuration.html

I found the installation steps.

 

How do I start this builder? because I downloaded the GUI version but when choosing the webserver it only shows me the build-in 

 

I hope I was clear

Many thanks

Marco

    This topic has been closed for replies.

    1 reply

    Charlie Arehart
    Community Expert
    December 22, 2023

    Marco, the doc you point to is for installing cf. As for configuring cf to connect to a web server, that has indeed required separate steps since cf2016 (whereas it used to be offered WITHIN the install of CF).

     

    And that process (and using the  wsconfig tool) is discussed in a separate document. While the doc has A LOT tonsay, I'm providing here a link to a section near the bottom which should be a good starting point for you, the section "Web server configuration", at:

    https://helpx.adobe.com/coldfusion/configuring-administering/web-server-management.html#Webserverconfiguration

     

    Finally, maybe this tool is the "builder" you refer to, but do beware, there is Adobe ColdFusion Builder, which is an IDE or editor. You should not refer to "builder" with regard to web server configuration, as some readers will be misled or may mislead you in their replies. 🙂

     

    Let us know if this gets you going. 

    /Charlie (troubleshooter, carehart. org)
    Marco Colombo
    Participating Frequently
    December 28, 2023

    Thanks  Charlie. 

    in fact the last time I installed cf on a server was the 2016 version. 🙂

     

    I have now configured (correctly I think) the connector with Apache 2.4.

    However, I have another problem: if I create an index.cfm page it is displayed as an html page and therefore a simple instruction is not executed (I assigned a value to a variable and made a cfoutput). I see the variable name #test#

    What could it depend on?

     

    Marco

    Charlie Arehart
    Community Expert
    December 30, 2023

    Hi Charlie,

    I'm logged in as admin and i have all the privileges. To be safe, I redid the procedure with wsconfig by opening the tool as administrator.

     

    in the apache configuration I currently only have one virtual host that points to the root directory and is defined in the general configuration file (httpd.conf).

     

    "Look at that folder you named: does its recently modified config file have lines related to cf? If so, does it have include lines pointing to still others?"

    yes, they are there: 

    <VirtualHost 194.76.116.40:80>
    ServerName 194.76.116.40
    DocumentRoot C:/www
    ErrorLog C:/logs/_error.log
    CustomLog C:/logs/_access.log common
    Include "C:\ColdFusion2023\config\wsconfig\1\mod_jk_vhost.conf"
    </VirtualHost>

    Include "C:\Apache24\conf\mod_jk.conf"

     

    I don't know if the configuration performed by cf is correct.
    I attach a pdf file with some screenshots so that the situation is clearer.

    Could it be due to the antivirus or closed firewall ports? only 80 and 443 are open at the moment.

     

    Marco


    Marco, given what you've shared, it seems clear that the site you're visiting (the request you're making, showing the CFML) is running somehow WITHOUT running through the Apache configuration that is enabling the connection to CF.

     

    My simplest guess is that the domain name or IP address of the request you're making is NOT using that 194.76.116.40 indicated in the Servername of the virtualhost in your httdp.conf, as shown in your 4th image of the PDF. You do say it's your only onw. As such, I suspect instead it's ending up being processed NOT by that virtualhost but instead by the main settings of the httd.conf. And THAT would be how it would not connect to CF.

     

    One solution would be to copy that include of the mod_jk_vhost.conf file to OUTSIDE that virtualhost directive. That way it WOULD apply to requests that reach Apache but do NOT match that virtualhost directive. 

     

    Another would be to do a ping of that domain name (whatever you're using), and make sure it resolves to that IP address listed in the virtual host (first line). Assuming it does not, maybe THAT is the ip address you should be putting there. Or you might want to change the virtualhost line to name that domain name instead. (There are indeed also that ServerName and related ServerAlias directives you can ALSO set within a virtualhost.)

     

    There's also a helpful command-line tool you could run from that Windows apache bin folder, httpd -D DUMP_VHOSTS, which will show you what vhosts are indeed defined (across all included files off the httpd.conf file). Another that could help understand that is httpd -D DUMP_INCLUDES. (People finding this who work on OSs where there is no httd in the Apache bin may find instead they can use these same sort of diagnostic args with whatever is the binary in that folder that runs Apache, whether it's apachectl, apache2ctl, apache2, or even http.)

     

    Finally, there's one more thing that's a bit confusing about your screenshots. In your 4th image, with the connector created, shows on the left, server125115.serverkeliweb.it. In my experience, what shows there is the value you enter in the first "Appserver name" field of the connector (in what's shown in your second image of the PDF). Yet you show second image that you entered there an IP address instead--indeed the same one as you selected in the "Apache Virtual Host" field.

     

    Indeed, since you say above (previous reply) that Apache and CF are on the same machine, why didn't you just leave that "Appserver name" field at its default of "localhost"? I'm not saying that this using a different IP address in the add connector field has anything to do with your new problem of seeing CFML. I just raise it as something I noticed.

     

    But again, the bottom line is that your request is NOT ending up in that virtualhost, and since that's what you told the CF wsconfig tool to setup. So you either need to change that virtualhost to process your request, or copy that include outside the virtualhost so that it affects  such other requests. Let us know how that goes.

    /Charlie (troubleshooter, carehart. org)