Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

CGI’s are failing with a “something.cgi is not a valid Windows NT application” error. Why?

CGI Error failing NT valid Windows
0
Posted

CGI’s are failing with a “something.cgi is not a valid Windows NT application” error. Why?

0

Depending on what Web server you are using, you will have to configure the Web server to treat *.cgi files as CGI scripts. In IIS, you do this by adding *.cgi to the App Mappings with the \perl.exe %s %s as the executable. Microsoft has some advice on this matter, as well: “Set application mappings. In the ISM, map the extension for the script file(s) to the executable for the script interpreter. For example, you might map the extension .py to Python.exe, the executable for the Python script interpreter. Note For the ActiveState Perl script interpreter, the extension .pl is associated with PerlIS.dll by default. If you want to change the association of .pl to perl.exe, you need to change the application mapping. In the mapping, you must add two percent (%) characters to the end of the pathname for perl.exe, as shown in this example: c:\perl\bin\perl.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.