Simple setup

You can use the following set of steps to set up script execution for the DECthreads HTTP server provided that the DECnet TASK object is not disabled and DECnet proxies are in use on your machine.

  1. Copy the WWWEXEC.COM file to the login directory of the HTTP server account.

  2. If needed, use the authorize utility to setup default proxy access bewteen the server account and itself (SYSUAF> add/proxy node::user user/default ).

  3. Create a script directory which is readable by the server account and place the scripts (command procedures and executables) in this directory.

  4. Edit the server rules file (httpd.conf) and add an htbin directive to make the script directory known to the server. Note that the directory must be in VMS format (disk:[dir]), NOT unix format (/disk/dir/).

  5. Edit the server startup file (HTTP_SERVER.COM) to define the environment variable HTTP_DEFAULT_HOST to the full TCP/IP hostname of the server machine.

Troubleshooting

If you can't get scripts to work, the first place to look is the NETSERVER.LOG file created by the script process. If there is no NETSERVER.LOG, log into the server account's login directory and try the following command:

	$ show work /output=0::"TASK=WWWEXEC"

If this command fails, you'll probably get either a "login invalid" message, which means the proxy information isn't set up correctly, or "network partner exited", which means you should check the netserver.log for error messages. You may also get "object not found", which means WWWEXEC.COM is not in the right place.

Advanced setup

You may desire or need to take advantage of other DECnet features when setting up the script server. If you are unfamiliar with these features, the VMS Guide to Networking is the best place to learn about them rather than this document.

To use most of the advanced features, you must re-define the DECnet task string that the HTTP server opens when it wants to execute a script. You re-define this task string by defining the environment variable WWWEXEC in the server startup procedure (if absent, server uses 0::"TASK=WWWEXEC" as the task string).


David Jones, Ohio State University