Follow the steps below.
Step 1: Create the New Script Directory and copy the existing cf_scripts content to the new Script Directory.
Create a new Scripts Directory (C:/cf_scripts) and copy the existing cf_scripts content ({cf_root}/cfusion/wwwroot/cf_scripts) to the new Scripts Directory.

Step 2: Edit server.xml
Take a backup of the existing server.xml file in the ({cf_root}/cfusion/runtime/conf) directory. This ensures you can revert to the original configuration if needed.
Open the server.xml file in a text editor and add the following configuration:
</Context>
<Context path=”” docBase=”C:/ColdFusion2025/cfusion/wwwroot” WorkDir=”C:/ColdFusion2025/cfusion/runtime/conf/Catalina/localhost/tmp”>
<Resources>
<PreResources base=”C:/cf_scripts/scripts” className=”org.apache.catalina.webresources.DirResourceSet” webAppMount=”/cfscripts-10/scripts”/>
</Resources>
</Context>

- Use C:/cf_scripts/scripts as a physical directory
- Mount it virtually at /cfscripts-10/scripts
Step 3: Update the cf_scripts path in the Administrator.
- Take a backup of neo-runtime.xml located under cfusion/lib.
- Update the new cf_scripts path in ColdFusion Administrator → Server Settings → Settings → Default ScriptSrc Directory, and submit the changes.

Note: The ScriptSrc directory path can also be updated in the neo-runtime.xml file on the backend.
Step 4: Restart the ColdFusion server and verify that you can log in to the ColdFusion Administrator.
Note: Any changes made to server.xml or neo-runtime.xml require a ColdFusion restart for the changes to take effect.
Follow the steps below.
Step 1: Create the New Script Directory and copy the existing cf_scripts content to the new Script Directory.
Create a new Scripts Directory (C:/cf_scripts) and copy the existing cf_scripts content ({cf_root}/cfusion/wwwroot/cf_scripts) to the new Scripts Directory.

Step 2: Edit server.xml
Take a backup of the existing server.xml file in the ({cf_root}/cfusion/runtime/conf) directory. This ensures you can revert to the original configuration if needed.
Open the server.xml file in a text editor and add the following configuration:
</Context>
<Context path=”” docBase=”C:/ColdFusion2025/cfusion/wwwroot” WorkDir=”C:/ColdFusion2025/cfusion/runtime/conf/Catalina/localhost/tmp”>
<Resources>
<PreResources base=”C:/cf_scripts/scripts” className=”org.apache.catalina.webresources.DirResourceSet” webAppMount=”/cfscripts-10/scripts”/>
</Resources>
</Context>

- Use C:/cf_scripts/scripts as a physical directory
- Mount it virtually at /cfscripts-10/scripts
Step 3: Update the cf_scripts path in the Administrator.
- Take a backup of neo-runtime.xml located under cfusion/lib.
- Update the new cf_scripts path in ColdFusion Administrator → Server Settings → Settings → Default ScriptSrc Directory, and submit the changes.

Note: The ScriptSrc directory path can also be updated in the neo-runtime.xml file on the backend.
Step 4: Restart the ColdFusion server and verify that you can log in to the ColdFusion Administrator.
Note: Any changes made to server.xml or neo-runtime.xml require a ColdFusion restart for the changes to take effect.
- Most Recent
- Most Relevant





