Solved

Configuring my server to run CGIs.

Posted on 1998-07-23
4
142 Views
Last Modified: 2013-12-25
I have a CGI script to execute my form, but when I submit the form, I get the error '%1 is not a valid Windows NT application'.  I know that this means my server(NT 4.0) is not configured correctly to run CGIs.  My question is, how DO I configure the server to do this?
0
Comment
Question by:khenness
  • 2
4 Comments
 
LVL 6

Expert Comment

by:alamo
Comment Utility
Are you certain the script .exe is a 32-bit executable?

What kind of script? What application runs the script?

What kind of server, and what version?
0
 

Author Comment

by:khenness
Comment Utility
Edited text of question
0
 
LVL 7

Accepted Solution

by:
jconde earned 100 total points
Comment Utility
Hi.

First, as alamo stated, make sure it's a 32 bit application.... (VB5, Delphi 3, C++ Builder, BC 5.0, VC5...all of these compile to 32 bits.)

To configure the server all you need to do is the following:

Start
  Programs
     Microsoft Internet Server (Common)
         Internet Service Manager
            Double Click in WWW (Running)
               Directories Panel
                  - Check if the path where your CGI is, is shown.
                    if not shown, ADD a new directory, and specify the EXECUTE option.
                    else
                    if shown, double click in the path, and specify the EXECUTE option.
         
If you have any more problems, please get back to me!

jconde  
0
 
LVL 6

Expert Comment

by:alamo
Comment Utility
What kind and version of *web* server?

Normally if the directory isn't mapped for scripts the 501 Not Supported error will come up, not "is a valid executable". But the errors aten't always consistent.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
This article will show, step by step, how to integrate R code into a R Sweave document
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now