COURTESY of our friends at PLESK who helped solve this one :-) Here is the final solution......I've tested this on my two PLESK machines.
Ok here is the final solution on this that seems to be the best overall....
Basically what we did on your server is to create a few things with the /usr/local/psa/home/vhosts/.skel/ directory.
Inside the ../.skel/ directory you will find the following structure..
../.skel/httpdocs/cgi-bin/
This results in a /cgi-bin/ directory being placed inside the httpdocs directory of each vhost.
Then we have also created a .htaccess file here..
../.skel/httpdocs/cgi-bin/.htaccess
Inside this file are the following two directives:
Options +ExecCGI
AddHandler cgi-script .cgi
This results in the ability to run .cgi scripts within this directory. You should note that this setup is specifically for .cgi's. For .pl's it would likely require some additional directives. But the same idea would apply.
The other needed step is to make one modification to the httpd.conf file. Inside this file you need to comment out the following line:
#ScriptAlias /cgi-bin/ "/usr/local/psa/apache/cgi-bin/"
After that... everything should work fine.
One last thing you might want to consider is to remove the
../.skel/cgi-bin/. As long as you never selected CGI from the PSA interface I don't believe this would cause any problems. And if CGI is selected from the interface while using this setup... there will be other problems as well anyway.