in reply to Calling external programs via cgi on win32

It is possible that Apache being run as a service does not have the correct permissons to do something.

The default user running the service will be "Local System Account". You can change this on the Log On tab of the Service properties dialog.
For example try changing this to the same user that you are logged in as when running from the command prompt. You will need to restart apache, for this to take affect.

Hope this helps, Gerard.
Update: It really all depends on what your external program is trying to do, and how things are set up there... I haven't had similar problems, but have avioded them, when scripts are trying to access the local network for example.
  • Comment on Re: Calling external programs via cgi on win32

Replies are listed 'Best First'.
Re^2: Calling external programs via cgi on win32
by jamesjyu (Acolyte) on Jul 02, 2004 at 16:07 UTC
    I tried your suggestion, and changed the log in to myself (administrator level) and still doesn't help. In terms of the external program, I have tried just starting a simple program like notepad.exe, and this doesn't even work (but works on the command line of course). There must be something fundamentally wrong that I'm not aware of..
      It turns out you cannot invoke a gui based program from a cgi script. This would have worked in win98, but not in any newer version of windows...