### Start the ColdFusion installer Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Run the installer from the directory containing the installation file. For GUI mode, use ./ -i gui. ```bash ./ ``` -------------------------------- ### Start ColdFusion Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Start the ColdFusion server after installation. If an external web server was configured, the cf-connectors.sh script runs automatically on first start. ```bash /cf_root/cfusion/bin/coldfusion start ``` -------------------------------- ### Run the uninstall script Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Execute this command to start the ColdFusion uninstaller on UNIX systems. ```bash ./uninstall.sh ``` -------------------------------- ### Windows: Run hotfix installer Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/coldfusion-2023-release-update-22.html Command to run the hotfix installer on Windows. Replace and with actual paths. ```bash \jre\bin\java.exe -jar \bundles\updateinstallers\hotfix-022-330928.jar ``` -------------------------------- ### Import certificate into local truststore Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Imports the certificate into the local truststore using keytool. Use the password specified during installation. ```bash cfroot\jre\bin\keytool.exe -import -keystore"cfroot\jre\lib\security\cacerts" -file selfsignedcert.cer -storepass password ``` -------------------------------- ### Create a chat model with ChatModel() Source: https://guides.adobe.com/coldfusion/en/docs/coldfusion-ai-guide/create-a-chat-model.html Creates a chat model instance using the ChatModel() function with a configuration struct. The struct sets the provider to openAi, uses the application's API key, selects the gpt-4o-mini model, and sets temperature to 0.7. This is the minimal setup required to run a first call. ```coldfusion chatConfig = { PROVIDER : "openAi", APIKEY : "#application.apiKey#", MODELNAME : "gpt-4o-mini", TEMPERATURE : 0.7 }; chatModel = ChatModel(chatConfig); ``` -------------------------------- ### Start, stop, and restart ColdFusion on Windows Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Run these commands from cfroot\cfusion\bin. The -console argument is optional; without it, logs are saved in cfroot\cfusion\logs. Paused tasks misfire when restarting. ```command coldfusion.exe -start -console ``` ```command coldfusion.exe -stop -console ``` ```command coldfusion.exe -restart -console ``` -------------------------------- ### Linux: Run hotfix installer Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/coldfusion-2023-release-update-22.html Command to run the hotfix installer on Linux-based platforms. Replace and with actual paths. ```bash /jre/bin/java -jar /bundles/updateinstallers/hotfix-022-330928.jar ``` -------------------------------- ### Run hotfix installer on Windows (java -jar) Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/coldfusion-2025-release-update-12.html Command line for Windows to run the ColdFusion 2025 Update 12 hotfix installer. Requires the bundled JRE at \jre\bin\java.exe. Adjust paths for your environment. ```shell \jre\bin\java.exe -jar \bundles\updateinstallers\hotfix-012-331922.jar ``` -------------------------------- ### Run hotfix installer on Linux (java -jar) Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/coldfusion-2025-release-update-12.html Command line for Linux-based platforms to run the ColdFusion 2025 Update 12 hotfix installer. Requires the bundled JRE at /jre/bin/java. Adjust paths for your environment. ```shell /jre/bin/java -jar /bundles/updateinstallers/hotfix-012-331922.jar ``` -------------------------------- ### Start, stop, and restart ColdFusion on UNIX/Linux/Solaris/Mac OSX Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Run these commands from cfroot\cfusion\bin. Use the status command to check the server status. Paused tasks misfire when restarting. ```command ./coldfusion start ``` ```command ./coldfusion stop ``` ```command ./coldfusion restart ``` -------------------------------- ### cfstoredproc identifier validation example Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/coldfusion-2025-release-update-13.html Shows the new validation for stored-procedure names in cfstoredproc. The first example uses a plain identifier and works; the second uses a non-identifier (with SQL injection attempt) and is now rejected. The comment in the code explains the behavior. ```cfml ``` -------------------------------- ### Update port in server.xml for built-in web server Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Edit the server.xml file located in _cfroot_\cfusion\runtime\conf. Search for 'internal webserver start' and update the port number in the connector configuration. Save the file and restart ColdFusion. ```xml port="8500" protocol="org.apache.coyote.http11.Http11Protocol" connectionTimeout="20000" redirectPort="8445" compression="on" useSendfile="no" compressableMimeType="text/html,text/xml"/> ``` -------------------------------- ### Generate SSL certificate with keytool Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Run this command to create a certificate file. If no password is provided, the default password for keystore and key is changeit. The command creates a certificate.keystore in the user's home directory. ```plaintext _cfroot_ \jre\bin\keytool -genkey -alias tomcat -keyalg RSA ``` -------------------------------- ### Configure Apache (Windows and Linux/Mac) Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Use these commands to configure Apache on Windows and Linux/Mac. Replace the placeholders with the actual paths. ```plaintext (Windows only) wsconfig.exe ws apache dir bin /httpd script /apachectl ``` ```plaintext (Linux or Mac only) ./wsconfig ws apache dir bin /httpd script /apachectl ``` -------------------------------- ### cfcompile -deploy command for sourceless distribution Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/deploying-coldfusion-applications.html Use this command to compile CFML files into bytecode format that you can deploy instead of CFML source code. The directory-to-compile is required and must be under the web root. The output-directory cannot be the same as the source directory. After running, back up original CFML files, copy the generated bytecode files to the original directory, and deploy the application. ```bash cfcompile -deploy webroot directory-to-compile output-directory ``` -------------------------------- ### Context entry for virtual directory and doc root in server.xml Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Uncomment and modify this Context entry in CFInstallation\cfusion\runtime\conf\server.xml to add a virtual directory and change the doc root. The aliases attribute must include a leading slash for each path. Change docBase to set the doc root. ```xml ``` -------------------------------- ### Configure SSL connector in server.xml Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Uncomment and update the connector details in the server.xml file to enable SSL. Replace and with the actual certificate location and password. ```xml ``` -------------------------------- ### List web servers Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Use this command to see the list of web servers. ```plaintext ./wsconfig -list ``` -------------------------------- ### Configure Apache (Linux or MAC) Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Use this command to configure Apache on Linux or MAC. Replace with the actual Apache configuration directory. ```plaintext (Linux or MAC only) ./wsconfig -ws apache -dir ``` -------------------------------- ### Generate private key in keystore Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Generates a private key in a keystore file using keytool. You will be prompted for details. ```bash cfroot\jre\bin\keytool -genkeypair -alias certificatekey -keyalgRSA -validity 7 -keystore keystore.jks ``` -------------------------------- ### Configure IIS with site name Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Use this command to configure IIS with a site name. Replace with the actual site name. ```plaintext wsconfig.exe -ws iis -site ``` -------------------------------- ### Unconfigure all web servers Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Use this command to unconfigure all web servers. ```plaintext ./wsconfig -uninstall ``` -------------------------------- ### cfcompile command to precompile ColdFusion pages Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/deploying-coldfusion-applications.html Use this command to compile ColdFusion pages (CFM, CFC, and CFR files) into Java classes to enhance initial page loading time. The webroot parameter is the fully qualified path to the web server root, and the optional directory-to-compile must be under the web root. If not specified, all ColdFusion templates in the web root are compiled. ```bash cfcompile webroot [directory-to-compile] ``` -------------------------------- ### Configure Apache cluster (Linux or MAC) Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Use this command to configure an Apache cluster on Linux or MAC. Replace the placeholders with the actual paths and cluster name. ```plaintext (Linux or MAC only) ./wsconfig -ws apache dir -cluster ``` -------------------------------- ### Navigate to the uninstall directory Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Use this command to change to the ColdFusion uninstall directory on UNIX systems. ```bash cd cf_root/uninstall ``` -------------------------------- ### Import certificate to local truststore Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Imports the .cer file into the local Java truststore (cacerts) on the local host. ```bash cfroot\jre\bin\keytool.exe -import -keystore "cfroot\jre\lib\security\cacerts" -file selfsignedcert.cer -storepass password ``` -------------------------------- ### Unconfigure Apache Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Use this command to unconfigure Apache. Replace with the actual Apache configuration directory. ```plaintext ./wsconfig -remove ws apache dir ``` -------------------------------- ### Add HTTPS SSL Listener to jetty.xml Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Adds an HTTPS SSL listener configuration to the jetty.xml file. Update the keystore name, password, and jks file as needed. ```xml 8443 30000 /etc/jks-file.jks changeit changeit /etc/jks-file.jks changeit ``` -------------------------------- ### Uncomment Tomcat connector in server.xml Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Uncomment the connector XML in cfroot\cfusion\runtime\conf\server.xml to enable the internal web server. Save the file and restart ColdFusion. ```xml port="8500" protocol="org.apache.coyote.http11.Http11Protocol" connectionTimeout="20000" redirectPort="8445"/> ``` -------------------------------- ### Unconfigure IIS with site name Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Use this command to unconfigure IIS using a site name. Replace with the actual site name. ```plaintext wsconfig.exe -remove iis -site ``` -------------------------------- ### Cluster configuration block for server.xml Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Add this block between the and tags in the remote instance's server.xml. It configures DeltaManager, GroupChannel, and ClusterListener for session replication. Update the membership port to match the cluster's multicast port. ```xml ``` -------------------------------- ### Stop ColdFusion Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Stop the ColdFusion server. ```bash /cf_root/cfusion/bin/coldfusion stop ``` -------------------------------- ### Configure IIS with site number Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Use this command to configure IIS with a site number. Replace with the actual site number. ```plaintext wsconfig.exe -ws iis -site ``` -------------------------------- ### Identify Java temp directory for disk cache Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/administering-coldfusion-security.html Use this ColdFusion code to output the Java system property java.io.tmpdir, which identifies the default disk cache directory. The sandbox must grant read/write permission to this directory for disk-based caching to work. ```ColdFusion writeoutput("Temp Dir : " & createobject("java","java.lang.System").getProperty("java.io.tmpdir") ); ``` -------------------------------- ### Configure IIS cluster Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Use this command to configure an IIS cluster. Replace and with the actual site number and cluster name. ```plaintext wsconfig.exe -ws iis -site -cluster ``` -------------------------------- ### Add HTTPS SSL Listener to jetty.xml Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Add this entry to the jetty.xml file to enable HTTPS SSL listener on port 8443. ```xml 8443 30000 /etc/server.jks changeit changeit /etc/server.jks changeit ``` -------------------------------- ### JVM argument to allow all attachments Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/coldfusion-2025-release-update-10.html Use this JVM argument to restore the previous behavior of accepting all attachment types without consulting the blocked-extension list, equivalent to using accept="*" globally. ```text -Dcoldfusion.attachment.allowblockedextensions ``` -------------------------------- ### Servlet mappings for SES URLs in web.xml Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Add these servlet-mapping entries to the web.xml file inside WEB-INF to enable SES URLs on app servers other than Tomcat. This applies from ColdFusion 11 Update 12 and ColdFusion (2016 release) Updates 3 and 4. ```xml CfmServlet *.cfml/* CfmServlet *.cfm/* CFCServlet *.cfc/* CfmServlet *.CFML/* CfmServlet *.Cfml/* CfmServlet *.CFM/* CfmServlet *.Cfm/* CFCServlet *.CFC/* CFCServlet *.Cfc/* ``` -------------------------------- ### Unconfigure IIS with site number Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Use this command to unconfigure IIS using a site number. Replace with the actual site number. ```plaintext wsconfig.exe -remove -ws iis -site ``` -------------------------------- ### Java flag for manual hotfix on Java 17.0.8+ Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/coldfusion-2023-release-update-22.html Use this flag when applying the hotfix manually on Java 17.0.8 or higher. Not required when applying from the Administrator. ```bash java -Djdk.util.zip.disableZip64ExtraFieldValidation=true -jar hotfix.jar ``` -------------------------------- ### Export certificate Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/installing-the-server-configuration.html Exports the certificate to a .cer file. Can be self-signed or from a Certificate Authority. ```bash cfroot\jre\bin\keytool -export -alias certificatekey -keystorekeystore.jks -rfc -file selfsignedcert.cer ``` -------------------------------- ### JVM flag to re-enable Saxon doc functions Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/coldfusion-2025-release-update-10.html Add this JVM flag to re-enable the doc(), doc-available(), and document() functions in Saxon XML parser. Default is false; set to true to enable. ```text -Dcoldfusion.xml.saxon.allowDocFunction=true ``` -------------------------------- ### XmlTransform() normal transform Source: https://guides.adobe.com/coldfusion/en/docs/install-and-configure-coldfusion/coldfusion-2025-release-update-13.html Shows a standard XmlTransform() call that remains unaffected by the new security blocking of collection() and uri-collection(). ```cfml ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.