Perl with IIS - Handler Mappings

Discussion in 'Software' started by ST47, Mar 6, 2007.

  1. ST47

    ST47 Private First Class

    Hi, trying to set up Perl CGI with IIS 7.0 on Windows Vista, I installed ActivePerl and tried to set up a handler mapping thusly:
    Add script map, request path => *.pl, executable => C:/perl/bin/perl.exe

    And I get a 502.2:

    Server Error in Application "Default Web Site"

    HTTP Error 502.2 - Bad Gateway

    [FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif] [/FONT][FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif]Description: The specified CGI application did not return a complete set of HTTP headers. [/FONT]
    [FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif]Error Code: 0x00000000 [/FONT]
    [FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif]Notification: ExecuteRequestHandler [/FONT]
    [FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif]Module: CgiModule [/FONT]
    [FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif]Requested URL: http://localhost:80/Helloworld.pl [/FONT]
    [FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif]Physical Path: C:\inetpub\wwwroot\Helloworld.pl [/FONT]
    [FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif]Logon User: Anonymous [/FONT]
    [FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif]Logon Method: Anonymous [/FONT]
    [FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif]Handler: Perl CGI [/FONT]
    [FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif]Most likely causes: [/FONT]
    • [FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif]
    • The CGI process was shut down or terminated unexpectedly before it finished processing the request.
    • The CGI process has a flaw and does not return a complete set of HTTP headers. [/FONT]
    [FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif]What you can try: [/FONT]
    • [FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif]
    • Check the event logs on the system to see whether the CGI process is shutting down unexpectedly.
    • Troubleshoot the CGI application to determine why it is not sending a complete set of HTTP headers. [/FONT]
    [FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif] [/FONT][FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif]More Information... This error occurs when the CGI process handling the request exits before it finishes sending the response to IIS. [/FONT]
    [FONT=Arial, Helvetica, Geneva, SunSans-Regular, sans-serif]Server Version Information: Internet Information Services 7.0.

    I am not sure if this is the correct file to be calling, but I didn't see a special perlcgi.exe - any ideas?
    [/FONT]
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds