Skip to main content
Participating Frequently
May 26, 2013
Question

Symbolic Links do not work for Application.cfm in CF10

  • May 26, 2013
  • 1 reply
  • 5018 views

I have a Web, that use a symbolic link for centralized code.

The Application.cfm, stored in the original web-root, will not read from code

in the linked directory.

Thank you for your assistance.

    This topic has been closed for replies.

    1 reply

    Inspiring
    May 26, 2013

    You're gonna need to provide a bit more detail here:

    * OS

    * how you created the link

    * how you're calling in the code

    * what the error message is

    * have you verified the user CF is using has permissions to the files concerned

    --

    Adam

    PretorianAuthor
    Participating Frequently
    May 26, 2013

    Hi Adam,

    thank you for your answer.

    The web servers works under SuSE Linux 12.3, the link was first copied via a tar-archive

    from the old server and then created new with "ln -s ../orgdirectory newdirectory".

    It seems, that the Session-ID, defined in Application.cfm is not recocnized by cfm-templates

    in newdirectory, which probably is stored in "orgdirectory".

    There are several Error messages, that session-variables (SESSION.LANG for example) are

    not defined. All these variables were defined in Application.cfm.

    The Application.cfm is owned by the same user as the other cfm-Templates.

    This code is identical functional at another server, working with CFMX7.

    I had installed all patches, that offered by Adobe.

    I'm frustrated.

    WolfShade
    Brainiac
    March 26, 2014

    This seems to be broken still/again, possibly due to a CF update, or possibly because it was always buggy in CF10. I have had no issues whatsoever in CF9 with the default lookup order.

    I have the following directory structure ("webroots"):

    /data/www/docroot

    /data/mobile/docroot

    /data/wwwdev/docroot

    /data/mobiledev/docroot

    And I symlink in the following cfc directories

    /data/cfc

    /data/cfcdev

    Both www and mobile get /data/cfc and the dev sites get /data/cfcdev

    Each of those docroots is a separate virtual server and I have setup the webserver connector to Tomcat.

    Now, no matter which of the three lookup settings I try, the cfcs will not find an Application.cfc/Application.cfm

    I read a similar issue early on in CF8 that was resolved with a patch to 8.0.1.

    Any ideas?


    Don't know if this will help, or not.  I was searching for a way to get TLS/SSL to work with CF10 built-in web server, and ran across this:

    Note:  To enable OS Symbolic links after switching to Tomcat, edit the context.xml file found in /cfusion/runtime/conf/ to add allowLinking="true" attribute to the context element.

    HTH,

    ^_^