Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
Alex #1
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
-
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, ... -
.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... -
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... -
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... -
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 -
Alex #2
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



Reply With Quote

