Skip to main content
Known Participant
Dec 4, 2024 10:21 PM UTC
Answered

Changed cf_scripts location, unable to login to admin (CF2023)

I am building a dev machine and recently installed CF2023 in Developer mode (Windows 11 Pro).

 

Everything was working correctly - I could login to CF, added some sites to IIS, was able to access those sites locally and from a test machine.

 

So, I then proceeded to set the alias for the CF_SCRIPTS folder (and added server mapping and MySQL datasources).

 

I am now unable to login to the CF Admin (trying to login locally on the Win 11 Pro machine).  I can see the CF Admin login page, but the ID is prefilled (admin) and nothing happens after entering the correct password and clicking Login.

 

The Coldfusion-out.log file indicates:

Error [main] - Unable to install ajax package: java.lang.Exception: Script folder C:\ColdFusion2023\cfusion\wwwroot\[MY-SCRIPT-FOLDER-NAME] not found. Ajax package has been downloaded at C:/ColdFusion2023/bundles/ajax-2023.0.05.330608.zip. If you have created a mapping of cf_scripts folder, you can copy the contents of the downloaded zip into CF_SCRIPTS/scrips/ajax folder

 

I copied the contents of ajax-2023.0.0.5.330608.zip to C:\ColdFusion2023\cfusion\wwwroot\cf_scripts\scripts\ajax with the same results.

 

Is cfusion\wwwroot\cf_scripts supposed to be renamed to cfusion\wwwroot\[MY-SCRIPT-FOLDER-NAME] ?

 

I was under the understanding that the CF_SCRIPTS alias was only set in the CF Admin console and the actual folder name on the disk does not change.

 

My CF2021 installaton on a third party host matches my expectation - the alias is set in the CF Admin console but the folder name on the drive is still CF_SCRIPTS.

 

      Thanks

    This topic is closed to new replies. Start a new post to keep the conversation going.
    BKBK
    BKBKCorrect answer
    Community Expert
    Dec 7, 2024 3:35 PM UTC

    I had expected you would do the following:

    1.  Copy the scripts folder, that is, C:\ColdFusion2023\cfusion\wwwroot\cf_scripts\scripts (including all its contents) to C:\ColdFusion2023\cfusion\wwwroot\[MY-SCRIPT-FOLDER-NAME]. The result would then be C:\ColdFusion2023\cfusion\wwwroot\[MY-SCRIPT-FOLDER-NAME]\scripts. 
    2.  Change the value of "Default ScriptSrc Directory" in the ColdFusion Administyrator to /[MY-SCRIPT-FOLDER-NAME]/scripts/. Press the button "Submit Changes".
    3.  Restart ColdFusion.

    9 replies

    Priyank Shrivastava.
    Inspiring
    Dec 6, 2024 10:10 AM UTC

    @rainmakr  As @BKBK  mentioned, please let us know where you made the change.. CF Admin can be impacted if you changed "" which I mentioned in my screenshot below, then you can recover it from neo-runtime.xml

     

     

    1. First go to \ColdFusion2023\cfusion\lib 

    2. Take the backup of "neo-runtime.xml" and then open the file

    3. Search for "CFFormScriptSrc" and add this string value "/cf_scripts/scripts/"

    4. Save the changes and restart ColdFusion. 

     

    If you are planning to move the cf_script folder from ColdFusion directory and trying to create an Alias for the same, please let us know.

     

    Translate
    Thanks, Priyank Shrivastava
    rainmakrAuthor
    Known Participant
    Dec 6, 2024 7:51 PM UTC

    Yes, that resolved my issue with not being able to login.

     

    I must be missing an alias, but don't recall setting an alias when I setup my CF2021 instance (this is CF2023).

     

    I run into the issue when changing the "Default ScriptSrc Directory" in the CF Admin. I run into the login issue when I change it from the default.  Do I need to move or create a system/OS alias for C:\ColdFusion2023\cfusion\wwwroot\cf_scripts\scripts, too?

    Translate
    BKBK
    Community Expert
    BKBKCommunity ExpertCorrect answer
    Community Expert
    Dec 7, 2024 3:35 PM UTC

    I had expected you would do the following:

    1.  Copy the scripts folder, that is, C:\ColdFusion2023\cfusion\wwwroot\cf_scripts\scripts (including all its contents) to C:\ColdFusion2023\cfusion\wwwroot\[MY-SCRIPT-FOLDER-NAME]. The result would then be C:\ColdFusion2023\cfusion\wwwroot\[MY-SCRIPT-FOLDER-NAME]\scripts. 
    2.  Change the value of "Default ScriptSrc Directory" in the ColdFusion Administyrator to /[MY-SCRIPT-FOLDER-NAME]/scripts/. Press the button "Submit Changes".
    3.  Restart ColdFusion.
    Translate
    BKBK
    Community Expert
    Community Expert
    Dec 6, 2024 9:51 AM UTC

     

    You say, "...I then proceeded to set the alias for the CF_SCRIPTS folder (and added server mapping and MySQL datasources).".

    However, when I read that, it is unclear to me what you actually did. 

    Could you please explain what you actually did, for example, in steps.

    Translate
    rainmakrAuthor
    Known Participant
    Dec 6, 2024 7:51 PM UTC

    I run into the issue when changing the "Default ScriptSrc Directory" in the CF Admin.from the default.  Do I need to move/create a system/OS alias for C:\ColdFusion2023\cfusion\wwwroot\cf_scripts\scripts, too?

     

    Thanks

    Translate