cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

Perl CGI Unauthorized

 Do Perl CGI's still work with windows plesk hosting ?

A simple hello world perl cgi is giving me an error.

 

401 Unauthorized

Access is denied due to invalid credentials.

 

In Hosting Settings, CGI support is enabled.

The hello.pl file has Execute permissions.

I've tried placing the script in cgi-bin. No luck.

The simple perl script is:

 

#!/usr/bin/perl

# hello test file

use CGI qw(:standard);

print("Content-type: text/html\n\n");
print("<html><body>\n");

print("Hello from the wonderful world of Perl\n");

print("</body></html>");

 

I've tried creating an .htaccess file

  AddHandler cgi-script .cgi .pl
  Options +ExecCGI

but I think that's only for linux/cpanel/apache.

 

Thanks in advance,

 

Kevin