CFEXECUTE working on CFMX 6.0 but not CFMX 6.1

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default CFEXECUTE working on CFMX 6.0 but not CFMX 6.1

    Hi all,

    I'm using CFBB and want to sync-up the usernames and passwords stored
    in the cfbb database to the file called by .htaccess to require
    authentication before entering the bulletin board.

    On my CFMX 6.0 box (not patched in a while) the following command works
    great:

    <cfquery name="ug" datasource="#dsn#">
    select username, password from f_users
    </cfquery>
    <cfoutput query="ug">
    <cfexecute name="c:\winnt\system32\cmd.exe"
    arguments="/c c:\apache_access\htpasswd.exe -b
    c:\apache_access\phys_users #username# #password#"
    outputFile="c:\apache_access\log.txt"
    timeout="30">
    </cfexecute>
    </cfoutput>

    But on my test webserver, which is setup identically other then having
    CFMX 6.1 and all updates, it doesn't work at all. Nothing is written
    to the log.txt file nor the log file within CF Admin and there's no
    error when the page executes in the browser. I can run the following
    just fine on the server:

    c:\winnt\system32\cmd.exe /c c:\apache_access\htpasswd.exe -b
    c:\apache_access\phys_users test1 test2

    So I know the command works fine by itself. Also this works perfectly
    on the stock CFMX 6.0 box with no updates.

    Suggestions ??? I have no security enabled on the CFMX 6.1 box to
    prevent cfexecute from working.

    Any suggestions ??? I've toyed with the timeout, as little as 5 as
    much as 60, but nothing. I've also tried even tried using
    "arguments="/c dir < test" and so forth, but nothing.

    Both servers are Windows 2000 Server
    CFMX6.0 is Apache 2.0.48 with no CF updates
    CFMX6.1 is Apache 2.0.52 with ALL CF updates
    All Windows updates are installed on each box

    Thanks --

    Samalex

    Alex Guest

  2. Similar Questions and Discussions

    1. CFCHART not working in CFMX 6.1
      The CFCHART tag abruptly stopped working at my hosting provider (CF6.1,IIS). These two links demo the failure mode, ...
    2. .CFM Embedded in URL Not Working in CFMX
      A special URL format that used to work in ColdFusion 5 is not working in CFMX 6.1. I use this type of URL to return files using CFCONTENT. This...
    3. Webservice not working in CFMX 7
      IWhen trying to access the webservice from a remote server running also CFMX 7 it gave out this exception: Here is the fault returned when...
    4. CFMX 7 Flash remoting is not working.
      On CFMX 7 J2EE, We cannot get flash remoting to run. Whenever we run http://xxx.xxx.xxx.xxx/flashservices/gateway we get a 404 error in IIS. On...
    5. CFExecute - Program doesn't close CFMX
      i had the same problem... in the end i just resorted to a UDF that is quite handy. http://www.cflib.org/udf.cfm?ID=744
  3. #2

    Default CFEXECUTE working on CFMX 6.0 but not CFMX 6.1

    Hi all,

    I'm using CFBB and want to sync-up the usernames and passwords stored
    in the cfbb database to the file called by .htaccess to require
    authentication before entering the bulletin board.

    On my CFMX 6.0 box (not patched in a while) the following command works
    great:

    <cfquery name="ug" datasource="#dsn#">
    select username, password from f_users
    </cfquery>
    <cfoutput query="ug">
    <cfexecute name="c:\winnt\system32\cmd.exe"
    arguments="/c c:\apache_access\htpasswd.exe -b
    c:\apache_access\phys_users #username# #password#"
    outputFile="c:\apache_access\log.txt"
    timeout="30">
    </cfexecute>
    </cfoutput>

    But on my test webserver, which is setup identically other then having
    CFMX 6.1 and all updates, it doesn't work at all. Nothing is written
    to the log.txt file nor the log file within CF Admin and there's no
    error when the page executes in the browser. I can run the following
    just fine on the server:

    c:\winnt\system32\cmd.exe /c c:\apache_access\htpasswd.exe -b
    c:\apache_access\phys_users test1 test2

    So I know the command works fine by itself. Also this works perfectly
    on the stock CFMX 6.0 box with no updates.

    Suggestions ??? I have no security enabled on the CFMX 6.1 box to
    prevent cfexecute from working.

    Any suggestions ??? I've toyed with the timeout, as little as 5 as
    much as 60, but nothing. I've also tried even tried using
    "arguments="/c dir < test" and so forth, but nothing.

    Both servers are Windows 2000 Server
    CFMX6.0 is Apache 2.0.48 with no CF updates
    CFMX6.1 is Apache 2.0.52 with ALL CF updates
    All Windows updates are installed on each box

    Thanks --

    Samalex

    Alex Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139