Go to Post The fact is, if people dont know about nature they do nothing to preserve it...nature is something to be valued and not feared or destroyed. - Wayne C. [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-12-2011, 22:41
whcirobotics's Avatar
whcirobotics whcirobotics is offline
Registered User
FRC #1514 (Vikings)
 
Join Date: Nov 2008
Rookie Year: 2009
Location: WHCI
Posts: 174
whcirobotics is an unknown quantity at this point
CFExecute not executing appcmd.exe

created the following code on a Cofdfusion server: file name: testWebsite.cfm
This is the code:

<cfoutput>
<cfset exec_command = "add site /name:""demosite"" /bindings:http://demosite.testserver.com:80 /physicalpath:""D:\Websites\demosite"" ">

<cfexecute name="C:\Windows\System32\inetsrv\appcmd.exe" arguments="#exec_command#" timeout="60" />

Done!
</cfoutput>


But when I execute this file e.g. http://www.demoserver.com/testcases/testWebsite.cfm

It just displays "Done!" without any errors, it doesn't execute the add site code.

Upon referring numerous documents, I checked the user rights under which both execute. The coldfusion service is running as a domain user called Webserver@domain.com I don't know how to check the same for IIS. So I checked the World Wide Publishing Service and IIS Admin Service - running as Local System.

Even if I log in as the administrator, I cannot add the webserver user to the inetsrv folder or the appcmd.exe located at C:\Windows\System32

Please help with any ideas/suggestions.

Thanks.
__________________
"A team back in training !"
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 23:25.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi